尝试构建签名的APK时出现以下错误:
我浏览了ThreadPoolExecutor.java并发现了一些错误,但是当我对其进行编辑时,它表示它不属于项目,因此我假设它是IDE的一部分?可能是什么问题?
这是我的plugin.gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
buildToolsVersion '28.0.3'
defaultConfig {
applicationId 'com.riddimdub.radio'
minSdkVersion 24
targetSdkVersion 28
versionCode 1
versionName "1.3"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
productFlavors {
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
}
答案 0 :(得分:1)
我找到了答案:
aaptOptions.cruncherEnabled = false
aaptOptions.useNewCruncher = false
在android { }