我正在使用
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.
此外,我试图手动使用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' } }}