project :launcher
WARNING: The option ‘android.enableR8’ is deprecated and should not be used anymore.
It will be removed in a future version of the Android Gradle plugin, and will no longer allow you to disable R8.
打开文件找到':gradle:3.6.0'修改为':gradle:3.4.0'
// GENERATED BY UNITY. REMOVE THIS COMMENT TO PREVENT OVERWRITING WHEN EXPORTING AGAIN
buildscript {
repositories {
//国内地址
maven{ url '/repository/google' }
maven{ url '/repository/jcenter' }
google()
jcenter()
//重复项目 解决问题Failed to resolve: :picasso
maven {
url "/maven2"
}
}
dependencies {
classpath ':gradle:3.4.0'
}
}
allprojects {
repositories {
google()
flatDir {
dirs 'libs'
dirs '../lib_au4399_sdk/libs' //保证该相对路径可以定位到lib_au4399_sdk的libs文件夹
}
maven {
url "/maven2"
}
}
}
apply plugin: ''
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
//引入4399广告SDK依赖
implementation project(':lib_au4399_sdk')
}
android {
compileSdkVersion 29
buildToolsVersion '29.0.0'
defaultConfig {
minSdkVersion 16
targetSdkVersion 29
applicationId ''
ndk {
abiFilters 'armeabi-v7a', 'x86'
}
versionCode 1
versionName '0.1'
}
lintOptions {
abortOnError false
}
aaptOptions {
noCompress '.unity3d', '.ress', '.resource', '.obb'
}
buildTypes {
debug {
minifyEnabled false
useProguard false
proguardFiles getDefaultProguardFile(''), ''
jniDebuggable true
}
release {
minifyEnabled false
useProguard false
proguardFiles getDefaultProguardFile(''), ''
// signingConfig //Could not find :groovy-all
}
}
packagingOptions {
doNotStrip "*/armeabi-v7a/*.so"
doNotStrip "*/x86/*.so"
}
}