37
我嘗試簽署我的應用程序,如this link。 我寫我的簽名配置設置,但我得到「無法找到屬性」錯誤。Android gradle signingConfig錯誤
這是我的build.gradle
apply plugin: 'android'
android {
compileSdkVersion 19
buildToolsVersion '19.0.3'
defaultConfig {
minSdkVersion 11
targetSdkVersion 19
versionCode 1
versionName "Andy Warhol"
}
buildTypes {
debug {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
debuggable false
jniDebugBuild false
signingConfig signingConfigs.myconfig
}
release {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
debuggable false
jniDebugBuild false
}
}
signingConfigs {
myconfig {
keyAlias 'xxx'
keyPassword 'xxx'
storeFile file('xxx')
storePassword 'xxx'
}
}
}
dependencies {
compile 'com.android.support:appcompat-v7:+'
compile 'com.google.android.gms:play-services:4.0.30'
compile fileTree(dir: 'libs', include: ['*.jar'])
compile files('libs/picasso-2.2.0.jar')
compile files('libs/acra-4.5.0.jar')
compile files('libs/libGoogleAnalyticsServices.jar')
}
這是我的錯誤
搖籃 'BulentTirasMobileApp' 項目刷新失敗: 無法找到SigningConfig容器屬性 '的myconfig'。