I've found that the app released by Gradle is larger than ant. My app is
4.3M if released by ant, but 5.2M when using gradle. The build flavor is
rc {
runProguard true
proguardFile getDefaultProguardFile('proguard-android.txt')
proguardFile 'proguard-project.rc.txt'
packageNameSuffix ".rc"
signingConfig signingConfigs.debug
zipAlign true
}
I unzipped the .apk to see if something different
Unzipped from gradle build:
-rw-r--r-- 1 xiaowl wheel 15K Dec 26 10:52 AndroidManifest.xml
drwxr-xr-x 5 xiaowl wheel 170B Dec 26 10:55 META-INF
drwxr-xr-x 4 xiaowl wheel 136B Dec 26 10:55 assets
-rw-r--r-- 1 xiaowl wheel 5.9M Dec 26 10:52 classes.dex
drwxr-xr-x 3 xiaowl wheel 102B Dec 26 10:55 com
drwxr-xr-x 3 xiaowl wheel 102B Dec 26 10:55 org
drwxr-xr-x 18 xiaowl wheel 612B Dec 26 10:55 res
-rw-r--r-- 1 xiaowl wheel 178K Dec 26 10:51 resources.arsc
Unzipped from ant build:
-rw-r--r-- 1 xiaowl wheel 15K Dec 26 10:53 AndroidManifest.xml
drwxr-xr-x 5 xiaowl wheel 170B Dec 26 10:55 META-INF
drwxr-xr-x 4 xiaowl wheel 136B Dec 26 10:55 assets
-rw-r--r-- 1 xiaowl wheel 5.9M Dec 26 10:53 classes.dex
drwxr-xr-x 3 xiaowl wheel 102B Dec 26 10:55 com
drwxr-xr-x 3 xiaowl wheel 102B Dec 26 10:55 org
drwxr-xr-x 18 xiaowl wheel 612B Dec 26 10:55 res
-rw-r--r-- 1 xiaowl wheel 178K Dec 26 10:53 resources.arsc
Seems there is no much different in size, weird.
Can anyone help me with this? Thanks.
--
You received this message because you are subscribed to the Google Groups
"adt-dev" 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/groups/opt_out.