Running apps containing large amount of code

前端 未结 2 1033
青春惊慌失措
青春惊慌失措 2020-12-29 12:43

Background

It seems some old Android OSs (and maybe even the newest ones) have a limitation on the amount of code each app can hold.

As I\'ve found, the li

2条回答
  •  感情败类
    2020-12-29 12:53

    The limit is the total number of method references:

    • https://code.google.com/p/android/issues/detail?id=7147#c6
    • https://code.google.com/p/android/issues/detail?id=20814#c6

    A middle ground between doing nothing and the multi-dex approach described in the FB/Google articles is to use a tool like ProGuard to remove references to unused code at the Java level. See:

    • http://proguard.sourceforge.net/
    • http://developer.android.com/tools/help/proguard.html

提交回复
热议问题