Discussion:
[android-developers] Zipalign does not work!
Fabs
2016-06-09 16:15:15 UTC
Permalink
Hello all.

I have never encountered this issue before, despite developing several
apps. When I build a signed production APK using Android Studio, I get an
app-release.apk file but it is rejected by Google Play, saying it needs to
be zipaligned. When I verify the alignment using zipalign tool, I receive
output like this:

1876394 res/layout/design_bottom_sheet_dialog.xml (OK - compressed)
1876935 res/layout/design_layout_snackbar.xml (OK - compressed)
1877313 res/layout/design_layout_snackbar_include.xml (OK - compressed)
1877936 res/layout/design_layout_tab_icon.xml (OK - compressed)
1878215 res/layout/design_layout_tab_text.xml (OK - compressed)
1878540 res/layout/design_menu_item_action_area.xml (OK - compressed)
1878804 res/layout/design_navigation_item.xml (OK - compressed)
1879186 res/layout/design_navigation_item_header.xml (OK - compressed)
1879517 res/layout/design_navigation_item_separator.xml (OK - compressed)
1879844 res/layout/design_navigation_item_subheader.xml (OK - compressed)
1880231 res/layout/design_navigation_menu.xml (OK - compressed)
1880609 res/layout/design_navigation_menu_item.xml (OK - compressed)
1881116 res/layout/notification_media_action.xml (OK - compressed)
1881527 res/layout/notification_media_cancel_action.xml (OK - compressed)
1882005 res/layout/notification_template_big_media.xml (OK - compressed)
1882747 res/layout/notification_template_big_media_narrow.xml (OK -
compressed)
1883472 res/layout/notification_template_lines.xml (OK - compressed)
1884347 res/layout/notification_template_media.xml (OK - compressed)
1884968 res/layout/notification_template_part_chronometer.xml (OK -
compressed)
1885372 res/layout/notification_template_part_time.xml (OK - compressed)
1885772 res/layout/select_dialog_item_material.xml (OK - compressed)
1886199 res/layout/select_dialog_multichoice_material.xml (OK - compressed)
1886700 res/layout/select_dialog_singlechoice_material.xml (OK -
compressed)
1887202 res/layout/support_simple_spinner_dropdown_item.xml (OK -
compressed)
1887559 res/menu/menu_login.xml (OK - compressed)
1887906 res/mipmap-hdpi-v4/ic_launcher.png (BAD - 2)
1891092 res/mipmap-mdpi-v4/ic_launcher.png (OK)
1893113 res/mipmap-xhdpi-v4/ic_launcher.png (BAD - 1)
1897545 res/mipmap-xxhdpi-v4/ic_launcher.png (BAD - 1)
1904619 res/mipmap-xxxhdpi-v4/ic_launcher.png (BAD - 3)
1914156 resources.arsc (OK)
Verification FAILED

Indeed it is not aligned. But when I try to re-align it, I get this:

1881710 res/layout/notification_media_action.xml (OK - compressed)
1882121 res/layout/notification_media_cancel_action.xml (OK - compressed)
1882599 res/layout/notification_template_big_media.xml (OK - compressed)
1883341 res/layout/notification_template_big_media_narrow.xml (OK -
compressed)
1884066 res/layout/notification_template_lines.xml (OK - compressed)
1884941 res/layout/notification_template_media.xml (OK - compressed)
1885562 res/layout/notification_template_part_chronometer.xml (OK -
compressed)
1885966 res/layout/notification_template_part_time.xml (OK - compressed)
1886366 res/layout/select_dialog_item_material.xml (OK - compressed)
1886793 res/layout/select_dialog_multichoice_material.xml (OK - compressed)
1887294 res/layout/select_dialog_singlechoice_material.xml (OK -
compressed)
1887796 res/layout/support_simple_spinner_dropdown_item.xml (OK -
compressed)
1888153 res/menu/menu_login.xml (OK - compressed)
1888500 res/mipmap-hdpi-v4/ic_launcher.png (OK)
1891688 res/mipmap-mdpi-v4/ic_launcher.png (OK)
1893712 res/mipmap-xhdpi-v4/ic_launcher.png (OK)
1898144 res/mipmap-xxhdpi-v4/ic_launcher.png (OK)
1905220 res/mipmap-xxxhdpi-v4/ic_launcher.png (OK)
1914757 resources.arsc (BAD - 1)
Verification FAILED

Ultimately, it appears that my APK cannot be aligned by zipalign? I am
using these options: -f -v 4 to align and -c -v 4 to verify.

Is this a known issue with zipalign, or have I made some kind of insane
error? Cheers.
--
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+***@googlegroups.com.
To post to this group, send email to android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/a8638e43-3d76-478c-ad80-7a10396e12d0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
GregF
2016-06-10 15:43:04 UTC
Permalink
It just started happening to me last night using Android Studio 2.2 Preview
3. I ended up building the APK with Studio then manually signing and
zipalign the APK from the commandline. It is a pain but at least a
workaround.
Post by Fabs
Hello all.
I have never encountered this issue before, despite developing several
apps. When I build a signed production APK using Android Studio, I get an
app-release.apk file but it is rejected by Google Play, saying it needs to
be zipaligned. When I verify the alignment using zipalign tool, I receive
1876394 res/layout/design_bottom_sheet_dialog.xml (OK - compressed)
1876935 res/layout/design_layout_snackbar.xml (OK - compressed)
1877313 res/layout/design_layout_snackbar_include.xml (OK - compressed)
1877936 res/layout/design_layout_tab_icon.xml (OK - compressed)
1878215 res/layout/design_layout_tab_text.xml (OK - compressed)
1878540 res/layout/design_menu_item_action_area.xml (OK - compressed)
1878804 res/layout/design_navigation_item.xml (OK - compressed)
1879186 res/layout/design_navigation_item_header.xml (OK - compressed)
1879517 res/layout/design_navigation_item_separator.xml (OK - compressed)
1879844 res/layout/design_navigation_item_subheader.xml (OK - compressed)
1880231 res/layout/design_navigation_menu.xml (OK - compressed)
1880609 res/layout/design_navigation_menu_item.xml (OK - compressed)
1881116 res/layout/notification_media_action.xml (OK - compressed)
1881527 res/layout/notification_media_cancel_action.xml (OK - compressed)
1882005 res/layout/notification_template_big_media.xml (OK - compressed)
1882747 res/layout/notification_template_big_media_narrow.xml (OK -
compressed)
1883472 res/layout/notification_template_lines.xml (OK - compressed)
1884347 res/layout/notification_template_media.xml (OK - compressed)
1884968 res/layout/notification_template_part_chronometer.xml (OK -
compressed)
1885372 res/layout/notification_template_part_time.xml (OK - compressed)
1885772 res/layout/select_dialog_item_material.xml (OK - compressed)
1886199 res/layout/select_dialog_multichoice_material.xml (OK - compressed)
1886700 res/layout/select_dialog_singlechoice_material.xml (OK -
compressed)
1887202 res/layout/support_simple_spinner_dropdown_item.xml (OK -
compressed)
1887559 res/menu/menu_login.xml (OK - compressed)
1887906 res/mipmap-hdpi-v4/ic_launcher.png (BAD - 2)
1891092 res/mipmap-mdpi-v4/ic_launcher.png (OK)
1893113 res/mipmap-xhdpi-v4/ic_launcher.png (BAD - 1)
1897545 res/mipmap-xxhdpi-v4/ic_launcher.png (BAD - 1)
1904619 res/mipmap-xxxhdpi-v4/ic_launcher.png (BAD - 3)
1914156 resources.arsc (OK)
Verification FAILED
1881710 res/layout/notification_media_action.xml (OK - compressed)
1882121 res/layout/notification_media_cancel_action.xml (OK - compressed)
1882599 res/layout/notification_template_big_media.xml (OK - compressed)
1883341 res/layout/notification_template_big_media_narrow.xml (OK -
compressed)
1884066 res/layout/notification_template_lines.xml (OK - compressed)
1884941 res/layout/notification_template_media.xml (OK - compressed)
1885562 res/layout/notification_template_part_chronometer.xml (OK -
compressed)
1885966 res/layout/notification_template_part_time.xml (OK - compressed)
1886366 res/layout/select_dialog_item_material.xml (OK - compressed)
1886793 res/layout/select_dialog_multichoice_material.xml (OK - compressed)
1887294 res/layout/select_dialog_singlechoice_material.xml (OK -
compressed)
1887796 res/layout/support_simple_spinner_dropdown_item.xml (OK -
compressed)
1888153 res/menu/menu_login.xml (OK - compressed)
1888500 res/mipmap-hdpi-v4/ic_launcher.png (OK)
1891688 res/mipmap-mdpi-v4/ic_launcher.png (OK)
1893712 res/mipmap-xhdpi-v4/ic_launcher.png (OK)
1898144 res/mipmap-xxhdpi-v4/ic_launcher.png (OK)
1905220 res/mipmap-xxxhdpi-v4/ic_launcher.png (OK)
1914757 resources.arsc (BAD - 1)
Verification FAILED
Ultimately, it appears that my APK cannot be aligned by zipalign? I am
using these options: -f -v 4 to align and -c -v 4 to verify.
Is this a known issue with zipalign, or have I made some kind of insane
error? Cheers.
--
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+***@googlegroups.com.
To post to this group, send email to android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/e91002f1-a49e-4328-ab49-6ef0cbbec60d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
e***@gmail.com
2016-06-10 20:38:30 UTC
Permalink
As GregF just wrote, manual signing and aligning. I found easier way - just
align from commandline.. TWICE! After aligning two times I was able to
upload my apk

Urmas
Post by Fabs
Hello all.
I have never encountered this issue before, despite developing several
apps. When I build a signed production APK using Android Studio, I get an
app-release.apk file but it is rejected by Google Play, saying it needs to
be zipaligned. When I verify the alignment using zipalign tool, I receive
1876394 res/layout/design_bottom_sheet_dialog.xml (OK - compressed)
1876935 res/layout/design_layout_snackbar.xml (OK - compressed)
1877313 res/layout/design_layout_snackbar_include.xml (OK - compressed)
1877936 res/layout/design_layout_tab_icon.xml (OK - compressed)
1878215 res/layout/design_layout_tab_text.xml (OK - compressed)
1878540 res/layout/design_menu_item_action_area.xml (OK - compressed)
1878804 res/layout/design_navigation_item.xml (OK - compressed)
1879186 res/layout/design_navigation_item_header.xml (OK - compressed)
1879517 res/layout/design_navigation_item_separator.xml (OK - compressed)
1879844 res/layout/design_navigation_item_subheader.xml (OK - compressed)
1880231 res/layout/design_navigation_menu.xml (OK - compressed)
1880609 res/layout/design_navigation_menu_item.xml (OK - compressed)
1881116 res/layout/notification_media_action.xml (OK - compressed)
1881527 res/layout/notification_media_cancel_action.xml (OK - compressed)
1882005 res/layout/notification_template_big_media.xml (OK - compressed)
1882747 res/layout/notification_template_big_media_narrow.xml (OK -
compressed)
1883472 res/layout/notification_template_lines.xml (OK - compressed)
1884347 res/layout/notification_template_media.xml (OK - compressed)
1884968 res/layout/notification_template_part_chronometer.xml (OK -
compressed)
1885372 res/layout/notification_template_part_time.xml (OK - compressed)
1885772 res/layout/select_dialog_item_material.xml (OK - compressed)
1886199 res/layout/select_dialog_multichoice_material.xml (OK - compressed)
1886700 res/layout/select_dialog_singlechoice_material.xml (OK -
compressed)
1887202 res/layout/support_simple_spinner_dropdown_item.xml (OK -
compressed)
1887559 res/menu/menu_login.xml (OK - compressed)
1887906 res/mipmap-hdpi-v4/ic_launcher.png (BAD - 2)
1891092 res/mipmap-mdpi-v4/ic_launcher.png (OK)
1893113 res/mipmap-xhdpi-v4/ic_launcher.png (BAD - 1)
1897545 res/mipmap-xxhdpi-v4/ic_launcher.png (BAD - 1)
1904619 res/mipmap-xxxhdpi-v4/ic_launcher.png (BAD - 3)
1914156 resources.arsc (OK)
Verification FAILED
1881710 res/layout/notification_media_action.xml (OK - compressed)
1882121 res/layout/notification_media_cancel_action.xml (OK - compressed)
1882599 res/layout/notification_template_big_media.xml (OK - compressed)
1883341 res/layout/notification_template_big_media_narrow.xml (OK -
compressed)
1884066 res/layout/notification_template_lines.xml (OK - compressed)
1884941 res/layout/notification_template_media.xml (OK - compressed)
1885562 res/layout/notification_template_part_chronometer.xml (OK -
compressed)
1885966 res/layout/notification_template_part_time.xml (OK - compressed)
1886366 res/layout/select_dialog_item_material.xml (OK - compressed)
1886793 res/layout/select_dialog_multichoice_material.xml (OK - compressed)
1887294 res/layout/select_dialog_singlechoice_material.xml (OK -
compressed)
1887796 res/layout/support_simple_spinner_dropdown_item.xml (OK -
compressed)
1888153 res/menu/menu_login.xml (OK - compressed)
1888500 res/mipmap-hdpi-v4/ic_launcher.png (OK)
1891688 res/mipmap-mdpi-v4/ic_launcher.png (OK)
1893712 res/mipmap-xhdpi-v4/ic_launcher.png (OK)
1898144 res/mipmap-xxhdpi-v4/ic_launcher.png (OK)
1905220 res/mipmap-xxxhdpi-v4/ic_launcher.png (OK)
1914757 resources.arsc (BAD - 1)
Verification FAILED
Ultimately, it appears that my APK cannot be aligned by zipalign? I am
using these options: -f -v 4 to align and -c -v 4 to verify.
Is this a known issue with zipalign, or have I made some kind of insane
error? Cheers.
--
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+***@googlegroups.com.
To post to this group, send email to android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/194a18c9-e0fe-48df-a2de-0606991ac041%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Gilles Romani
2016-06-12 19:25:51 UTC
Permalink
Post by e***@gmail.com
As GregF just wrote, manual signing and aligning. I found easier way -
just align from commandline.. TWICE! After aligning two times I was able to
upload my apk
You save my life ! Thank you !
--
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+***@googlegroups.com.
To post to this group, send email to android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/3c8d7d35-bcd0-49e9-9da5-b1f096b4285f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Sun Light
2016-06-15 09:19:31 UTC
Permalink
I tried to:
- zipalign once, not working, still same problem.
- zipalign twice, not working - You uploaded an APK with invalid or missing
signing information for some of its files. You need to create a valid
signed APK.
- reinstall Android Studio to last stable version include SDK - still same
problem
Any other idea what I can do?
--
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+***@googlegroups.com.
To post to this group, send email to android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/f66ad7b0-6348-40e1-95f0-27976a9ce130%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
MarKco
2016-06-15 09:23:44 UTC
Permalink
Yes, as I stated above you can downgrade your gradle plugin from
build.gradle without downgrading Android Studio and thus you'll be able to
build zipaligned APKs.

"n build.gradle I changed gradle plugin version from

classpath 'com.android.tools.build:gradle:2.2.0-alpha3'

to

classpath 'com.android.tools.build:gradle:2.1.2'

Rebuild, sign, upload - no more zipalign errors."
(from http://stackoverflow.com/questions/37783751/android-apk-not-zip-aligned-when-uploading-to-google-play/37786864#37786864)

Regards
Post by Sun Light
- zipalign once, not working, still same problem.
- zipalign twice, not working - You uploaded an APK with invalid or
missing signing information for some of its files. You need to create a
valid signed APK.
- reinstall Android Studio to last stable version include SDK - still same
problem
Any other idea what I can do?
--
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+***@googlegroups.com.
To post to this group, send email to android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/a5830e6c-f8e0-4baa-9cfa-07f516222c69%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Jim Roal
2016-06-12 22:38:13 UTC
Permalink
I have battled this too. I get random zipalign errors. Clean and rebuild
and get different errors. The sometimes I can get it zipaligned, go to
upload the Play Store, now I get signing errors. I know the signed app
works because I sideloaded it over a previous signed installation with no
issues. I play around with small source edits, rerun everything, and once
in a while one will actually upload OK. I have to manually zipalign every
time though. What is up with this?
--
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+***@googlegroups.com.
To post to this group, send email to android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/9468f90f-7007-4210-85d3-e1968ab426d9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
e***@gmail.com
2016-06-13 07:25:44 UTC
Permalink
Post by Jim Roal
What is up with this?
As I have in hard way acted with Android Studio only about for a week,
don't know. I hope, it's about "preview" status of developer, and that it
all gets better. Knowing Google, there's hardly someone we could complain
(forums about apis are full of requests and reports.. no one hears...)

And more about bugs (or featrues??) - I spent about 4 hours few days ago on
that, I wasn't able to reference to R.layout.<some new id>. Thought already
that problem is IN me.. stupid one.. and as I was already tried
_everything_ and time was tooooo late.. went to sleep. On the next morning
.. wake up my computer from sleep, first thing tried again run the code
and.. IT WORKED. WTF.... so lesson learned about Android Studio - if you
ran into some mysterious "bug",
0) recheck code, and recheck, and ty rebuild - maybe it (gradle?) gives
some error somewhere where IDE can't show it (for example some missing
character or string in xml)
1) try clean project
2) try rebuild project
3) try restart android VM (not just rerun app)
and probably most important...
4) restart Android Studio

Second magical problem was that I tried reference from code to
R.string.<some id>.. ooboy,
* getApplication().getResources().getString(.. and getcontext..
* getString(..
* just setText(R.string.<id>)
* maybe its impossible from runnable?
* etc and etc..
* cycle of (rebuild, clean, redeploy)
AND again.. went to sleep, on the next morning it JUST WORKED... o'boy I
was pissed...
Post by Jim Roal
Post by e***@gmail.com
You save my life !
:) Good to hear, that it helped



Urmas
--
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+***@googlegroups.com.
To post to this group, send email to android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/42aeed33-e008-4d9d-bee2-deac388f2ce4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
MarKco
2016-06-13 08:12:21 UTC
Permalink
I'm experiencing the exact same issue since I upgraded to Android Studio
2.2 preview 3
Post by Fabs
Hello all.
(...)
--
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+***@googlegroups.com.
To post to this group, send email to android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/bc2ad354-f990-4ac6-b4f5-90ccb4d03104%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
z***@brndstr.com
2016-06-13 10:01:31 UTC
Permalink
What helped me:

I downloaded stable Android Studio 2.1
here: https://developer.android.com/studio/index.html
Then in build.gradle I changed gradle plugin version from
classpath 'com.android.tools.build:gradle:2.2.0-alpha3'
to
classpath 'com.android.tools.build:gradle:2.1.2'

Rebuild, sign, upload - no more zipalign errors.
Post by Fabs
Hello all.
I have never encountered this issue before, despite developing several
apps. When I build a signed production APK using Android Studio, I get an
app-release.apk file but it is rejected by Google Play, saying it needs to
be zipaligned. When I verify the alignment using zipalign tool, I receive
1876394 res/layout/design_bottom_sheet_dialog.xml (OK - compressed)
1876935 res/layout/design_layout_snackbar.xml (OK - compressed)
1877313 res/layout/design_layout_snackbar_include.xml (OK - compressed)
1877936 res/layout/design_layout_tab_icon.xml (OK - compressed)
1878215 res/layout/design_layout_tab_text.xml (OK - compressed)
1878540 res/layout/design_menu_item_action_area.xml (OK - compressed)
1878804 res/layout/design_navigation_item.xml (OK - compressed)
1879186 res/layout/design_navigation_item_header.xml (OK - compressed)
1879517 res/layout/design_navigation_item_separator.xml (OK - compressed)
1879844 res/layout/design_navigation_item_subheader.xml (OK - compressed)
1880231 res/layout/design_navigation_menu.xml (OK - compressed)
1880609 res/layout/design_navigation_menu_item.xml (OK - compressed)
1881116 res/layout/notification_media_action.xml (OK - compressed)
1881527 res/layout/notification_media_cancel_action.xml (OK - compressed)
1882005 res/layout/notification_template_big_media.xml (OK - compressed)
1882747 res/layout/notification_template_big_media_narrow.xml (OK -
compressed)
1883472 res/layout/notification_template_lines.xml (OK - compressed)
1884347 res/layout/notification_template_media.xml (OK - compressed)
1884968 res/layout/notification_template_part_chronometer.xml (OK -
compressed)
1885372 res/layout/notification_template_part_time.xml (OK - compressed)
1885772 res/layout/select_dialog_item_material.xml (OK - compressed)
1886199 res/layout/select_dialog_multichoice_material.xml (OK - compressed)
1886700 res/layout/select_dialog_singlechoice_material.xml (OK -
compressed)
1887202 res/layout/support_simple_spinner_dropdown_item.xml (OK -
compressed)
1887559 res/menu/menu_login.xml (OK - compressed)
1887906 res/mipmap-hdpi-v4/ic_launcher.png (BAD - 2)
1891092 res/mipmap-mdpi-v4/ic_launcher.png (OK)
1893113 res/mipmap-xhdpi-v4/ic_launcher.png (BAD - 1)
1897545 res/mipmap-xxhdpi-v4/ic_launcher.png (BAD - 1)
1904619 res/mipmap-xxxhdpi-v4/ic_launcher.png (BAD - 3)
1914156 resources.arsc (OK)
Verification FAILED
1881710 res/layout/notification_media_action.xml (OK - compressed)
1882121 res/layout/notification_media_cancel_action.xml (OK - compressed)
1882599 res/layout/notification_template_big_media.xml (OK - compressed)
1883341 res/layout/notification_template_big_media_narrow.xml (OK -
compressed)
1884066 res/layout/notification_template_lines.xml (OK - compressed)
1884941 res/layout/notification_template_media.xml (OK - compressed)
1885562 res/layout/notification_template_part_chronometer.xml (OK -
compressed)
1885966 res/layout/notification_template_part_time.xml (OK - compressed)
1886366 res/layout/select_dialog_item_material.xml (OK - compressed)
1886793 res/layout/select_dialog_multichoice_material.xml (OK - compressed)
1887294 res/layout/select_dialog_singlechoice_material.xml (OK -
compressed)
1887796 res/layout/support_simple_spinner_dropdown_item.xml (OK -
compressed)
1888153 res/menu/menu_login.xml (OK - compressed)
1888500 res/mipmap-hdpi-v4/ic_launcher.png (OK)
1891688 res/mipmap-mdpi-v4/ic_launcher.png (OK)
1893712 res/mipmap-xhdpi-v4/ic_launcher.png (OK)
1898144 res/mipmap-xxhdpi-v4/ic_launcher.png (OK)
1905220 res/mipmap-xxxhdpi-v4/ic_launcher.png (OK)
1914757 resources.arsc (BAD - 1)
Verification FAILED
Ultimately, it appears that my APK cannot be aligned by zipalign? I am
using these options: -f -v 4 to align and -c -v 4 to verify.
Is this a known issue with zipalign, or have I made some kind of insane
error? Cheers.
--
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+***@googlegroups.com.
To post to this group, send email to android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/9ae5ea96-8123-4ad6-a8c5-beac1cd45b63%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Fabs
2016-06-13 13:48:36 UTC
Permalink
Very interesting everyone! I just verified that if I take the output of the
first attempt to zipalign (which fails), the zipaligned zipaligned file
worked for me too! It looks like this is a pretty widespread issue that
thankfully has an easy workaround, and I guess that this will be eliminated
when the problem is identified and resolved.

To clarify: zipalign your signed APK, and then take that aligned file and
zipalign it again.

Cheers everyone!
Post by Fabs
Hello all.
I have never encountered this issue before, despite developing several
apps. When I build a signed production APK using Android Studio, I get an
app-release.apk file but it is rejected by Google Play, saying it needs to
be zipaligned. When I verify the alignment using zipalign tool, I receive
1876394 res/layout/design_bottom_sheet_dialog.xml (OK - compressed)
1876935 res/layout/design_layout_snackbar.xml (OK - compressed)
1877313 res/layout/design_layout_snackbar_include.xml (OK - compressed)
1877936 res/layout/design_layout_tab_icon.xml (OK - compressed)
1878215 res/layout/design_layout_tab_text.xml (OK - compressed)
1878540 res/layout/design_menu_item_action_area.xml (OK - compressed)
1878804 res/layout/design_navigation_item.xml (OK - compressed)
1879186 res/layout/design_navigation_item_header.xml (OK - compressed)
1879517 res/layout/design_navigation_item_separator.xml (OK - compressed)
1879844 res/layout/design_navigation_item_subheader.xml (OK - compressed)
1880231 res/layout/design_navigation_menu.xml (OK - compressed)
1880609 res/layout/design_navigation_menu_item.xml (OK - compressed)
1881116 res/layout/notification_media_action.xml (OK - compressed)
1881527 res/layout/notification_media_cancel_action.xml (OK - compressed)
1882005 res/layout/notification_template_big_media.xml (OK - compressed)
1882747 res/layout/notification_template_big_media_narrow.xml (OK -
compressed)
1883472 res/layout/notification_template_lines.xml (OK - compressed)
1884347 res/layout/notification_template_media.xml (OK - compressed)
1884968 res/layout/notification_template_part_chronometer.xml (OK -
compressed)
1885372 res/layout/notification_template_part_time.xml (OK - compressed)
1885772 res/layout/select_dialog_item_material.xml (OK - compressed)
1886199 res/layout/select_dialog_multichoice_material.xml (OK - compressed)
1886700 res/layout/select_dialog_singlechoice_material.xml (OK -
compressed)
1887202 res/layout/support_simple_spinner_dropdown_item.xml (OK -
compressed)
1887559 res/menu/menu_login.xml (OK - compressed)
1887906 res/mipmap-hdpi-v4/ic_launcher.png (BAD - 2)
1891092 res/mipmap-mdpi-v4/ic_launcher.png (OK)
1893113 res/mipmap-xhdpi-v4/ic_launcher.png (BAD - 1)
1897545 res/mipmap-xxhdpi-v4/ic_launcher.png (BAD - 1)
1904619 res/mipmap-xxxhdpi-v4/ic_launcher.png (BAD - 3)
1914156 resources.arsc (OK)
Verification FAILED
1881710 res/layout/notification_media_action.xml (OK - compressed)
1882121 res/layout/notification_media_cancel_action.xml (OK - compressed)
1882599 res/layout/notification_template_big_media.xml (OK - compressed)
1883341 res/layout/notification_template_big_media_narrow.xml (OK -
compressed)
1884066 res/layout/notification_template_lines.xml (OK - compressed)
1884941 res/layout/notification_template_media.xml (OK - compressed)
1885562 res/layout/notification_template_part_chronometer.xml (OK -
compressed)
1885966 res/layout/notification_template_part_time.xml (OK - compressed)
1886366 res/layout/select_dialog_item_material.xml (OK - compressed)
1886793 res/layout/select_dialog_multichoice_material.xml (OK - compressed)
1887294 res/layout/select_dialog_singlechoice_material.xml (OK -
compressed)
1887796 res/layout/support_simple_spinner_dropdown_item.xml (OK -
compressed)
1888153 res/menu/menu_login.xml (OK - compressed)
1888500 res/mipmap-hdpi-v4/ic_launcher.png (OK)
1891688 res/mipmap-mdpi-v4/ic_launcher.png (OK)
1893712 res/mipmap-xhdpi-v4/ic_launcher.png (OK)
1898144 res/mipmap-xxhdpi-v4/ic_launcher.png (OK)
1905220 res/mipmap-xxxhdpi-v4/ic_launcher.png (OK)
1914757 resources.arsc (BAD - 1)
Verification FAILED
Ultimately, it appears that my APK cannot be aligned by zipalign? I am
using these options: -f -v 4 to align and -c -v 4 to verify.
Is this a known issue with zipalign, or have I made some kind of insane
error? Cheers.
--
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+***@googlegroups.com.
To post to this group, send email to android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/186ab83d-b67a-402f-b8e0-45151c0828e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
MarKco
2016-06-14 10:22:29 UTC
Permalink
Hello Fabs,
thank you for your suggestion. I zipaligned the zipaligned file and got a
"Verification succesful" exit code. Then, when I loaded it on play store, I
got the "not zipaligned" error again. I zipaligned again, still got failure
:-/
Post by Fabs
Very interesting everyone! I just verified that if I take the output of
the first attempt to zipalign (which fails), the zipaligned zipaligned file
worked for me too! It looks like this is a pretty widespread issue that
thankfully has an easy workaround, and I guess that this will be eliminated
when the problem is identified and resolved.
To clarify: zipalign your signed APK, and then take that aligned file and
zipalign it again.
Cheers everyone!
Post by Fabs
Hello all.
I have never encountered this issue before, despite developing several
apps. When I build a signed production APK using Android Studio, I get an
app-release.apk file but it is rejected by Google Play, saying it needs to
be zipaligned. When I verify the alignment using zipalign tool, I receive
1876394 res/layout/design_bottom_sheet_dialog.xml (OK - compressed)
1876935 res/layout/design_layout_snackbar.xml (OK - compressed)
1877313 res/layout/design_layout_snackbar_include.xml (OK - compressed)
1877936 res/layout/design_layout_tab_icon.xml (OK - compressed)
1878215 res/layout/design_layout_tab_text.xml (OK - compressed)
1878540 res/layout/design_menu_item_action_area.xml (OK - compressed)
1878804 res/layout/design_navigation_item.xml (OK - compressed)
1879186 res/layout/design_navigation_item_header.xml (OK - compressed)
1879517 res/layout/design_navigation_item_separator.xml (OK - compressed)
1879844 res/layout/design_navigation_item_subheader.xml (OK - compressed)
1880231 res/layout/design_navigation_menu.xml (OK - compressed)
1880609 res/layout/design_navigation_menu_item.xml (OK - compressed)
1881116 res/layout/notification_media_action.xml (OK - compressed)
1881527 res/layout/notification_media_cancel_action.xml (OK - compressed)
1882005 res/layout/notification_template_big_media.xml (OK - compressed)
1882747 res/layout/notification_template_big_media_narrow.xml (OK -
compressed)
1883472 res/layout/notification_template_lines.xml (OK - compressed)
1884347 res/layout/notification_template_media.xml (OK - compressed)
1884968 res/layout/notification_template_part_chronometer.xml (OK -
compressed)
1885372 res/layout/notification_template_part_time.xml (OK - compressed)
1885772 res/layout/select_dialog_item_material.xml (OK - compressed)
1886199 res/layout/select_dialog_multichoice_material.xml (OK - compressed)
1886700 res/layout/select_dialog_singlechoice_material.xml (OK -
compressed)
1887202 res/layout/support_simple_spinner_dropdown_item.xml (OK -
compressed)
1887559 res/menu/menu_login.xml (OK - compressed)
1887906 res/mipmap-hdpi-v4/ic_launcher.png (BAD - 2)
1891092 res/mipmap-mdpi-v4/ic_launcher.png (OK)
1893113 res/mipmap-xhdpi-v4/ic_launcher.png (BAD - 1)
1897545 res/mipmap-xxhdpi-v4/ic_launcher.png (BAD - 1)
1904619 res/mipmap-xxxhdpi-v4/ic_launcher.png (BAD - 3)
1914156 resources.arsc (OK)
Verification FAILED
1881710 res/layout/notification_media_action.xml (OK - compressed)
1882121 res/layout/notification_media_cancel_action.xml (OK - compressed)
1882599 res/layout/notification_template_big_media.xml (OK - compressed)
1883341 res/layout/notification_template_big_media_narrow.xml (OK -
compressed)
1884066 res/layout/notification_template_lines.xml (OK - compressed)
1884941 res/layout/notification_template_media.xml (OK - compressed)
1885562 res/layout/notification_template_part_chronometer.xml (OK -
compressed)
1885966 res/layout/notification_template_part_time.xml (OK - compressed)
1886366 res/layout/select_dialog_item_material.xml (OK - compressed)
1886793 res/layout/select_dialog_multichoice_material.xml (OK - compressed)
1887294 res/layout/select_dialog_singlechoice_material.xml (OK -
compressed)
1887796 res/layout/support_simple_spinner_dropdown_item.xml (OK -
compressed)
1888153 res/menu/menu_login.xml (OK - compressed)
1888500 res/mipmap-hdpi-v4/ic_launcher.png (OK)
1891688 res/mipmap-mdpi-v4/ic_launcher.png (OK)
1893712 res/mipmap-xhdpi-v4/ic_launcher.png (OK)
1898144 res/mipmap-xxhdpi-v4/ic_launcher.png (OK)
1905220 res/mipmap-xxxhdpi-v4/ic_launcher.png (OK)
1914757 resources.arsc (BAD - 1)
Verification FAILED
Ultimately, it appears that my APK cannot be aligned by zipalign? I am
using these options: -f -v 4 to align and -c -v 4 to verify.
Is this a known issue with zipalign, or have I made some kind of insane
error? Cheers.
--
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+***@googlegroups.com.
To post to this group, send email to android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/e2335a90-01c3-47ea-81d7-12d7821ed960%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
MarKco
2016-06-15 09:03:36 UTC
Permalink
I was able to build a correctly zipaligned APK by downgrading gradle plugin
from classpath com.android.tools.build:gradle:2.2.0-alpha3
to com.android.tools.build:gradle:2.1.2 as suggested
here: http://stackoverflow.com/questions/37783751/android-apk-not-zip-aligned-when-uploading-to-google-play/37786864#37786864
Post by MarKco
Hello Fabs,
thank you for your suggestion. I zipaligned the zipaligned file and got a
"Verification succesful" exit code. Then, when I loaded it on play store, I
got the "not zipaligned" error again. I zipaligned again, still got failure
:-/
Post by Fabs
Very interesting everyone! I just verified that if I take the output of
the first attempt to zipalign (which fails), the zipaligned zipaligned file
worked for me too! It looks like this is a pretty widespread issue that
thankfully has an easy workaround, and I guess that this will be eliminated
when the problem is identified and resolved.
To clarify: zipalign your signed APK, and then take that aligned file and
zipalign it again.
Cheers everyone!
Post by Fabs
Hello all.
I have never encountered this issue before, despite developing several
apps. When I build a signed production APK using Android Studio, I get an
app-release.apk file but it is rejected by Google Play, saying it needs to
be zipaligned. When I verify the alignment using zipalign tool, I receive
1876394 res/layout/design_bottom_sheet_dialog.xml (OK - compressed)
1876935 res/layout/design_layout_snackbar.xml (OK - compressed)
1877313 res/layout/design_layout_snackbar_include.xml (OK - compressed)
1877936 res/layout/design_layout_tab_icon.xml (OK - compressed)
1878215 res/layout/design_layout_tab_text.xml (OK - compressed)
1878540 res/layout/design_menu_item_action_area.xml (OK - compressed)
1878804 res/layout/design_navigation_item.xml (OK - compressed)
1879186 res/layout/design_navigation_item_header.xml (OK - compressed)
1879517 res/layout/design_navigation_item_separator.xml (OK - compressed)
1879844 res/layout/design_navigation_item_subheader.xml (OK - compressed)
1880231 res/layout/design_navigation_menu.xml (OK - compressed)
1880609 res/layout/design_navigation_menu_item.xml (OK - compressed)
1881116 res/layout/notification_media_action.xml (OK - compressed)
1881527 res/layout/notification_media_cancel_action.xml (OK - compressed)
1882005 res/layout/notification_template_big_media.xml (OK - compressed)
1882747 res/layout/notification_template_big_media_narrow.xml (OK -
compressed)
1883472 res/layout/notification_template_lines.xml (OK - compressed)
1884347 res/layout/notification_template_media.xml (OK - compressed)
1884968 res/layout/notification_template_part_chronometer.xml (OK -
compressed)
1885372 res/layout/notification_template_part_time.xml (OK - compressed)
1885772 res/layout/select_dialog_item_material.xml (OK - compressed)
1886199 res/layout/select_dialog_multichoice_material.xml (OK - compressed)
1886700 res/layout/select_dialog_singlechoice_material.xml (OK -
compressed)
1887202 res/layout/support_simple_spinner_dropdown_item.xml (OK -
compressed)
1887559 res/menu/menu_login.xml (OK - compressed)
1887906 res/mipmap-hdpi-v4/ic_launcher.png (BAD - 2)
1891092 res/mipmap-mdpi-v4/ic_launcher.png (OK)
1893113 res/mipmap-xhdpi-v4/ic_launcher.png (BAD - 1)
1897545 res/mipmap-xxhdpi-v4/ic_launcher.png (BAD - 1)
1904619 res/mipmap-xxxhdpi-v4/ic_launcher.png (BAD - 3)
1914156 resources.arsc (OK)
Verification FAILED
1881710 res/layout/notification_media_action.xml (OK - compressed)
1882121 res/layout/notification_media_cancel_action.xml (OK - compressed)
1882599 res/layout/notification_template_big_media.xml (OK - compressed)
1883341 res/layout/notification_template_big_media_narrow.xml (OK -
compressed)
1884066 res/layout/notification_template_lines.xml (OK - compressed)
1884941 res/layout/notification_template_media.xml (OK - compressed)
1885562 res/layout/notification_template_part_chronometer.xml (OK -
compressed)
1885966 res/layout/notification_template_part_time.xml (OK - compressed)
1886366 res/layout/select_dialog_item_material.xml (OK - compressed)
1886793 res/layout/select_dialog_multichoice_material.xml (OK - compressed)
1887294 res/layout/select_dialog_singlechoice_material.xml (OK -
compressed)
1887796 res/layout/support_simple_spinner_dropdown_item.xml (OK -
compressed)
1888153 res/menu/menu_login.xml (OK - compressed)
1888500 res/mipmap-hdpi-v4/ic_launcher.png (OK)
1891688 res/mipmap-mdpi-v4/ic_launcher.png (OK)
1893712 res/mipmap-xhdpi-v4/ic_launcher.png (OK)
1898144 res/mipmap-xxhdpi-v4/ic_launcher.png (OK)
1905220 res/mipmap-xxxhdpi-v4/ic_launcher.png (OK)
1914757 resources.arsc (BAD - 1)
Verification FAILED
Ultimately, it appears that my APK cannot be aligned by zipalign? I am
using these options: -f -v 4 to align and -c -v 4 to verify.
Is this a known issue with zipalign, or have I made some kind of insane
error? Cheers.
--
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+***@googlegroups.com.
To post to this group, send email to android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/4f58ef0d-4501-4d51-aa0a-85e1d7d69ac4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Sun Light
2016-06-15 09:32:17 UTC
Permalink
This helped, nothing else does, but this finally solve the problem! Thank
you!
http://stackoverflow.com/questions/37783751/android-apk-not-zip-aligned-when-uploading-to-google-play/37786864#37786864
<http://www.google.com/url?q=http%3A%2F%2Fstackoverflow.com%2Fquestions%2F37783751%2Fandroid-apk-not-zip-aligned-when-uploading-to-google-play%2F37786864%2337786864&sa=D&sntz=1&usg=AFQjCNGAiG0KcZ-4mZ3OtvdWx6GCiPLlBA>
--
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+***@googlegroups.com.
To post to this group, send email to android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/14d2bb68-4bd7-48f6-a58d-dc575a5f4768%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
jaumebalust
2016-06-15 10:15:35 UTC
Permalink
YES!! FINALLYYY
Post by Sun Light
This helped, nothing else does, but this finally solve the problem! Thank
you!
http://stackoverflow.com/questions/37783751/android-apk-not-zip-aligned-when-uploading-to-google-play/37786864#37786864
<http://www.google.com/url?q=http%3A%2F%2Fstackoverflow.com%2Fquestions%2F37783751%2Fandroid-apk-not-zip-aligned-when-uploading-to-google-play%2F37786864%2337786864&sa=D&sntz=1&usg=AFQjCNGAiG0KcZ-4mZ3OtvdWx6GCiPLlBA>
--
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+***@googlegroups.com.
To post to this group, send email to android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/100e0ffc-4e3c-45c2-a661-ce9a2ec209fd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
sim47
2016-06-19 04:44:46 UTC
Permalink
it's working just downgraded the gradle plugin phewww it just wasted my 2
hours
Post by MarKco
I was able to build a correctly zipaligned APK by downgrading gradle
plugin from classpath com.android.tools.build:gradle:2.2.0-alpha3
http://stackoverflow.com/questions/37783751/android-apk-not-zip-aligned-when-uploading-to-google-play/37786864#37786864
Post by MarKco
Hello Fabs,
thank you for your suggestion. I zipaligned the zipaligned file and got a
"Verification succesful" exit code. Then, when I loaded it on play store, I
got the "not zipaligned" error again. I zipaligned again, still got failure
:-/
Post by Fabs
Very interesting everyone! I just verified that if I take the output of
the first attempt to zipalign (which fails), the zipaligned zipaligned file
worked for me too! It looks like this is a pretty widespread issue that
thankfully has an easy workaround, and I guess that this will be eliminated
when the problem is identified and resolved.
To clarify: zipalign your signed APK, and then take that aligned file
and zipalign it again.
Cheers everyone!
Post by Fabs
Hello all.
I have never encountered this issue before, despite developing several
apps. When I build a signed production APK using Android Studio, I get an
app-release.apk file but it is rejected by Google Play, saying it needs to
be zipaligned. When I verify the alignment using zipalign tool, I receive
1876394 res/layout/design_bottom_sheet_dialog.xml (OK - compressed)
1876935 res/layout/design_layout_snackbar.xml (OK - compressed)
1877313 res/layout/design_layout_snackbar_include.xml (OK - compressed)
1877936 res/layout/design_layout_tab_icon.xml (OK - compressed)
1878215 res/layout/design_layout_tab_text.xml (OK - compressed)
1878540 res/layout/design_menu_item_action_area.xml (OK - compressed)
1878804 res/layout/design_navigation_item.xml (OK - compressed)
1879186 res/layout/design_navigation_item_header.xml (OK - compressed)
1879517 res/layout/design_navigation_item_separator.xml (OK - compressed)
1879844 res/layout/design_navigation_item_subheader.xml (OK - compressed)
1880231 res/layout/design_navigation_menu.xml (OK - compressed)
1880609 res/layout/design_navigation_menu_item.xml (OK - compressed)
1881116 res/layout/notification_media_action.xml (OK - compressed)
1881527 res/layout/notification_media_cancel_action.xml (OK - compressed)
1882005 res/layout/notification_template_big_media.xml (OK - compressed)
1882747 res/layout/notification_template_big_media_narrow.xml (OK -
compressed)
1883472 res/layout/notification_template_lines.xml (OK - compressed)
1884347 res/layout/notification_template_media.xml (OK - compressed)
1884968 res/layout/notification_template_part_chronometer.xml (OK -
compressed)
1885372 res/layout/notification_template_part_time.xml (OK - compressed)
1885772 res/layout/select_dialog_item_material.xml (OK - compressed)
1886199 res/layout/select_dialog_multichoice_material.xml (OK - compressed)
1886700 res/layout/select_dialog_singlechoice_material.xml (OK -
compressed)
1887202 res/layout/support_simple_spinner_dropdown_item.xml (OK -
compressed)
1887559 res/menu/menu_login.xml (OK - compressed)
1887906 res/mipmap-hdpi-v4/ic_launcher.png (BAD - 2)
1891092 res/mipmap-mdpi-v4/ic_launcher.png (OK)
1893113 res/mipmap-xhdpi-v4/ic_launcher.png (BAD - 1)
1897545 res/mipmap-xxhdpi-v4/ic_launcher.png (BAD - 1)
1904619 res/mipmap-xxxhdpi-v4/ic_launcher.png (BAD - 3)
1914156 resources.arsc (OK)
Verification FAILED
1881710 res/layout/notification_media_action.xml (OK - compressed)
1882121 res/layout/notification_media_cancel_action.xml (OK - compressed)
1882599 res/layout/notification_template_big_media.xml (OK - compressed)
1883341 res/layout/notification_template_big_media_narrow.xml (OK -
compressed)
1884066 res/layout/notification_template_lines.xml (OK - compressed)
1884941 res/layout/notification_template_media.xml (OK - compressed)
1885562 res/layout/notification_template_part_chronometer.xml (OK -
compressed)
1885966 res/layout/notification_template_part_time.xml (OK - compressed)
1886366 res/layout/select_dialog_item_material.xml (OK - compressed)
1886793 res/layout/select_dialog_multichoice_material.xml (OK - compressed)
1887294 res/layout/select_dialog_singlechoice_material.xml (OK -
compressed)
1887796 res/layout/support_simple_spinner_dropdown_item.xml (OK -
compressed)
1888153 res/menu/menu_login.xml (OK - compressed)
1888500 res/mipmap-hdpi-v4/ic_launcher.png (OK)
1891688 res/mipmap-mdpi-v4/ic_launcher.png (OK)
1893712 res/mipmap-xhdpi-v4/ic_launcher.png (OK)
1898144 res/mipmap-xxhdpi-v4/ic_launcher.png (OK)
1905220 res/mipmap-xxxhdpi-v4/ic_launcher.png (OK)
1914757 resources.arsc (BAD - 1)
Verification FAILED
Ultimately, it appears that my APK cannot be aligned by zipalign? I am
using these options: -f -v 4 to align and -c -v 4 to verify.
Is this a known issue with zipalign, or have I made some kind of insane
error? Cheers.
--
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+***@googlegroups.com.
To post to this group, send email to android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/4719fc84-573c-44cd-80cb-183cc2607190%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
HÃ¥kon Nilsen
2016-06-19 19:35:42 UTC
Permalink
It's working unless you're using vector drawable as your app icon. So it
only works for me until I'm uploading to Google Play. This needs to be
fixed.
Post by sim47
it's working just downgraded the gradle plugin phewww it just wasted my 2
hours
Post by MarKco
I was able to build a correctly zipaligned APK by downgrading gradle
plugin from classpath com.android.tools.build:gradle:2.2.0-alpha3
http://stackoverflow.com/questions/37783751/android-apk-not-zip-aligned-when-uploading-to-google-play/37786864#37786864
Post by MarKco
Hello Fabs,
thank you for your suggestion. I zipaligned the zipaligned file and got
a "Verification succesful" exit code. Then, when I loaded it on play store,
I got the "not zipaligned" error again. I zipaligned again, still got
failure :-/
Post by Fabs
Very interesting everyone! I just verified that if I take the output of
the first attempt to zipalign (which fails), the zipaligned zipaligned file
worked for me too! It looks like this is a pretty widespread issue that
thankfully has an easy workaround, and I guess that this will be eliminated
when the problem is identified and resolved.
To clarify: zipalign your signed APK, and then take that aligned file
and zipalign it again.
Cheers everyone!
Post by Fabs
Hello all.
I have never encountered this issue before, despite developing several
apps. When I build a signed production APK using Android Studio, I get an
app-release.apk file but it is rejected by Google Play, saying it needs to
be zipaligned. When I verify the alignment using zipalign tool, I receive
1876394 res/layout/design_bottom_sheet_dialog.xml (OK - compressed)
1876935 res/layout/design_layout_snackbar.xml (OK - compressed)
1877313 res/layout/design_layout_snackbar_include.xml (OK - compressed)
1877936 res/layout/design_layout_tab_icon.xml (OK - compressed)
1878215 res/layout/design_layout_tab_text.xml (OK - compressed)
1878540 res/layout/design_menu_item_action_area.xml (OK - compressed)
1878804 res/layout/design_navigation_item.xml (OK - compressed)
1879186 res/layout/design_navigation_item_header.xml (OK - compressed)
1879517 res/layout/design_navigation_item_separator.xml (OK - compressed)
1879844 res/layout/design_navigation_item_subheader.xml (OK - compressed)
1880231 res/layout/design_navigation_menu.xml (OK - compressed)
1880609 res/layout/design_navigation_menu_item.xml (OK - compressed)
1881116 res/layout/notification_media_action.xml (OK - compressed)
1881527 res/layout/notification_media_cancel_action.xml (OK - compressed)
1882005 res/layout/notification_template_big_media.xml (OK - compressed)
1882747 res/layout/notification_template_big_media_narrow.xml (OK -
compressed)
1883472 res/layout/notification_template_lines.xml (OK - compressed)
1884347 res/layout/notification_template_media.xml (OK - compressed)
1884968 res/layout/notification_template_part_chronometer.xml (OK -
compressed)
1885372 res/layout/notification_template_part_time.xml (OK - compressed)
1885772 res/layout/select_dialog_item_material.xml (OK - compressed)
1886199 res/layout/select_dialog_multichoice_material.xml (OK - compressed)
1886700 res/layout/select_dialog_singlechoice_material.xml (OK -
compressed)
1887202 res/layout/support_simple_spinner_dropdown_item.xml (OK -
compressed)
1887559 res/menu/menu_login.xml (OK - compressed)
1887906 res/mipmap-hdpi-v4/ic_launcher.png (BAD - 2)
1891092 res/mipmap-mdpi-v4/ic_launcher.png (OK)
1893113 res/mipmap-xhdpi-v4/ic_launcher.png (BAD - 1)
1897545 res/mipmap-xxhdpi-v4/ic_launcher.png (BAD - 1)
1904619 res/mipmap-xxxhdpi-v4/ic_launcher.png (BAD - 3)
1914156 resources.arsc (OK)
Verification FAILED
1881710 res/layout/notification_media_action.xml (OK - compressed)
1882121 res/layout/notification_media_cancel_action.xml (OK - compressed)
1882599 res/layout/notification_template_big_media.xml (OK - compressed)
1883341 res/layout/notification_template_big_media_narrow.xml (OK -
compressed)
1884066 res/layout/notification_template_lines.xml (OK - compressed)
1884941 res/layout/notification_template_media.xml (OK - compressed)
1885562 res/layout/notification_template_part_chronometer.xml (OK -
compressed)
1885966 res/layout/notification_template_part_time.xml (OK - compressed)
1886366 res/layout/select_dialog_item_material.xml (OK - compressed)
1886793 res/layout/select_dialog_multichoice_material.xml (OK - compressed)
1887294 res/layout/select_dialog_singlechoice_material.xml (OK -
compressed)
1887796 res/layout/support_simple_spinner_dropdown_item.xml (OK -
compressed)
1888153 res/menu/menu_login.xml (OK - compressed)
1888500 res/mipmap-hdpi-v4/ic_launcher.png (OK)
1891688 res/mipmap-mdpi-v4/ic_launcher.png (OK)
1893712 res/mipmap-xhdpi-v4/ic_launcher.png (OK)
1898144 res/mipmap-xxhdpi-v4/ic_launcher.png (OK)
1905220 res/mipmap-xxxhdpi-v4/ic_launcher.png (OK)
1914757 resources.arsc (BAD - 1)
Verification FAILED
Ultimately, it appears that my APK cannot be aligned by zipalign? I am
using these options: -f -v 4 to align and -c -v 4 to verify.
Is this a known issue with zipalign, or have I made some kind of
insane error? Cheers.
--
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+***@googlegroups.com.
To post to this group, send email to android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/5e48076d-842f-4a5b-93f2-7a077337c919%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Sun Light
2016-06-15 09:18:46 UTC
Permalink
I tried to:
- zipalign once, not working, still same problem.
- zipalign twice, not working - You uploaded an APK with invalid or missing
signing information for some of its files. You need to create a valid
signed APK.
- reinstall Android Studio to last stable version include SDK - still same
problem
Any other idea what I can do?
Post by Fabs
Very interesting everyone! I just verified that if I take the output of
the first attempt to zipalign (which fails), the zipaligned zipaligned file
worked for me too! It looks like this is a pretty widespread issue that
thankfully has an easy workaround, and I guess that this will be eliminated
when the problem is identified and resolved.
To clarify: zipalign your signed APK, and then take that aligned file and
zipalign it again.
Cheers everyone!
Post by Fabs
Hello all.
I have never encountered this issue before, despite developing several
apps. When I build a signed production APK using Android Studio, I get an
app-release.apk file but it is rejected by Google Play, saying it needs to
be zipaligned. When I verify the alignment using zipalign tool, I receive
1876394 res/layout/design_bottom_sheet_dialog.xml (OK - compressed)
1876935 res/layout/design_layout_snackbar.xml (OK - compressed)
1877313 res/layout/design_layout_snackbar_include.xml (OK - compressed)
1877936 res/layout/design_layout_tab_icon.xml (OK - compressed)
1878215 res/layout/design_layout_tab_text.xml (OK - compressed)
1878540 res/layout/design_menu_item_action_area.xml (OK - compressed)
1878804 res/layout/design_navigation_item.xml (OK - compressed)
1879186 res/layout/design_navigation_item_header.xml (OK - compressed)
1879517 res/layout/design_navigation_item_separator.xml (OK - compressed)
1879844 res/layout/design_navigation_item_subheader.xml (OK - compressed)
1880231 res/layout/design_navigation_menu.xml (OK - compressed)
1880609 res/layout/design_navigation_menu_item.xml (OK - compressed)
1881116 res/layout/notification_media_action.xml (OK - compressed)
1881527 res/layout/notification_media_cancel_action.xml (OK - compressed)
1882005 res/layout/notification_template_big_media.xml (OK - compressed)
1882747 res/layout/notification_template_big_media_narrow.xml (OK -
compressed)
1883472 res/layout/notification_template_lines.xml (OK - compressed)
1884347 res/layout/notification_template_media.xml (OK - compressed)
1884968 res/layout/notification_template_part_chronometer.xml (OK -
compressed)
1885372 res/layout/notification_template_part_time.xml (OK - compressed)
1885772 res/layout/select_dialog_item_material.xml (OK - compressed)
1886199 res/layout/select_dialog_multichoice_material.xml (OK - compressed)
1886700 res/layout/select_dialog_singlechoice_material.xml (OK -
compressed)
1887202 res/layout/support_simple_spinner_dropdown_item.xml (OK -
compressed)
1887559 res/menu/menu_login.xml (OK - compressed)
1887906 res/mipmap-hdpi-v4/ic_launcher.png (BAD - 2)
1891092 res/mipmap-mdpi-v4/ic_launcher.png (OK)
1893113 res/mipmap-xhdpi-v4/ic_launcher.png (BAD - 1)
1897545 res/mipmap-xxhdpi-v4/ic_launcher.png (BAD - 1)
1904619 res/mipmap-xxxhdpi-v4/ic_launcher.png (BAD - 3)
1914156 resources.arsc (OK)
Verification FAILED
1881710 res/layout/notification_media_action.xml (OK - compressed)
1882121 res/layout/notification_media_cancel_action.xml (OK - compressed)
1882599 res/layout/notification_template_big_media.xml (OK - compressed)
1883341 res/layout/notification_template_big_media_narrow.xml (OK -
compressed)
1884066 res/layout/notification_template_lines.xml (OK - compressed)
1884941 res/layout/notification_template_media.xml (OK - compressed)
1885562 res/layout/notification_template_part_chronometer.xml (OK -
compressed)
1885966 res/layout/notification_template_part_time.xml (OK - compressed)
1886366 res/layout/select_dialog_item_material.xml (OK - compressed)
1886793 res/layout/select_dialog_multichoice_material.xml (OK - compressed)
1887294 res/layout/select_dialog_singlechoice_material.xml (OK -
compressed)
1887796 res/layout/support_simple_spinner_dropdown_item.xml (OK -
compressed)
1888153 res/menu/menu_login.xml (OK - compressed)
1888500 res/mipmap-hdpi-v4/ic_launcher.png (OK)
1891688 res/mipmap-mdpi-v4/ic_launcher.png (OK)
1893712 res/mipmap-xhdpi-v4/ic_launcher.png (OK)
1898144 res/mipmap-xxhdpi-v4/ic_launcher.png (OK)
1905220 res/mipmap-xxxhdpi-v4/ic_launcher.png (OK)
1914757 resources.arsc (BAD - 1)
Verification FAILED
Ultimately, it appears that my APK cannot be aligned by zipalign? I am
using these options: -f -v 4 to align and -c -v 4 to verify.
Is this a known issue with zipalign, or have I made some kind of insane
error? Cheers.
--
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+***@googlegroups.com.
To post to this group, send email to android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/12296bc4-fcb7-4f50-bba0-766521032f60%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
la giang
2016-06-16 07:23:40 UTC
Permalink
Thanks, That worked
Post by Fabs
Very interesting everyone! I just verified that if I take the output of
the first attempt to zipalign (which fails), the zipaligned zipaligned file
worked for me too! It looks like this is a pretty widespread issue that
thankfully has an easy workaround, and I guess that this will be eliminated
when the problem is identified and resolved.
To clarify: zipalign your signed APK, and then take that aligned file and
zipalign it again.
Cheers everyone!
Post by Fabs
Hello all.
I have never encountered this issue before, despite developing several
apps. When I build a signed production APK using Android Studio, I get an
app-release.apk file but it is rejected by Google Play, saying it needs to
be zipaligned. When I verify the alignment using zipalign tool, I receive
1876394 res/layout/design_bottom_sheet_dialog.xml (OK - compressed)
1876935 res/layout/design_layout_snackbar.xml (OK - compressed)
1877313 res/layout/design_layout_snackbar_include.xml (OK - compressed)
1877936 res/layout/design_layout_tab_icon.xml (OK - compressed)
1878215 res/layout/design_layout_tab_text.xml (OK - compressed)
1878540 res/layout/design_menu_item_action_area.xml (OK - compressed)
1878804 res/layout/design_navigation_item.xml (OK - compressed)
1879186 res/layout/design_navigation_item_header.xml (OK - compressed)
1879517 res/layout/design_navigation_item_separator.xml (OK - compressed)
1879844 res/layout/design_navigation_item_subheader.xml (OK - compressed)
1880231 res/layout/design_navigation_menu.xml (OK - compressed)
1880609 res/layout/design_navigation_menu_item.xml (OK - compressed)
1881116 res/layout/notification_media_action.xml (OK - compressed)
1881527 res/layout/notification_media_cancel_action.xml (OK - compressed)
1882005 res/layout/notification_template_big_media.xml (OK - compressed)
1882747 res/layout/notification_template_big_media_narrow.xml (OK -
compressed)
1883472 res/layout/notification_template_lines.xml (OK - compressed)
1884347 res/layout/notification_template_media.xml (OK - compressed)
1884968 res/layout/notification_template_part_chronometer.xml (OK -
compressed)
1885372 res/layout/notification_template_part_time.xml (OK - compressed)
1885772 res/layout/select_dialog_item_material.xml (OK - compressed)
1886199 res/layout/select_dialog_multichoice_material.xml (OK - compressed)
1886700 res/layout/select_dialog_singlechoice_material.xml (OK -
compressed)
1887202 res/layout/support_simple_spinner_dropdown_item.xml (OK -
compressed)
1887559 res/menu/menu_login.xml (OK - compressed)
1887906 res/mipmap-hdpi-v4/ic_launcher.png (BAD - 2)
1891092 res/mipmap-mdpi-v4/ic_launcher.png (OK)
1893113 res/mipmap-xhdpi-v4/ic_launcher.png (BAD - 1)
1897545 res/mipmap-xxhdpi-v4/ic_launcher.png (BAD - 1)
1904619 res/mipmap-xxxhdpi-v4/ic_launcher.png (BAD - 3)
1914156 resources.arsc (OK)
Verification FAILED
1881710 res/layout/notification_media_action.xml (OK - compressed)
1882121 res/layout/notification_media_cancel_action.xml (OK - compressed)
1882599 res/layout/notification_template_big_media.xml (OK - compressed)
1883341 res/layout/notification_template_big_media_narrow.xml (OK -
compressed)
1884066 res/layout/notification_template_lines.xml (OK - compressed)
1884941 res/layout/notification_template_media.xml (OK - compressed)
1885562 res/layout/notification_template_part_chronometer.xml (OK -
compressed)
1885966 res/layout/notification_template_part_time.xml (OK - compressed)
1886366 res/layout/select_dialog_item_material.xml (OK - compressed)
1886793 res/layout/select_dialog_multichoice_material.xml (OK - compressed)
1887294 res/layout/select_dialog_singlechoice_material.xml (OK -
compressed)
1887796 res/layout/support_simple_spinner_dropdown_item.xml (OK -
compressed)
1888153 res/menu/menu_login.xml (OK - compressed)
1888500 res/mipmap-hdpi-v4/ic_launcher.png (OK)
1891688 res/mipmap-mdpi-v4/ic_launcher.png (OK)
1893712 res/mipmap-xhdpi-v4/ic_launcher.png (OK)
1898144 res/mipmap-xxhdpi-v4/ic_launcher.png (OK)
1905220 res/mipmap-xxxhdpi-v4/ic_launcher.png (OK)
1914757 resources.arsc (BAD - 1)
Verification FAILED
Ultimately, it appears that my APK cannot be aligned by zipalign? I am
using these options: -f -v 4 to align and -c -v 4 to verify.
Is this a known issue with zipalign, or have I made some kind of insane
error? Cheers.
--
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+***@googlegroups.com.
To post to this group, send email to android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/db784e10-aa74-488d-ab8f-b5ecda8e7308%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
e***@gmail.com
2016-08-02 11:49:10 UTC
Permalink
With Android Studio 2.2 Preview 6 I got working apk which can be directly
uploaded to Play store.
And maybe non-related, but hint - check : Module settings -> app -> Build
Types -> release -> "Zip Align Enabled" should have value "true"

Urmas
Post by Fabs
Hello all.
I have never encountered this issue before, despite developing several
apps. When I build a signed production APK using Android Studio, I get an
app-release.apk file but it is rejected by Google Play, saying it needs to
be zipaligned. When I verify the alignment using zipalign tool, I receive
1876394 res/layout/design_bottom_sheet_dialog.xml (OK - compressed)
1876935 res/layout/design_layout_snackbar.xml (OK - compressed)
1877313 res/layout/design_layout_snackbar_include.xml (OK - compressed)
1877936 res/layout/design_layout_tab_icon.xml (OK - compressed)
1878215 res/layout/design_layout_tab_text.xml (OK - compressed)
1878540 res/layout/design_menu_item_action_area.xml (OK - compressed)
1878804 res/layout/design_navigation_item.xml (OK - compressed)
1879186 res/layout/design_navigation_item_header.xml (OK - compressed)
1879517 res/layout/design_navigation_item_separator.xml (OK - compressed)
1879844 res/layout/design_navigation_item_subheader.xml (OK - compressed)
1880231 res/layout/design_navigation_menu.xml (OK - compressed)
1880609 res/layout/design_navigation_menu_item.xml (OK - compressed)
1881116 res/layout/notification_media_action.xml (OK - compressed)
1881527 res/layout/notification_media_cancel_action.xml (OK - compressed)
1882005 res/layout/notification_template_big_media.xml (OK - compressed)
1882747 res/layout/notification_template_big_media_narrow.xml (OK -
compressed)
1883472 res/layout/notification_template_lines.xml (OK - compressed)
1884347 res/layout/notification_template_media.xml (OK - compressed)
1884968 res/layout/notification_template_part_chronometer.xml (OK -
compressed)
1885372 res/layout/notification_template_part_time.xml (OK - compressed)
1885772 res/layout/select_dialog_item_material.xml (OK - compressed)
1886199 res/layout/select_dialog_multichoice_material.xml (OK - compressed)
1886700 res/layout/select_dialog_singlechoice_material.xml (OK -
compressed)
1887202 res/layout/support_simple_spinner_dropdown_item.xml (OK -
compressed)
1887559 res/menu/menu_login.xml (OK - compressed)
1887906 res/mipmap-hdpi-v4/ic_launcher.png (BAD - 2)
1891092 res/mipmap-mdpi-v4/ic_launcher.png (OK)
1893113 res/mipmap-xhdpi-v4/ic_launcher.png (BAD - 1)
1897545 res/mipmap-xxhdpi-v4/ic_launcher.png (BAD - 1)
1904619 res/mipmap-xxxhdpi-v4/ic_launcher.png (BAD - 3)
1914156 resources.arsc (OK)
Verification FAILED
1881710 res/layout/notification_media_action.xml (OK - compressed)
1882121 res/layout/notification_media_cancel_action.xml (OK - compressed)
1882599 res/layout/notification_template_big_media.xml (OK - compressed)
1883341 res/layout/notification_template_big_media_narrow.xml (OK -
compressed)
1884066 res/layout/notification_template_lines.xml (OK - compressed)
1884941 res/layout/notification_template_media.xml (OK - compressed)
1885562 res/layout/notification_template_part_chronometer.xml (OK -
compressed)
1885966 res/layout/notification_template_part_time.xml (OK - compressed)
1886366 res/layout/select_dialog_item_material.xml (OK - compressed)
1886793 res/layout/select_dialog_multichoice_material.xml (OK - compressed)
1887294 res/layout/select_dialog_singlechoice_material.xml (OK -
compressed)
1887796 res/layout/support_simple_spinner_dropdown_item.xml (OK -
compressed)
1888153 res/menu/menu_login.xml (OK - compressed)
1888500 res/mipmap-hdpi-v4/ic_launcher.png (OK)
1891688 res/mipmap-mdpi-v4/ic_launcher.png (OK)
1893712 res/mipmap-xhdpi-v4/ic_launcher.png (OK)
1898144 res/mipmap-xxhdpi-v4/ic_launcher.png (OK)
1905220 res/mipmap-xxxhdpi-v4/ic_launcher.png (OK)
1914757 resources.arsc (BAD - 1)
Verification FAILED
Ultimately, it appears that my APK cannot be aligned by zipalign? I am
using these options: -f -v 4 to align and -c -v 4 to verify.
Is this a known issue with zipalign, or have I made some kind of insane
error? Cheers.
--
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+***@googlegroups.com.
To post to this group, send email to android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/7b837dbd-31fc-4624-9a89-c4a6e62faed5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Ravi Subramanian
2016-09-30 04:19:44 UTC
Permalink
I noticed that when downgrading the plugin and running gradlew from the
command line:

With the new plugin (version 2.2.0) upon './gradlew assembleDebug' I get:

:
:app:validateSigningDebug
:app:packageDebug
:app:assembleDebug
:



but with the old one (2.1.2) I get:

:
:app:validateDebugSigning
:app:packageDebug
:app:zipalignDebug
:app:assembleDebug
:


Notice that the zipAlign step is missing in the old plugin. Not sure if
this is the issue, but I wonder if that has something to do with the
"zipalign twice works" solution as well.

Also, in both cases my build.gradle says:

buildTypes {
:
zipAlignEnabled true

:
}
Post by e***@gmail.com
With Android Studio 2.2 Preview 6 I got working apk which can be directly
uploaded to Play store.
And maybe non-related, but hint - check : Module settings -> app -> Build
Types -> release -> "Zip Align Enabled" should have value "true"
Urmas
Post by Fabs
Hello all.
I have never encountered this issue before, despite developing several
apps. When I build a signed production APK using Android Studio, I get an
app-release.apk file but it is rejected by Google Play, saying it needs to
be zipaligned. When I verify the alignment using zipalign tool, I receive
1876394 res/layout/design_bottom_sheet_dialog.xml (OK - compressed)
1876935 res/layout/design_layout_snackbar.xml (OK - compressed)
1877313 res/layout/design_layout_snackbar_include.xml (OK - compressed)
1877936 res/layout/design_layout_tab_icon.xml (OK - compressed)
1878215 res/layout/design_layout_tab_text.xml (OK - compressed)
1878540 res/layout/design_menu_item_action_area.xml (OK - compressed)
1878804 res/layout/design_navigation_item.xml (OK - compressed)
1879186 res/layout/design_navigation_item_header.xml (OK - compressed)
1879517 res/layout/design_navigation_item_separator.xml (OK - compressed)
1879844 res/layout/design_navigation_item_subheader.xml (OK - compressed)
1880231 res/layout/design_navigation_menu.xml (OK - compressed)
1880609 res/layout/design_navigation_menu_item.xml (OK - compressed)
1881116 res/layout/notification_media_action.xml (OK - compressed)
1881527 res/layout/notification_media_cancel_action.xml (OK - compressed)
1882005 res/layout/notification_template_big_media.xml (OK - compressed)
1882747 res/layout/notification_template_big_media_narrow.xml (OK -
compressed)
1883472 res/layout/notification_template_lines.xml (OK - compressed)
1884347 res/layout/notification_template_media.xml (OK - compressed)
1884968 res/layout/notification_template_part_chronometer.xml (OK -
compressed)
1885372 res/layout/notification_template_part_time.xml (OK - compressed)
1885772 res/layout/select_dialog_item_material.xml (OK - compressed)
1886199 res/layout/select_dialog_multichoice_material.xml (OK - compressed)
1886700 res/layout/select_dialog_singlechoice_material.xml (OK -
compressed)
1887202 res/layout/support_simple_spinner_dropdown_item.xml (OK -
compressed)
1887559 res/menu/menu_login.xml (OK - compressed)
1887906 res/mipmap-hdpi-v4/ic_launcher.png (BAD - 2)
1891092 res/mipmap-mdpi-v4/ic_launcher.png (OK)
1893113 res/mipmap-xhdpi-v4/ic_launcher.png (BAD - 1)
1897545 res/mipmap-xxhdpi-v4/ic_launcher.png (BAD - 1)
1904619 res/mipmap-xxxhdpi-v4/ic_launcher.png (BAD - 3)
1914156 resources.arsc (OK)
Verification FAILED
1881710 res/layout/notification_media_action.xml (OK - compressed)
1882121 res/layout/notification_media_cancel_action.xml (OK - compressed)
1882599 res/layout/notification_template_big_media.xml (OK - compressed)
1883341 res/layout/notification_template_big_media_narrow.xml (OK -
compressed)
1884066 res/layout/notification_template_lines.xml (OK - compressed)
1884941 res/layout/notification_template_media.xml (OK - compressed)
1885562 res/layout/notification_template_part_chronometer.xml (OK -
compressed)
1885966 res/layout/notification_template_part_time.xml (OK - compressed)
1886366 res/layout/select_dialog_item_material.xml (OK - compressed)
1886793 res/layout/select_dialog_multichoice_material.xml (OK - compressed)
1887294 res/layout/select_dialog_singlechoice_material.xml (OK -
compressed)
1887796 res/layout/support_simple_spinner_dropdown_item.xml (OK -
compressed)
1888153 res/menu/menu_login.xml (OK - compressed)
1888500 res/mipmap-hdpi-v4/ic_launcher.png (OK)
1891688 res/mipmap-mdpi-v4/ic_launcher.png (OK)
1893712 res/mipmap-xhdpi-v4/ic_launcher.png (OK)
1898144 res/mipmap-xxhdpi-v4/ic_launcher.png (OK)
1905220 res/mipmap-xxxhdpi-v4/ic_launcher.png (OK)
1914757 resources.arsc (BAD - 1)
Verification FAILED
Ultimately, it appears that my APK cannot be aligned by zipalign? I am
using these options: -f -v 4 to align and -c -v 4 to verify.
Is this a known issue with zipalign, or have I made some kind of insane
error? Cheers.
--
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+***@googlegroups.com.
To post to this group, send email to android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/fdcd5411-c5f3-48d6-8f0a-1935b02b872c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...