这是我的build.gradel modul.app
问题org.gradle.api.tasks.TaskExecutionException:任务':app:generateReleaseBuildConfig的执行失败
apply plugin: 'com.android.application'
android {
compileSdkVersion 27
buildToolsVersion "27.0.3"
defaultConfig {
applicationId "com.packagename"
minSdkVersion 14
targetSdkVersion 27
versionCode 1
versionName "1.0"
multiDexEnabled true
}
dexOptions {
// Prevent OutOfMemory with MultiDex during the build phase
javaMaxHeapSize "4g"
}
buildTypes {
release {
minifyEnabled false
shrinkResources false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
sourceSets.main {
jni.srcDirs = []// <-- disable automatic ndk-build call
}
}
dependencies {
implementation 'com.google.android.gms:play-services:+'exclude module: 'support-v4'
implementation 'com.parse:parse-android:1.10.3'
implementation 'com.android.support:multidex:1.0.1'exclude module: 'support-v4'
implementation 'com.google.android.ads.consent:consent-library:1.0.3'
}
当我想通过Android Studio从buildbox将项目构建为apk时,我对这个问题感到厌烦