android - how to reduce app size increased after admob ads? -


itemprop = "text"> Just after

After adding the game services it is now 4.01 MB It is awful. For 3 MB of 900kb App Ads are very high.

Help me as soon as possible My app is now complete.

I tried to read about Progord but unable to understand, please let me step by step tutorial to reduce the app size.

You do not need to edit the Google-play-services.jar file. The following lines in use ProGuard only need to keep the class files

Create proguard.txt file in your module directory (eg apps /) and writes that file :.

  Keep public category com.google.android.gms.ads. ** {Public *; } - public-class com.google.ads. ** {Public *; .} -dontwarn com.google.android.gms **  

Now the rows of build.gradle file its modules (such as application / for build.gradle), type the following: < / p> <> ... buildTypes {{debug minifyEnabled really proguardFiles getDefaultProguardFile ( 'ProGuard-android.txt'), 'proguard.txt'} {release minifyEnabled really proguardFiles getDefaultProguardFile ( 'ProGuard-android.txt' ), 'ProGuard .txt'} ...} ...

Sync your gradle file and create & amp; Run your app Now see the difference in the size of your app.


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -