Follow the steps for Android Studio:

On Fri, Oct 2, 2015 at 4:54 AM, Faust Nijhuis <[email protected]>
wrote:

> I made two apk files:
>
> 1) without  com.google.android.gms
>    app size = 598 kb
>    Size after install is 864 Kb
> 2) with com.google.android.gms (for ads)
>     app size = 1.1 Mb
>     Size after install is 5.39 Mb
>
> I looked in the apk's and the difference is in the classed.dex and
> resources.arsc
>
> classed.dex 27.6 kib versus 617 kib
> resources.arsc 35.4 kib versus 267kib
>
> I think it's due to the com.google.android.gms lib, but how can I changed
> this?
>
>
>
>
> 2015-09-30 22:45 GMT+02:00 Justin Anderson <[email protected]>:
>
>> Have you tried looking at the contents of the .apk and comparing it with
>> one of your older .apk files built from eclipse?
>>
>> On Wed, Sep 30, 2015 at 11:22 AM Faust Nijhuis <[email protected]>
>> wrote:
>>
>>> I imported all my apps from Eclipse to Android studio and all of them
>>> are much bigger (5 to 7 times)
>>>
>>> I use proguard and minify and Zip Align Enabled
>>> (I use only the default proguard rules)
>>>
>>> How is it possible that apps build with Android studio are so much
>>> bigger ?
>>>
>>> build.gradle:
>>>
>>> apply plugin: 'com.android.application'
>>>
>>> android {
>>>     compileSdkVersion 23
>>>     buildToolsVersion "23.0.0"
>>>
>>>     defaultConfig {
>>>         applicationId "mwave.led_resistor"
>>>         minSdkVersion 14
>>>         targetSdkVersion 18
>>>
>>>     }
>>>     buildTypes {
>>>         release {
>>>             minifyEnabled true
>>>             proguardFiles getDefaultProguardFile('proguard-android.txt'), 
>>> 'proguard-rules.pro'
>>>         }
>>>         debug {
>>>             minifyEnabled false
>>>         }
>>>     }
>>> }
>>>
>>> dependencies {
>>>     compile fileTree(dir: 'libs', include: ['*.jar'])
>>>     compile 'com.google.android.gms:play-services-ads:+'
>>>     compile 'com.android.support:support-annotations:23.0.1'
>>> }
>>>
>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to [email protected]
>>> To unsubscribe from this group, send email to
>>> [email protected]
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-developers?hl=en
>>> ---
>>> 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 [email protected].
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>> ---
>> 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 [email protected].
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> ---
> 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 [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to