Error importing project to Android Studio

1

I need to import an Android Studio project already created to Android Studio, but I have the problem that I get the following error:

In "Event log" I get the following error:

  

Gradle sync failed: Cause: failed to find target android-23: C: \ Users \ theda \ AppData \ Local \ Android \ Sdk               Consult IDE log for more details (Help | Show Log) (1s 338ms)

The thing is that I give "Install ..." and it seems that it installs what it asks for, but once it's done, the same error still appears.

I understand that it is normal when importing an existing project so there has to be an easy solution.

Greetings and thanks.

    
asked by MarcusF 28.11.2017 в 19:25
source

2 answers

2

Click on the blue text, that will cause the installation of the missing API, which in this case is 23:

It is common that sometimes it does not detect the installation, therefore you have to perform the cache removal by:

File - > Invalidate Caches/Restart

    
answered by 28.11.2017 / 19:31
source
0

Try turning off the Instan Run on Android, press Ctrl + Alt + S

Then in the window go here: Build, Execution, Deployment

Another option if the project you have is using another SDK look at the gradle and in the mindSDK, replace it with the 19, it worked for me when uploading an old project ...

    
answered by 28.11.2017 в 20:43