<preference name="android-targetSdkVersion" value="30" /> not working and keep asking for 29
See original GitHub issueBug Report
Problem
It seems setting targetSdkVersion to 30 not working, it sounds like the same issue as the one closed #846 , I set <preference name="android-targetSdkVersion" value="30" />
in config.xml and I installed only platform-30
it keeps asking me to install version 29:
#13 394.1 Checking the license for package Android SDK Platform 29 in /opt/android-sdk-linux/licenses
#13 394.1 License for package Android SDK Platform 29 accepted.
#13 394.1 Preparing "Install Android SDK Platform 29 (revision: 5)".
#13 394.1 Warning: Failed to read or create install properties file.
#13 394.2
#13 394.2 FAILURE: Build failed with an exception.
#13 394.2
#13 394.2 * What went wrong:
#13 394.2 Could not determine the dependencies of task ':app:bundleReleaseResources'.
#13 394.2 > Failed to install the following SDK components:
#13 394.2 platforms;android-29 Android SDK Platform 29
#13 394.2 Install the missing components using the SDK manager in Android Studio.
There is no other information to put but it is the same issue as #846 nothing new.
Version information
What are relevant versions you are using? Latest everything, Cordova 10 and cordova-android 9.0.0
Checklist
- I searched for existing GitHub issues
- I updated all Cordova tooling to most recent version
- I included all the necessary information above
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:24 (5 by maintainers)
Top Results From Across the Web
cordova android updating compileSDK version - Stack Overflow
I'm facing issue when updating compileSdkVersion/buildToolsVersion in config. xml of project root directory. As cordova-android version-9 ...
Read more >Config.xml android-targetSdkVersion value="28" being built ...
I am currently trying to release an update to Google Play. I am using Ionic 3. My config.xml has the following property: <preference...
Read more ><uses-sdk> | Android Developers
Lets you express an application's compatibility with one or more versions of the Android platform, by means of an API Level integer.
Read more >cordova-plugin-health/Lobby - Gitter
<preference name="android-targetSdkVersion" value="29" /> <preference name="android-compileSdkVersion" value="29" />. Not sure if relevant, ...
Read more >03 - Cordova SDK Changelog - Situm
To work properly on Android 12 devices and above, the host app must: ... add <preference name="android-targetSdkVersion" value="31" /> to ...
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 Free
Top 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
Adding to the importance of resolving this issue is very soon Google store won’t accept submission of sdk level less than 30.
you can try