Unable to load class 'org.gradle.api.publication.maven.internal.MavenPomMetaInfoProvider'.
apply plugin: 'com.github.dcendents.android-maven'
The following were changes done in app after gradle update in gradle/wrapper/gradle-wrapper.properties
-distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-all.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-all.zip
and under build.gradle
- classpath 'com.android.tools.build:gradle:4.2.2'
+ classpath 'com.android.tools.build:gradle:7.0.0'
- classpath 'com.google.firebase:firebase-crashlytics-gradle:2.3.0'
+ classpath 'com.google.firebase:firebase-crashlytics-gradle:2.5.2'
Adding app level build.gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
kotlin_version = '1.5.10'
}
repositories {
jcenter()
maven {
url 'https://maven.google.com/'
name 'Google'
}
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.0.0'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.6'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
classpath 'com.google.gms:google-services:4.3.4'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.5.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
allprojects {
repositories {
jcenter()
maven {
url 'https://maven.google.com/'
name 'Google'
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
After I made the upgrade to Artic Fox, I had to set the proper SDK for gradle in settings for things to work. By default after the update, it was still using Java 1.8, although JAVA_HOME was set properly and I had issues when applying com.android.application
plugin.
Also, I removed all the JVM target params from gradle files
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With