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

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!

主站蜘蛛池模板: 通榆县| 兴业县| 丰台区| 镇原县| 苍山县| 清流县| 巴林右旗| 常熟市| 泰安市| 呼伦贝尔市| 富川| 叶城县| 中西区| 遵义县| 安福县| 长武县| 社旗县| 云林县| 丹棱县| 辽中县| 韶山市| 汕头市| 华池县| 安国市| 大港区| 公主岭市| 西华县| 禄丰县| 桂东县| 都匀市| 呼玛县| 马鞍山市| 杭锦后旗| 奉新县| 古丈县| 达尔| 嵊泗县| 大港区| 莒南县| 麦盖提县| 武强县|