내 애플리케이션의 서명 된 apk를 생성하여 팀에 로컬로 배포하고 있습니다. 하지만 이틀 전에 갑자기 서명 된 APK를 생성 할 수 없었습니다. 빌드 변수를 "release"로 변경하면 오류 또는 경고없이 완료된 gradle 호출이 완료됩니다. APK 서명 만들 때 나는 다음과 같은 오류가 발생합니다 :Android - 서명 된 APK - Gradle 실행이 실패했습니다.
Information:Compilation completed with 1 error and 0 warnings in 11 sec
Information:1 error
Information:0 warnings
Error:Gradle: Execution failed for task ':module_name:proguardRelease'.
> java.io.IOException: Please correct the above warnings first.
build.gradle :
apply plugin: 'android'
android {
compileSdkVersion 19
buildToolsVersion '19.1.0'
defaultConfig {
minSdkVersion 17
targetSdkVersion 19
versionCode 1
versionName '1.0'
}
signingConfigs {
release {
storeFile file('release.keystore')
storePassword '*************'
keyAlias '*********'
keyPassword '**************'
}
}
buildTypes {
release {
runProguard true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
productFlavors {
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile files('libs/volley.jar')
compile files('libs/StarIOPort3.1.jar')
compile files('libs/logentries-android-2.1.2.jar')
compile 'com.android.support:appcompat-v7:19.1.0'
compile 'com.android.support:support-v4:19.1.0'
compile 'com.google.android.gms:play-services:+'
compile 'com.wrapp.floatlabelededittext:library:0.0.3'
}
내가 경고를 볼 수 있습니까? "메시지"에는 경고가 없습니다. 또한 gradle 콘솔.
이 문제의 원인은 무엇입니까? 이 문제를 어떻게 해결할 수 있습니까?
그래 플 파일은 어떤 모습입니까? 당신은 안드로이드 스튜디오를 사용하여 빌드하거나 당신의 IDE가 무엇입니까? build.gradle 파일에서 pro-guard를 비활성화하십시오. – Seth
Android Studio를 사용하고 있습니다. 릴리스 빌드에서 프로 가드를 비활성화하는 것은 좋은 생각이 아닙니다. – Uma
그것을 사용하지 않는 것이 가장 좋은 방법은 아닐지 모르지만 프로 그aur 드가 문제의 원인이된다면 알고 싶을 것입니다. – Seth