-
-
Notifications
You must be signed in to change notification settings - Fork 197
Add support for Android SDK Tools 25.2.3 #2583
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
I experienced the same issue. What's funny is that I ran This SO answer suggests that the previous version of Android SDK Tools be installed.
Just replace the old |
@EricRobertBrewer @eisverticker this doesn't look like a NativeScript problem, but a problem with Android Tooling. |
@Plamen5kov I don't think so, because if there is an API change in the Android toolings and this causes NativeScript to fail, then it is also a problem for NativeScript or their users as long as it is not documented that newer versions of the sdk don't work with NativeScript. |
same here , i was reminded by Android Studio of updating new components and itself , then i updated, after that "tns doctor " gives warning like this "Cannot find a compatible Android SDK for compilation. To be able to build for Android, install Android SDK 22 or later." Android SDK Tools : 25.3.1 |
After updating Android Studio my gradle failed to sync with this message 'android command is no longer available' I followed the steps in this thread to try and roll back the Android tooling (downloading the 23.2.3 version) and replacing - however, I still get the same message. |
I'm in the same boat as @edwardmhunton |
https://developer.android.com/studio/releases/sdk-tools.html It is a change in the SDK tools, and if you've downloaded the latest - then NativeScript may not work for you. I advice downloading the older SDK tools (releases prior to March 2017) as a temporary workaround. |
Hi everyone. I ended up here after googling the error message I get when I try running What previously needed |
Sdk versions that will work with the current NativeScript |
Maybe it's just inattention when you'll create the path. In my case, this was just innattetion. One / more caused all the problem. Even in creating of the path, even the calling commands together with my variable path. I hope this tips help you. |
has this problem been fixed yet or any time soon ? or should we roll back to older version of Android SDK Tools ? Thanks ! |
Hey @c1ngular , we are working on the fix and it will be available in |
@rosen-vladimirov thanks ! |
Same problem here |
@rosen-vladimirov .... Can you give an estimate on when this is solved? Thanks!!! |
@Dutchboy the fix is already in master branch, you can try it by installing
We plan to release 2.5.3 in the beginning of the next week :) |
@rosen-vladimirov Thanks!!! And.... How quick your answer!!! Two minutes?!!? THANKS |
@next version worked. Thanks! |
Hey |
Seems this just goes on forever. Same issue on 10/22/17, NS version 3.2.1 |
@locohost Please be more specific, as we won't be able to help you otherwise. Thank you! |
Ok. I'm on Win 8 developer laptop Dell Precision M2800 with 16GB of RAM and nearly half of the 500GB HD empty. I use this laptop for node dev nearly every day. I'm using the latest NS version 3.2.1. I've fully updated my Android SDK. SDK manager shows no more updates to install. I've run the NS setup process. I've pasted the powershell script line from documentation and run that. What more do I have to do? I'm assuming there are more undocumented steps to get this working. See attached screen cap. Thanks for helping. |
@locohost I noticed several messages that could hint at something you could have missed during the setup.
|
I'm having similar issues as @locohost I just tried running the NS install script on my Mac:
This seems to have failed to install Android. Running sdkmanager gives me error:
I have Homebrew installed which I believe is used as part of the NS install script to attempt to install android-sdk, internally using the following command (or similar):
However, this fails as I believe the brew is no longer maintained. So I installed the latest Android Studio and used the embedded SDK Manager; the ANDROID_HOME environment variable by Studio is now set to:
Also, I have Java 9 installed; I see from the above comment that only Java 8 is supported. So a few questions:
|
It should be no problem using the setup provided with the Android Studio bundle, as long as the
|
@Plamen5kov Hi,Thank you for your reply; can you provide a little more instruction. Thank you for the suggestion of jenv; I have managed to get both Java 8 and Java 9 on my machine. Inside my NS project, I ran the following command:
and got error:
I have latest Android Studio (Android SDK 27) |
@sjordan1975 currently Oracle Java 9 is not supported for NativeScript Android development. Refer to the following comment #2265 (comment). As for your Android SDK setup - make sure your ANDROID_HOME, ANDROID_HOME/tools and ANDROID_HOME/platform_tools are present in your PATH environment. |
UPDATE Finally able to get things running by following instructions here The gist of it seems that as of November 4, the current version of NativeScript does not work with the last SDK; same problem and fix alluded to here @Pip3r4o Thank you. I've fixed the Java 9 issue. Here are the relevant variables:
Running:
Output:
|
A few days ago i updated my android sdk (with android-studio) and also switched from nativescript 2.4.x to 2.5.2, but during the setup (and also after executing tns doctor) it seems like nativescript is not able to find an appropriate targetSdk
It looks like the cli uses the android command of the sdk tools, but this command is not available anymore
So i am not able to setup android for nativescript.
I am using the android sdk tools version 25.3.1 and NativeScript 2.5.2.
The text was updated successfully, but these errors were encountered: