我有一个在android studio中编译好的android项目。我想构建一个签名的apk并决定以命令行方式执行。所以我像这样更新了build.gradle文件。然后,我从项目目录
在命令行上发出命令gradlew assembleSigned
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "com.me.myapp"
minSdkVersion 8
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
signingConfigs {
signed {
storeFile file('mykeystore.keystore')
storePassword 'passhere'
keyAlias 'myalias'
keyPassword 'keypass'
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
signed {
debuggable false
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.signed
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.1'
compile project(':myapplibrary')
}
我编译等,然后结束这些错误。最后说它
:myappmodule:android模块失败transformClassesAndResourcesWithProguardForSgined FAILED