Tue, 10 May 2022 08:26:53 GMT
Join the conversation at slack.cordova.io
Mon, 09 May 2022 16:57:55 GMT
@alex678 says
Hello, since i use cordova-android 10.1.2, i get the following error when i add platform android. Do you have any idea please ? cordova-android-play-services-gradle-release plugin
Mon, 09 May 2022 17:08:09 GMT
@norman137 says
the plugin is trying to open/read
package.json
file somewhere but it doesn't exists.
Mon, 09 May 2022 17:09:17 GMT
@norman137 says
It's using a relative path, which will be relative to the cwd / current working directory, so they may expect you to be in your cordova project root directory when running any commands
Mon, 09 May 2022 17:09:40 GMT
@norman137 says
Presumbly, it‘s trying to access your project’s package.json file.
Mon, 09 May 2022 17:12:20 GMT
@alex678 says
Thx, seems strange because works for cordova android 9 , but not the 10* versions
Mon, 09 May 2022 17:12:47 GMT
@alex678 says
I will try to create my own package.json too
Mon, 09 May 2022 20:30:06 GMT
@alex678 says
I have question please, with sdk 31 i need to install build tools 30 or 31 ?
Mon, 09 May 2022 20:30:35 GMT
@norman137 says
31, but cordova-android@10 doesn't support API 31.
Mon, 09 May 2022 20:31:25 GMT
@norman137 says
the next major release will support up to API 32, it's currently merged into master so you can test it by installing from git or using the
nightly
tag.
Mon, 09 May 2022 20:31:56 GMT
@norman137 says
But it requires potentially breaking changes to your environment (e.g. java 11)
Mon, 09 May 2022 20:34:55 GMT
@alex678 says
Thx, i already have Java 11, so i will try with master version and cordova target version = 32 instead. and also build tools 32 i think.
Mon, 09 May 2022 20:44:29 GMT
@norman137 says
yah, keep in mind too, that support applies to the core platform, it doesn't mean individual plugins actually support API 31 or API 32.
Mon, 09 May 2022 20:45:08 GMT
@norman137 says
If you use any apache maintain plugins though, feel free to open any issues related to API 31 or API 32, if there isn't already issues opened.