The Android SDK isn't installed or it's not configured properly
See original GitHub issueSo, I’m definitely moving from Windows 7 to Linux Mint 18.3. I followed all the necessary steps to get NS running as described here https://docs.nativescript.org/start/ns-setup-linux.
When I run tns run android
, this is the output:
✔ Your ANDROID_HOME environment variable is set and points to correct directory.
✔ A compatible Android SDK for compilation is found.
✔ Javac is installed and is configured properly.
✔ The Java Development Kit (JDK) is installed and is configured properly.
✔ Local builds for iOS can be executed only on a macOS system. To build for iOS on a different operating system, you can use the NativeScript cloud infrastructure.
✖ WARNING: adb from the Android SDK is not installed or is not configured properly.
For Android-related operations, the NativeScript CLI will use a built-in version of adb.
To avoid possible issues with the native Android emulator, Genymotion or connected
Android devices, verify that you have installed the latest Android SDK and
its dependencies as described in http://developer.android.com/sdk/index.html#Requirements
✖ WARNING: The Android SDK is not installed or is not configured properly.
You will not be able to run your apps in the native emulator. To be able to run apps
in the native Android emulator, verify that you have installed the latest Android SDK
and its dependencies as described in http://developer.android.com/sdk/index.html
i’m pretty sure the Android SDK is installed.
Issue Analytics
- State:
- Created 5 years ago
- Comments:20 (7 by maintainers)
Top Results From Across the Web
Nativescript "WARNING: The Android SDK is not installed or is ...
Make sure your Android SDK is installed and pointed at inside $ANDROID_HOME and $ANDROID_SDK_ROOT according to the actual installation SDK ...
Read more >Install Android Studio - Android Developers
Set up and install Android Studio on Windows, macOS, or Linux.
Read more >Setting Up Android SDK and NDK for Unreal
1. Installing Android Studio · Navigate to the Android Studio Archive in your web browser. · Run the Android Studio installer. · In...
Read more >Android environment setup - Unity - Manual
If you select a target API version that isn't installed and is older than the latest installed version, the Unity Android SDK Updater...
Read more >Setting up the Android SDK for Xamarin.Android
The Android SDK location is configured at the top of the Android SDKs and Tools screen, as seen in the previous screenshot. This...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hopefully this will help someone, on my machine all the Android SDKs/ADB were installed in my /Users folder (probably because I already had Android Studio installed).
I fixed it by setting the Android home path to point to the /Users/ sdk by running:
export ANDROID_HOME=/Users/zleighton/Library/Android/sdk
After that
tns doctor
reported everything OK.@Fatme I think it was probably because I was using Linux 32-bit and google doesn’t support this architecture but I didn’t know that. But now I’m using a 64-bit Debian and I can’t even install the required runtime libraries, so I’m definitely giving up on NS and moving to React Native. Thanks for your help.