Meh*_*iya 7 android apk google-play zipalign
我正在使用android studio 2.2预览3发布我的应用程序并生成签名的apk.但是,当我上传apk到谷歌播放时,我收到错误
You uploaded an APK that is not zip aligned. You will need to run a zip align tool on your APK and upload it again.
Run Code Online (Sandbox Code Playgroud)
此外,我试图手动使用zipalign工具,但我得到错误验证失败.
这是我的build.gradle文件
android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
defaultConfig {
applicationId "blackdogs.newaomsi"
minSdkVersion 16
targetSdkVersion 23
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
zipAlignEnabled true
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}}
Run Code Online (Sandbox Code Playgroud)
得到它了.错误是由于我正在使用的gradle版本.将gradle版本降级为
'com.android.tools.build:gradle:2.1.2'
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1753 次 |
| 最近记录: |