[android-developers] Re: Zipalign does not work!

2016-09-29 Thread Ravi Subramanian
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

  :
}



On Tuesday, August 2, 2016 at 4:49:11 AM UTC-7, exa...@gmail.com wrote:
>
> 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
>
> On Thursday, June 9, 2016 at 7:15:15 PM UTC+3, Fabs wrote:
>>
>> 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)
>> 

[android-developers] Re: Zipalign does not work!

2016-08-02 Thread exanene
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

On Thursday, June 9, 2016 at 7:15:15 PM UTC+3, Fabs wrote:
>
> 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+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@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 

[android-developers] Re: Zipalign does not work!

2016-06-19 Thread Håkon Nilsen
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.


søndag 19. juni 2016 06.44.47 UTC+2 skrev sim47 følgende:
>
> it's working just downgraded the gradle plugin phewww it just wasted my 2 
> hours 
>
> On Wednesday, June 15, 2016 at 2:03:37 PM UTC+5, MarKco wrote:
>>
>> 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
>>
>> Il giorno martedì 14 giugno 2016 12:22:30 UTC+2, MarKco ha scritto:
>>>
>>> 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 :-/
>>>
>>> Il giorno lunedì 13 giugno 2016 15:48:36 UTC+2, Fabs ha scritto:

 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!

 On Friday, 10 June 2016 02:15:15 UTC+10, Fabs wrote:
>
> 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 

[android-developers] Re: Zipalign does not work!

2016-06-18 Thread sim47
it's working just downgraded the gradle plugin phewww it just wasted my 2 
hours 

On Wednesday, June 15, 2016 at 2:03:37 PM UTC+5, MarKco wrote:
>
> 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
>
> Il giorno martedì 14 giugno 2016 12:22:30 UTC+2, MarKco ha scritto:
>>
>> 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 
>> :-/
>>
>> Il giorno lunedì 13 giugno 2016 15:48:36 UTC+2, Fabs ha scritto:
>>>
>>> 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!
>>>
>>> On Friday, 10 June 2016 02:15:15 UTC+10, Fabs wrote:

 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 

[android-developers] Re: Zipalign does not work!

2016-06-16 Thread la giang
Thanks, That worked

On Monday, June 13, 2016 at 8:48:36 PM UTC+7, Fabs wrote:
>
> 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!
>
> On Friday, 10 June 2016 02:15:15 UTC+10, Fabs wrote:
>>
>> 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 

[android-developers] Re: Zipalign does not work!

2016-06-15 Thread jaumebalust
YES!! FINALLYYY


On Wednesday, June 15, 2016 at 11:32:18 AM UTC+2, Sun Light wrote:
>
> 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
>  
> 
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@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.


[android-developers] Re: Zipalign does not work!

2016-06-15 Thread 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
 


-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@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.


[android-developers] Re: Zipalign does not work!

2016-06-15 Thread MarKco
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

Il giorno mercoledì 15 giugno 2016 11:19:32 UTC+2, Sun Light ha scritto:
>
> 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+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@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.


[android-developers] Re: Zipalign does not work!

2016-06-15 Thread Sun Light
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+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@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.


[android-developers] Re: Zipalign does not work!

2016-06-15 Thread Sun Light
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?

On Monday, June 13, 2016 at 3:48:36 PM UTC+2, Fabs wrote:
>
> 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!
>
> On Friday, 10 June 2016 02:15:15 UTC+10, Fabs wrote:
>>
>> 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 

[android-developers] Re: Zipalign does not work!

2016-06-15 Thread 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 
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

Il giorno martedì 14 giugno 2016 12:22:30 UTC+2, MarKco ha scritto:
>
> 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 
> :-/
>
> Il giorno lunedì 13 giugno 2016 15:48:36 UTC+2, Fabs ha scritto:
>>
>> 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!
>>
>> On Friday, 10 June 2016 02:15:15 UTC+10, Fabs wrote:
>>>
>>> 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 - 

[android-developers] Re: Zipalign does not work!

2016-06-14 Thread 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 
:-/

Il giorno lunedì 13 giugno 2016 15:48:36 UTC+2, Fabs ha scritto:
>
> 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!
>
> On Friday, 10 June 2016 02:15:15 UTC+10, Fabs wrote:
>>
>> 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 

[android-developers] Re: Zipalign does not work!

2016-06-13 Thread 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!

On Friday, 10 June 2016 02:15:15 UTC+10, Fabs wrote:
>
> 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+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at 

[android-developers] Re: Zipalign does not work!

2016-06-13 Thread zaur
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.

On Thursday, June 9, 2016 at 8:15:15 PM UTC+4, Fabs wrote:
>
> 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+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 

[android-developers] Re: Zipalign does not work!

2016-06-13 Thread MarKco
I'm experiencing the exact same issue since I upgraded to Android Studio 
2.2 preview 3

Il giorno giovedì 9 giugno 2016 18:15:15 UTC+2, Fabs ha scritto:
>
> 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+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@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.


[android-developers] Re: Zipalign does not work!

2016-06-13 Thread exanene
> 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.. Thought already 
that problem is IN me.. stupid one.. and as I was already tried 
_everything_ and time was to 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... ooboy,
* getApplication().getResources().getString(.. and getcontext..
* getString(..
* just setText(R.string.)
* 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...

> Giles wrote:
> > 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+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@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.


[android-developers] Re: Zipalign does not work!

2016-06-12 Thread Jim Roal

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+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@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.


[android-developers] Re: Zipalign does not work!

2016-06-12 Thread Gilles Romani


Le vendredi 10 juin 2016 22:38:30 UTC+2, exa...@gmail.com a écrit :
>
> 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+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@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.


[android-developers] Re: Zipalign does not work!

2016-06-10 Thread exanene
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

On Thursday, June 9, 2016 at 7:15:15 PM UTC+3, Fabs wrote:
>
> 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+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@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.


[android-developers] Re: Zipalign does not work!

2016-06-10 Thread GregF
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.

On Thursday, June 9, 2016 at 9:15:15 AM UTC-7, Fabs wrote:
>
> 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+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@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