-
-
Notifications
You must be signed in to change notification settings - Fork 197
Android SDK version 31 is not recognized by cli #5589
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
Android SDK version 31 is not recognized by cli #5589
Comments
Heads up, I just tried the setup and get the same problem, but it's related to version 32. |
@daamsie you can use version 32 but you will need to install the |
@triniwiz Thank you. Might give that a shot later. Considering this is seemingly going to be a stumbling block for anyone following the Environment Setup guide in your docs, perhaps some mention could be made of it there? It took me a fair bit of hunting to find this Github issue. Presumably this will happen every time the versions are out of sync while waiting for an update. Possibly the most frustrating message I come across in docs (not just yours, but lots of others) is this type of message: "If you see No issues were detected you have successfully set up your system." With 0 hint at what to do if issues were detected. A link to the troubleshooting section would be appropriate and a mention of this common issue in there and how to deal with it would be perfect. Eg.. is there a way to force Android Studio to use version 31? I'm new to this (and I assume many new users of Nativescript / app development are also), so have no idea if that's possible. This is just meant as constructive feedback. |
@daamsie Yes we can add some troubleshooting guides in there but those versions which are currently (alpha & next) are to be released as 8.2. I wanted to ensure things were stable before recommending trying this out. |
@triniwiz Makes total sense. The problem will happen again when there is a version 33 of Android SDK though I'm guessing right? So it seems anyone onboarding during these version mismatch periods will have a broken experience. |
The problem shouldn’t happen soon unless google does some major changes again, keep in mind that this only happened for build tools 31 which seems to rely on gradle 7+
Sent from Yahoo Mail for iPhone
On Monday, February 7, 2022, 8:16 PM, Peter Daams ***@***.***> wrote:
@triniwiz Makes total sense. The problem will happen again when there is a version 33 of Android SDK though I'm guessing right? So it seems anyone onboarding during these version mismatch periods will have a broken experience.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
To be clear, I'm having this problem with version 32 It seems in the code you basically have to add the newly supported version every time one is released (presumably after running some tests). I don't know what Android's upgrade cycle is like, but it seems like it was 3 months between versions 31 and 32 being released based on the date of this issue. So assuming that is their cycle, you could roughly expect this problem every 3 months right? Of course I might be wildly misunderstanding the problem, in which case please ignore me. |
That check needs some updating because iirc it doesn’t handle the rc releases for those packages |
Environment
Provide version numbers for the following components (information can be retrieved by running
tns info
in your project folder or by inspecting thepackage.json
of the project):Describe the bug
Android SDK version 31 is installed as default recommended settings for Android Studio. I seem that ns command could not recognize version 31 yet. And the message is bit misleading.
To Reproduce
ns doctor
Warning will be thrown:
Expected behavior
ns doctor should report that:
Sample project
No need to setup a project
Additional context
Although, I could not found any official information about supported SDK version on website. I think message "install Android SDK 28 or later." which ns doctor reported, was bit misleading. Either fix the message and clearly state that SDK 31 is not supported, or we should add support for Android SDK 31 soon?
The text was updated successfully, but these errors were encountered: