-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Cannot find a compatible Android SDK for compilation. To be able to build for Android, install Android SDK 22 or later #3825
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hey @Xsmael Please have a look at the discussion in NativeScript/nativescript-cli#2583 You can either:
|
For me the latest nativescript is not working. I had to specify version 2.5.3, like this: Thanks ! |
I have installed the latest , but same issue , how to fix tns info
|
@rashnk it is likely an incorrect path to the ANDROID_HOME directory. Please double check that you can find %ANDROID_HOME%/platforms, %ANDROID_HOME%/tools, %ANDROID_HOME%/extras on your developer machine. It is possible that you have not installed the |
Hi. I'm having this same issue although I'm using a Mac. It keeps saying: "You need to have Android SDK 22 or later and the latest Android Support Repository installed on your system." everytime I try to add android as a platform. I've got SDK 22 to 25 installed. Is there something I'm missing? |
@elujoba please refer to the comment above yours and verify that the paths resolve to existing directories and files on your machine. |
@Pip3r4o Thank you. I have just checked the three folders you specified. Also, I've checked to make sure my android variable is pointing to the right place and that SDK 22 is installed. Doing sdkmanager --list gives me this (from $ANDROID_HOME): Yinkas-MacBook-Air:yinka yinka$ sdkmanager --list
Available Packages:
|
@Pip3r4o Apparently, because I had android studio installed. I had two different folders for the SDK. The original one and the one installed by Homebrew. I've redirected now and tns doctor is no longer complaining. However, I can't seem to be able to deploy to my android phone. tns run android is not working. Even after adding the --device flag with the Device ID. Is there something I'm missing? I've looked all over but I can't find any way to deploy to an actual device. I'm sorry if this is out of scope of the original issue, but I'd like to move to actual coding asap and get past setting up. Thanks! |
@elujoba it seems that you also have to install Extras/Android Support Repository listed in Android SDK Manager |
suggestion of @dttung-mario (owe a 'Thank you!') was a good one. To add to it, although I had installed the Android Support Repository, it was pending update that was creating this issue. When I updated it, all was fine. |
i got this problem too,and i fixed it , you can install android sdk 22, this is very important. |
@dttung-mario Thanks. This solution helped me, it was exactly what was missing :) |
@elujoba Oh man I try to fix this error, But your answer only write Thanks man. +1 |
Have the same issue.
but still
|
@dang1412 Your solution was it! At least partially it! I went into SDK Manager through Android Studio, clicked to SDK Tools and clicked to CHECK (they were previously unchecked) Android Support Repository, NDK, and Instant Apps Development SDK. Before I did this, I have been working on this for days. Now to see if my emulator will actually launch... either way though, this is a huge step forward. Thanks! UPDATE: 8/1/18 After screwing around some more and making sure my .bash_profile had the proper path to ANDROID_HOME... in this case After that Based on what I've read so far, my setup should be fine... but UPDATE: 8/1/18 #2:
|
Exactly same problem and 2 step solution as Marcidius above. |
As pointed out by @divyachandana it seems like the issue is not with SDK tools but SDK platform (android-28 in my case) Running this command solved it for me:
EDIT: Still, needs a clear error message. From the message above it's not clear what's wrong. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I get this error when i run
tns doctor
i googled, stackoverflowed and everything you can imagine, setting environment variables installing SDKs and tools, but still nothing works, so i ended up here, plz help!
My config:
Windows 10 64bit
Android studio 2.2.2
i installed SDK 22, 19, 24 and 25
NodeJS v6.9.5
npm: 3.10.10
Please HELP!
The text was updated successfully, but these errors were encountered: