APKをGoogle Playにアップロードする際に私は以前に遭遇したことがないエラーが発生しています。このウィンドウから、私はジップアライメントされていないAPKをアップロードしていることがわかります。しかし、以前のバージョンのAPKをアップロードしたときに、これらのエラーは発生しませんでした。Google PlayにアップロードするときにアンドロイドAPKが整列しない
端末で手動でAPKを手動で調整して、build.gradle
ファイルにzipAlignEnabled true
と書いてみました。また、私は最近、Androidのメーカーが生成していることに気づいた私は
の下に完全なGradleのファイルを投稿します2署名のapkの私が署名したAPKに(1という名前のモバイルrelease.apkと1という名前の摩耗release.apk)を生成する]をクリックしそれはこれまでに決してされていません。なぜそれが理由だろうか?
助けてください?
build.gradle(モジュール:モバイル)
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "24-rc4"
defaultConfig {
applicationId "com.vivekvinodh.example"
minSdkVersion 21
targetSdkVersion 23
versionCode 11
versionName "0.7"
// Enabling multidex support.
multiDexEnabled true
}
signingConfigs {
release {
storeFile file('***********')
storePassword "************"
keyAlias "******"
keyPassword "************"
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release
zipAlignEnabled true
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
wearApp project(':wear')
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.google.android.gms:play-services:9.0.2'
compile 'com.google.android.gms:play-services-ads:9.0.2'
compile 'net.steamcrafted:materialiconlib:1.0.9''
compile 'com.android.support:multidex:1.0.1'
compile 'com.android.support:support-v4:23.4.0'
...
}
build.gradle(モジュール:摩耗)
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "24-rc4"
defaultConfig {
applicationId "com.vivekvinodh.example"
minSdkVersion 21
targetSdkVersion 23
versionCode 11
versionName "0.7"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
zipAlignEnabled true
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.google.android.support:wearable:1.4.0'
compile 'com.google.android.gms:play-services-wearable:9.0.2'
compile 'com.android.support:palette-v7:23.4.0'
compile 'com.ustwo.android:clockwise-wearable:1.0.1'
...
}
あなたの 'build.gradle'ファイルで' minifyEnabled false'を 'minifyEnabled true'に変更します – Shashanth
これはあなたに役立ちます[これを見る](http://stackoverflow.com/a/38055015/1978475) – Vrajesh