Questions tagged [dex]

.dex files are compiled Android application code files.

Android programs are compiled into .dex (Dalvik Executable) files, which are in turn zipped into a single .apk file on the device. .dex files can be created by automatically translating compiled applications written in the Java programming language.

867 questions
0
votes
1 answer

Unity Android Unable to convert classes into dex format AdMob

I'm a beginner Unity programmer (school-age), so I don't know that much about the system. On its own my app compiles fine, but when I implement the AdMob SDK (Google) 2.1, I have the following error log (when converting java.class into DEX): Error…
0
votes
1 answer

Changing and Recompiling Android source code

After decompiling an Android application, I am able to view its source code/Java classes by opening the classes.dex file using jd-gui. I need to add a few lines of code to the application before recompiling it and installing the modified app onto a…
user3694391
  • 133
  • 1
  • 2
  • 12
0
votes
1 answer

What are the dex method and string limits in an Android app?

After implementing jumbo dex, we dont get any further dex errors. The ~65K string limit is now exceeded, but not the method count. What is the limits we now face, if any, for strings and methods in an Android app?
SamWise
  • 698
  • 10
  • 16
0
votes
1 answer

Is it possible turn all dex in one apk to oat when installing apk?

I found this code in Android: bool DexFile::OpenFromZip(const ZipArchive& zip_archive, const std::string& location, std::string* error_msg, std::vector* dex_files) { ZipOpenErrorCode error_code; …
wawa
  • 616
  • 5
  • 14
0
votes
1 answer

Profiler overhead Vs Logging overhead to run Dex for MongoDB

I am running Dex in test environment. Dex uses either system.profile or logs from Mongo's log. I have to start Dex with any of these two options. But both profiler and logging(enabled) comes with performance cost. Which thing I should prefer to get…
Atish
  • 4,277
  • 2
  • 24
  • 32
0
votes
1 answer

Why Multiple Dex files error is thrown

I want to know the reason for the following error: "unable to execute dex: multiple dex files define". In my project I have multiple projects having different set of libraries, some projects share same library. What is the reason for this error.
prago
  • 5,225
  • 5
  • 25
  • 27
0
votes
2 answers

Unable to execute dex: Multiple dex files define Lorg/andengine/AndEngine

I'm getting this error when running my project: [2014-05-21 20:42:51 - Dex Loader] Unable to execute dex: Multiple dex files define Lorg/andengine/AndEngine; [2014-05-21 20:42:51 - MyActivity] Conversion to Dalvik format failed: Unable to execute…
Sümeyra
  • 41
  • 1
  • 2
0
votes
1 answer

Invalid name: 'enum constant initialization$2' while installing app

While installing android app from eclipse to any emulator I start getting error: 04-17 00:36:53.043: E/dalvikvm(20216): Invalid name: ' enum constant initialization$2' 04-17 00:36:53.043: E/dalvikvm(20216): Trouble with item 10075 @ offset…
Danilo C.
  • 194
  • 2
  • 13
0
votes
2 answers

Is eclipse uses proguard every built of project?

i enabled proguard by adding below line into project.properties, proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt But i dont understand that when i click Run button, compiler uses proguard or not ? If it is not, i…
Talha
  • 12,673
  • 5
  • 49
  • 68
0
votes
0 answers

Android custom class loading

Has anyone have idea how to turn out 2 seperate dex files, where first one is for main project classes and another for libraries? When i'm adding google+ libraries, i'm goint into "too much methods" in dex. Unable to execute dex: method ID not in…
comprex
  • 743
  • 3
  • 9
  • 20
0
votes
1 answer

How to reference Activity present in jar which is in secondary dex

I have created an app which uses a lot of ad networks sdk. Because of the big number of libraries used in the project (Ad network SDKs) I had the following problem in GingerBread devices: E/dalvikvm( 7815): LinearAlloc exceeded capacity (5242880),…
Sergio Carvalho
  • 251
  • 3
  • 9
0
votes
1 answer

How to load a class from another classloader which doesn't have a package name?

I need to know how to load a class which doesn't have a package, using a different classloader (test.jar contains the classes.dex file): File f = new File("/sdcard/test.jar"); final File optimizedDexOutputPath = context.getDir("outdex",…
thiagolr
  • 6,909
  • 6
  • 44
  • 64
0
votes
3 answers

Unable to execute dex: Multiple dex files define

How can I solve this? I had tried many things in here, and nothing seems to work for me. I had tried importing and cleaning, buildings and restarting eclipse, and nothing seems to work.
Sterling Diaz
  • 3,789
  • 2
  • 31
  • 35
0
votes
1 answer

Parse method of BasicDexFileReader

I would like to know if I can use the parse method of BasicDexFileReader to load a dexfile which is decrypted into a byte array? public void parse(byte[] dexBytes) throws IllegalArgumentException, IOException/*, RefNotFoundException */ { …
Shoaib
  • 65
  • 7
0
votes
2 answers

Why do I get: Unable to execute dex: Cannot merge new index 67124 into a non-jumbo instruction

This is as intelligently as I can ask this question right now. I am trying to compile my code and get the following error: Unable to execute dex: Cannot merge new index 67124 into a non-jumbo instruction! Conversion to Dalvik format failed: Unable…
user3093402
  • 1,419
  • 4
  • 20
  • 28