gpt4 book ai didi

java - 使用 Android Studio 单击“构建 APK”时出错

转载 作者:行者123 更新时间:2023-12-01 08:55:41 27 4
gpt4 key购买 nike

清理项目之后,单击重建项目,正常工作,没有任何错误/警告,甚​​至当我使用手机作为模拟器运行时,也可以正常运行

但是当我点击构建 APK 时,它显示以下错误,自过去三天以来一直卡住,但无法摆脱它。

显示:

Error:Execution failed for task ':app:transformClassesAndResourcesWithProguardForDebug'. Job failed, see logs for details

Error Screen Shot

构建.gradle:

apply plugin: 'com.android.application'

android {
compileSdkVersion 24
buildToolsVersion '24.0.1'
useLibrary 'org.apache.http.legacy'
defaultConfig {
applicationId 'veri.solo.appoo'
minSdkVersion 16
targetSdkVersion 24
versionCode 6
versionName '6.4'
multiDexEnabled true
}
aaptOptions {
cruncherEnabled = false
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'),
'proguard-rules.pro'
}
debug {
minifyEnabled true
debuggable true
jniDebuggable false
renderscriptDebuggable false
proguardFiles getDefaultProguardFile('proguard-android.txt'),
'proguard-rules.pro'
}
}

productFlavors {
}
sourceSets { main { assets.srcDirs = ['src/main/assets', 'src/main/assets/'] } }
/*
dexOptions {
incremental true
}*/
}

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile files('libs/FDxSDKProAndroid.jar')
compile files('libs/android-support-v13.jar')
compile 'com.android.support:appcompat-v7:24.2.0'
compile 'com.android.support:design:24.2.0'
compile 'com.android.support:support-v4:24.2.0'
compile 'com.android.support:multidex:1.0.1'
compile 'com.google.android.gms:play-services:10.0.1'
compile 'com.google.firebase:firebase-core:10.0.1'
compile 'com.google.firebase:firebase-messaging:10.0.1'
}
apply plugin: 'com.google.gms.google-services'

最佳答案

在你的构建中,用这个替换你的调试配置

debug {
minifyEnabled false
debuggable true
jniDebuggable false
renderscriptDebuggable false
proguardFiles getDefaultProguardFile('proguard-android.txt'),
'proguard-rules.pro'
}

minifyEnabled false你必须做...

检查并告诉我

关于java - 使用 Android Studio 单击“构建 APK”时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42051185/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com