简体   繁体   中英

Same code's exported apk in Android Studio is way bigger than Intellij IDEA

I have this very simple application with one simple Activity that on start downloads a file from a server. That's it. Nothing more. Yet when I export this application from Android Studio, the apk size is 1.1 MB, and when I export it from IntelliJ IDEA, it becomes as small as 40 KB. That's a HUGE difference.

What might be wrong here? Everything is in default mode, just the IDE differs here.

Need to set the shrinkResource to true

And also set the shrinkMode to strict for maximum shrinking.

Follow this link shrinkResources set to true, but all unused resources (specifically drawables) not getting removed

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM