官术网_书友最值得收藏!

APK Analyzer

An APK is an Android Application package file. Gradle, by default, builds a single APK, no matter what libraries you include. This compiled and packaged file includes all of the application's code (.dex files), manifest files, resources, and assets.

The library, within itself, comprises multiple copies of the same native code, optimized for the different architecture. This means that the library is a native binary with multiple architecture such as x86, x86_64, armeabi, and so on, all packed together. A developer can easily run the command unzip <your_APK_name>.APK to understand the content of an APK:

When your app, and the libraries it references, reaches a specific threshold, you encounter build errors that point to the app's limit of the Android App Build Architecture. The most recent Android build system displays an error, trouble writing output:

Too many field references: 152000; max is 65536.

You may try using --multi-dex option.

Looking closely at the log, the number 65536 has a significant reason for appearing. This number represents the total number of references that can be invoked by the code within a single Dalvik Executable (dex) bytecode file.

Both these error conditions display a common number: 65536. This number is significant in that it represents the total number of references that can be invoked by the code within a single dex bytecode file. If you have built an Android app and received this error, then congratulations, you have a lot of code!

主站蜘蛛池模板: 宁蒗| 五河县| 永福县| 上林县| 邮箱| 东海县| 南溪县| 和田市| 灌南县| 邓州市| 岳阳市| 刚察县| 佛教| 海淀区| 南京市| 潮安县| 通海县| 长泰县| 望城县| 阜南县| 集安市| 米泉市| 惠州市| 来宾市| 龙南县| 河北区| 临夏县| 江永县| 牡丹江市| 阿拉善右旗| 苏尼特左旗| 伊金霍洛旗| 青岛市| 时尚| 申扎县| 乐陵市| 元江| 湘乡市| 勐海县| 南开区| 和林格尔县|