Dex introduces mongodb index and query analyzer dex. It is a MongoDB performance adjustment tool that compares MongoDB log files and index entries and provides index recommendations. Currently, you must provide a URI to connect to the database. Dex only recommends full indexes, not partial indexes. Windows platforms are not supported.
: @ com.android.dx.command.dexer.Main.main (main.java:199) at Com.android.dx.command.Main.main (main.java:103)That's right. The number of Dex file methods in your app exceeds the maximum limit of 65536, so simply put, the app is bursting.So let's see why this error is caused:In the Android system. All the code for an App is inside a Dex file. Dex is a similar ja
Android uses android-support-multidex to solve the problem of Dex exceeding the limit of the number of methods, so that your application will not burst into the dark. androidmultidex
If you have reprinted, please declare the Source: sand: http://blog.csdn.net/t12x3456 (from the sand csdn blog)
With the continuous iteration of applications and the expansion of business lines, applications become larger and larger (such as integrating various third-part
Posted by Tim Bray on 28 July 2011 at 8:35 AM
[This post is by Fred Chung, who's an android developer advocate-Tim Bray]
The Dalvik VM provides facilities for developers to perform custom class loading. instead of loading Dalvik executable ("Dex") files from the default location, an application can load them from alternative locations such as internal storage or over the network.
This technique is not for every application; in fact, most do just fine
Dalvik command analysis (3) dex file structure, dalvikdex
Take the dex file generated in the previous article as an example to explain the dex file structure. The dex file structure is very simple, and there is only one HelloWorld. java
For the basic format of the dex file,
Original address: http://greenrobot.me/devpost/about-android-dex-method-number-limit/The Android compilation processBefore we get to the point, let's take a look at the Android app compilation process:
ide (Android Asset Packaging tool, the AAPT in the diagram) compiles the resource files in your app, including the androidmanifest.xml file, XML file defined for activity, and so on. In this compilation process will also produce a r.java files so
Android uses android-support-multidex to solve the problem of Dex exceeding the limit on the number of methods, so that your applications will not burst
With the continuous iteration of applications and the expansion of business lines, applications become larger and larger (such as integrating various third-party sdks or jar packages supported by the public, with high project coupling and repeated classes ), I believe many people have encountered the
: @ com.android.dx.command.dexer.Main.main (main.java:199) at Com.android.dx.command.Main.main (main.java:103)Yes, the number of Dex file methods in your app exceeds the maximum of 65536, so simply put, the app is bursting.So let's see why this error is caused:InAndroidSystem, aAppAll of the code is in aDexFile inside.Dexis a jar-like store that has manyJavaCompiles the archive file for the byte code. BecauseAndroidSystem useDalvikVirtual machines, s
Guo JiaEmail: [Email protected]Blog: http://blog.csdn.net/allenwellsGithub:https://github.com/allenwells"Android SDK program reverse analysis and Hack series" chapter index one DEX file data structureThe data types that Dex uses are shown in the following table:U1~u8: Represents the unsigned number of 1~8 bytes.The LEB128 data types that are unique to sleb128, uled128, and Uled128pl:dex files. Each LEB128 c
In an Android system, all the code for an app is inside a dex file. Dex is a jar-like archive that stores many Java-compiled bytecode. Because the Android system uses the Dalvik virtual machine, you need to convert the class file that was compiled with Java compiler into a class file that Dalvik can execute. The point here is that Dex, like the jar, is an archive
Layout of the entire file
File header
Index Area
String_ids
Type_ids
Proto_ids
Field_ids
Method_ids
Data area
Class_def
Class_data_item
Code_item
Data
Appendix
The Java code for test Dex
Resources
Layout of the entire fileThe entire Dex file can be d
Android DEX basics and androiddex Basics1. What is dex?
To put it simply, optimize android .exe. Each apk installation package is available.Compared with the Java Virtual Machine on the PC, it can run. class; The Davlik Virtual Machine on android can run. dex.Why study dex format? Because dex contains all the app code,
Thoughts on Multiple dex files define compilation errors in Android
Yesterday, my long brother asked me a question. He said that if a project contains com. x. A enumeration. The imported third-party jar also has A com. x. A enumeration, which enumeration will be used when I use A enumeration in the project? I thought, isn't this a class (enumeration is a special class) Definition conflict? It should be reported during compilation, and I have encounter
Copy from:11900000076529370x00 Preface
The best way to parse the Dex file format is to find an introductory document, write a simple demo yourself and then use 010Editor to compare the analysis. Documents can refer to the official document Http://source.android.com/devices/tech/dalvik/dex-format.html, English Poor can also find a Chinese, for example, I ...
010Editor This tool is more useful, it i
Summary of restrictions on the Android Dex method, androiddex
Address: http://greenrobot.me/devpost/about-android-dex-method-number-limit/
Android compilation process
Before learning about this issue, let's take a look at the Android app compilation process:
The Android Asset Packaging Tool (aapt in the figure) in IDE compiles the resource files in the application, includingAndroidManifest.xmlFile, the
When our project code is too large, the compile run will report unable to execute Dex:method ID not in[0, 0xFFFF]: 65536) error. When this error occurs, you have too many methods in your own engineering code, or the third-party plug-in jar package referenced under your project Lib folder has too many methods, both of which add up to more than 65536 of this number. Google requires that the method in a single Dex file not exceed the 65536 limit.So this
1. What is DEX?Simply put, the optimized Android version of. exe. Each APK installation package is available.Run with respect to the Java virtual function on the PC. The Davlik virtual function on the class;android runs. Dex.Why Study dex format? Because Dex contains all the app code, the use of the Anti-compilation tool to get Java source. Understand and modify
The reasons for the need for Dex must be known to all. It was in the previous Android system that the Dex file was stored with a short type of data for the method index. The maximum value for short is 65535, so when the project is large enough to contain more than 65535 of the methods (including all the methods in the referenced external Lib), when you run the app, you get the following error message.inch [
After reading the source code dexclassloader, the native function opendexfilenative in the dexfile class will be called.
Next let's take a look at what the opendexfilenative function has done.
The opendexfilenative function exports the opendexfilenative symbol in the code in the art \ Runtime \ native \ dalvik_system_dexfile.cc file.
static JNINativeMethod gMethods[] = { NATIVE_METHOD(DexFile, closeDexFile, "(I)V"), NATIVE_METHOD(DexFile, defineClassNative, "(Ljava/lang/String;Ljava/lang/Cla
)
Yes, the number of Dex file methods in your app exceeds the maximum of 65536, so simply put, the app is bursting. in the Android system, all the code for a App is in a Dex file. Dex is a jar-like archive that stores multiple Java compiled bytecode. Because the Android system uses the Dalvik virtual machine, you need to use Java Compiler
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.