You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Ian Clelland (JIRA)" <ji...@apache.org> on 2014/05/27 19:08:01 UTC

[jira] [Commented] (CB-6766) Generated Android APK has much greater size when building with cordova@3.5.0-0.2.4

    [ https://issues.apache.org/jira/browse/CB-6766?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14009902#comment-14009902 ] 

Ian Clelland commented on CB-6766:
----------------------------------

I haven't verified this yet, but I suspect it would be the addition of splashscreen images to the default project, as of CB-5908.

In {{/platforms/android/res/}}, there are now by default 8 files named {{screen.png}}, totalling ~1.7MB:

||file||size||
|res/drawable-land-hdpi/screen.png|216014|
|res/drawable-land-ldpi/screen.png|41538|
|res/drawable-land-mdpi/screen.png|90490|
|res/drawable-land-xhdpi/screen.png|488469|
|res/drawable-port-hdpi/screen.png|220338|
|res/drawable-port-ldpi/screen.png|41064|
|res/drawable-port-mdpi/screen.png|92429|
|res/drawable-port-xhdpi/screen.png|501006|

If you remove them, your APK should be much closer to the size that it was in 3.4.0


> Generated Android APK has much greater size when building with cordova@3.5.0-0.2.4
> ----------------------------------------------------------------------------------
>
>                 Key: CB-6766
>                 URL: https://issues.apache.org/jira/browse/CB-6766
>             Project: Apache Cordova
>          Issue Type: Bug
>    Affects Versions: 3.5.0
>            Reporter: Zarko Hristovski
>
> Building the same Android app with cordova@3.4.1-0.1.0 and the latest offical ( cordova@3.5.0-0.2.4 ) yields apk of much greater size.
> In the case of the Hello World app, the sizes of the generated HelloWorld-debug-unaligned.apk file come out as:
> 1,915,659 B - when built using cordova@3.5.0-0.2.4
> 220,883 B - when built using cordova@3.4.1-0.1.0
> If this isn't a bug then what is the reason for the manifold increase?



--
This message was sent by Atlassian JIRA
(v6.2#6252)