我正在使用 android studio 2.2 preview 3 发布我的应用程序并生成签名的 apk。但是当我将apk上传到google play时出现错误
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.
我也尝试手动使用 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'
}
}}