You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2022/05/27 14:03:31 UTC

[GitHub] [cordova-android] breautek commented on issue #1438: Task :CordovaLib:compileDebugJavaWithJavac FAILED with android-targetSdkVersion set to 31

breautek commented on issue #1438:
URL: https://github.com/apache/cordova-android/issues/1438#issuecomment-1139650686

   > Google Play requires Android apps to target API level 31 now
   
   This is incorrect. Google will require API 31 for new apps starting in August (still a couple months away from now). For existing apps, API 31 will be required when updating in November.
   
   > cordova-android: 12.1.2
   
   I believe this is a typo as `12.1.2` doesn't exist, but `10.1.2` does which is our current latest. It does not support API 31 as it requires updates in underlying native dependencies which are breaking changes.
   
   API 31 support will come in our next major release. You can test it using the `nightly` tag or installing directly from github. You may require some changes in your environment to use the next cordova-android version.
   
   By default, our next release will actually target API 32, but you can lower it to 31 using the `android-targetSdkVersion` if you prefer.
   
   Namely based on your information provided:
   
   - Node 14+ will be required. Recommended to use the latest patch available of Node 16 or Node 18. Node 10-12 has dropped out of LTS support and therefore we drop support for these versions.
   - Your `tools` package is the legacy tools package I believe which will not work with API 31 toolset. Android has a new `cmdline-tools` package that should be installed and it's `bin` path should be in your `PATH` environment variable instead. The path should something look like `$ANDROID_HOME/cmdline-tools/<version>/6.0/bin` (going off memory...). I've been testing with version 6.0 of cmdline-tools.
   - Latest patch of Build Tools 32 should be installed (I think the latest version is still `32.0.0`) and be in your `PATH`.
   - Java 11 is required, Java 8 is no longer supported. But it looks like you already have Java 11.
   
   Note that cordova-android@11 is still in development and a work in progress. There could still be unannounced breaking changes coming into nightly still. But if you encounter issues using nightly, feel free to raise an issue with the relevant information. It will be great to have feedback prior to an actual release of cordova-android@11.
   
   Closing this issue as won't fix because cordova-android@10 does not support API 31 and will not support API 31.
   
   Kind regards,
   Norman


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org