Cordova Slack Digest

Sat, 06 Aug 2022 08:21:29 GMT

User count: 4696

Join the conversation at slack.cordova.io

Channel #cordova-android (13 messages)


Fri, 05 Aug 2022 14:36:40 GMT

@alex678 says

Hello everybody, i compile always the same Project, then now, without changing anything. I get the following error when i launch Android Studio. Do you have any idea please ? Build file ‘C:\Users\alex\Documents\GitHub\hooliapps\src\planningify\google\release\platforms\android\CordovaLib\build.gradle’ line: 50

  • What went wrong: A problem occurred evaluating project ‘:CordovaLib’. > Failed to apply plugin ‘com.github.dcendents.android-maven’. > Could not create plugin of type ‘AndroidMavenPlugin’. > Could not generate a decorated class for type AndroidMavenPlugin. > org/gradle/api/publication/maven/internal/MavenPomMetaInfoProvider

Fri, 05 Aug 2022 14:45:37 GMT

@alex678 says

also this “cordovalib” “compileSdkVersion is not specified”

Fri, 05 Aug 2022 15:16:11 GMT

@norman137 says

modern versions of cordova-android explicitly defines compileSdkVersion

Fri, 05 Aug 2022 15:17:39 GMT

@norman137 says

Android Studio is tightly coupled to the AGP (Android Gradle Plugin) and cordova-android builds are also tightly to the AGP so if you've updated Android Studio, but are using an older cordova-android version, you may run into incompatibilities with Android Studio.

It should compile fine when running gradle directly (via cordova command line) but the Android Studio IDE will fail to sync with gradle.

Fri, 05 Aug 2022 15:21:38 GMT

@alex678 says

Ok thanks, i will first try to upgrade Cordova

Fri, 05 Aug 2022 15:31:23 GMT

@alex678 says

I changed from cordova-android@9.1.0 to @10.0.0 then now it compiles with Android 30 and last version of Android Studio 😉

Fri, 05 Aug 2022 15:49:29 GMT

@alex678 says

For info, i get a very strange build tools 32 corrupted.. Reinstalling it didn't work. But i solved it : https://www.youtube.com/watch?v=ZWFNr28yotI : Installed build tools revision 32.0.0 is corrupted. Remove and install again using the SDK manager.

Fri, 05 Aug 2022 15:51:09 GMT

@norman137 says

cordova-android@10 doesn't support build tools >= 31.

Cordova-android@11 provides suppor for API 31 & 32. By default it will target and compile for API 32 and expects build tools v32

Fri, 05 Aug 2022 15:51:34 GMT

@norman137 says

You'll also need java 11 if you are upgrading from cordova-android@9

Fri, 05 Aug 2022 17:19:40 GMT

@alex678 says

Finally, everything works except one Plugin. Do you know if it's possible to download the “old Android Studio” who worked before please ?

Fri, 05 Aug 2022 17:22:21 GMT

@norman137 says

https://developer.android.com/studio/archive

Fri, 05 Aug 2022 17:22:28 GMT

@norman137 says

I think that is what you're looking for

Fri, 05 Aug 2022 17:23:03 GMT

@norman137 says

if you accept google‘s terms you’ll get a list of previous android studio releases