include ':CordovaLib'
project(':CordovaLib').projectDir = new File('../platforms/android/CordovaLib')
repositories {
mavenCentral()
}
android {
compileSdkVersion 29
buildToolsVersion "29.0.3"
defaultConfig {
applicationId "com.example.app"
minSdkVersion 21
targetSdkVersion 29
versionCode 1
versionName "1.0"
}
}
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.0'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0'
}
}
将以上代码中的 android-maven-gradle-plugin 版本改成最新的版本。例如:
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
下一篇:AndroidStudio-错误:com.crashlytics.tools.gradle.CrashlyticsPlugin.findObfuscationTransformTask()方法没有签名