-
-
Notifications
You must be signed in to change notification settings - Fork 195
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 29 support #4926
Comments
Due to issues with Android Runtime when building the applications with Android SDK 29 and running them on devices (emulators) with SDK 29 that are fixed in Android Runtime (
Description of the table:
|
In case you have only Android SDK 29 installed, and you are still using Android Runtime (tns-android) before 6.1.0 there is not descriptive error that this combination is not supported |
I'm bit confused with the statement there is not descriptive error that this combination is not supported. I'm having NS 5.4 and the app built on angular 4. But, if I build the app with taregetSDK 29. The installed app start crashing. Also I've tried upgrading to latest NativeScript version. But, I noticed it is required to have the latest version of Angular. And my code needs lot of modificatons. Let me know is there any easy migration path if it is mandatory to have the latest NS cli. |
If anyone ends up here because they have a build still based on 5.4 they have to support whilst updating is underway I found that the crash on startup issue is NativeScript/android#1458 which was not applied to the 5.x branches. You can check out android-runtime at the version you need and cherry-pick the commit in to produce a build of 5.4.0 that works on SDK level 29. |
This comment was marked as abuse.
This comment was marked as abuse.
@JamesPJ, I'm facing the same issue. Is this issue resolved if yes, So let me know what steps you follow for resolved this issue? |
@leena-bhise Yes, but I had to upgrade to |
@JamesPJ, I also upgraded to NS{6} and follow the steps below:
but still facing the issue. Let me know if I'm missing something. |
@leena-bhise I'm not sure what issue you are facing. But, I had faced issue with certain cli versions. Below are my current cli versions.
|
Is your feature request related to a problem? Please describe.
NativeScript should be able to build applications with Android SDK29
Describe the solution you'd like
The Android SDK29 should be chosen by default if available on the machine.
Describe alternatives you've considered
No alternatives
Additional context
There are currently two places where we keep the compatible Android SDK versions - NS CLI and NS Doctor. This makes the update difficult and no straight forward. There is also a lot of repetition of code in android-tools-info modules inside the CLI and NS Doctor. For future updates it will be beneficial to extract the logic at one place.
If the targeted device is APK Level 29(Android 10) the application should use the
next
version of NativeScript Adnroid Runtime!Acceptance Criteria
Valid values for --compileSdk are >=28. (should be installed)
Valid values for --sdk are >= 17 <=29 (corresponds to targetSdk and not mandatory to be installed)
Valid Android build tools on the machine are >=23 (should be installed)
tns run android
should be the same as in previous version. Can add a plugin that needs build (hasManifest.xml
andinclude.gradle
but no.aar
in package). This can be emulated installingnativescript-mapbox
, deleting the.aar
file fromnode_modules/nativescript-mapbox
and then copy theManifest.xml
from here.tns build android --compileSdk 16
where SDK16 is installedtns build android --compileSdk 25
where SDK25 is not installedtns plugin build
- should clone a plugin that hasplatforms\Android\Manifest.xml
. - for example this one.tns plugin build --compileSdk 16
where SDK16 is installedtns plugin build --compileSdk 25
where SDK25 is not installedThe text was updated successfully, but these errors were encountered: