question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

<preference name="android-targetSdkVersion" value="30" /> not working and keep asking for 29

See original GitHub issue

Bug 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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:24 (5 by maintainers)

github_iconTop GitHub Comments

12reactions
shanlin2dltkcommented, Apr 5, 2021

Adding to the importance of resolving this issue is very soon Google store won’t accept submission of sdk level less than 30.

12reactions
goodjuncommented, Apr 4, 2021

you can try

cordova platform add android@version
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found