3

I noticed that the application size of my app, as reported by android, was doubled respect to the same application two months ago, despite I did only minor modifications. Even building the .apk from the same source code I used two months ago, I obtain a bigger .apk. I did some investigations and noticed that the classes.dex was way bigger. It seems that something changed in the build environment. Is it possible that the last android SDK causes bigger .dex classes? is it due to something else? I'm using android SKD inside Eclipse Indigigo: Android SDK Tools rev. 21 Android SKD Platform-tools rev. 16

quinestor
  • 1,432
  • 4
  • 19
  • 40
Gianni
  • 91
  • 5
  • Interesting.. you know that you can get previous sdks and try that? It takes lots of time.. But in any case double size sounds like a lot. Did you check the resources, u sure they did not change? – quinestor Dec 07 '12 at 16:48
  • Did you also try to clean up your project? – rekire Dec 07 '12 at 16:50
  • shot in the dark... possibly your smaller build was obfuscated, but you forgot to obfuscate your larger build? – ab11 Dec 07 '12 at 18:04
  • Yes, I cleaned up the project many times. I reinstalled a tagged version from scratch too, so I'm quite sure the very same sources give a quite different classes.dex file – Gianni Dec 07 '12 at 18:06
  • @ab11: unfortunately not, neither was obfuscate – Gianni Dec 08 '12 at 14:02
  • Try 'Analyze APK' with both old and new builds. – Miha_x64 Feb 14 '18 at 19:16

1 Answers1

1

Check your resources, Check whether you included or excluded some libraries from the project, Check your .jar files in the project.Clean and build your project.

Ralph
  • 26
  • 2