I'm having trouble downloading my .apk to the Google Play Store. I could previously download several different collections last week, but today I get an error message that my file must zipalign first.
EDIT: I usually managed to create a signed and zipaligned.apk that the AppStore accepted just using the Android Studios built-in “Generate Signed APK” wizard. Today it did not work and led to the following:
I tried the following :
The zipalign guide from the app-release.apk, created by Android studio. When I try to do this, I get the "FAULT CHECK" error message at the end. Some search queries say that providing the full path to the place where you have write access is important, so I tried to do this with a specific path, but to no avail:
./zipalign -v -f 4 /Users/<username>/git/<projectname>/app/app-release.apk /Users/<username>/git/<projectname>/app/aligned.apk
Then I tried to download APK Signer 1.8.5 and use it for zipalign.apk - and here, success! It creates a levelable apk and I can test it using the native zipalign tool for Android Studio
./zipalign -c -v 4 app-release_ALIGNED.apk
and the APK subscriber himself. However, when I boot, I get an error message:
Failed to run aapt dump badging: W/ResourceType(208730): Bad resource table: header size 0x80a3 or total size 0x80b50000 is larger than data size 0x7bcc4 ERROR: dump failed because the resource table is invalid/corrupt.
This, I could not find a solution.
. APK, commit/build, AS 2.2 preview 3 AS2.2 2, - .
,
zipAlignEnabled true
Gradle, .
, - ?:-)
, !
root build.gradle:
classpath 'com.android.tools.build:gradle:2.2.0-alpha3'
Android Studio 2.2 preview 3 gradle, ", ", . , , ,
classpath 'com.android.tools.build:gradle:2.2.0-alpha2'
Android Studio preview 2 - , ! , -.
, -. , -, !:-)
: , , .
: :
META-INF
.apk
, , , . , . !