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

Android gradle execution fails on :myapp:dexDebug

My gradle execution fails with the error message listed below. I have searched a number of other answers on SO that suggest doing this: dexOptions { preDexLibraries = false } Some say it may be a memory error, some say it may be…
cph2117
  • 2,651
  • 1
  • 28
  • 41
0
votes
1 answer

Class resolved by unexpected DEX, how to avoid duplicate imports

I'm trying to build an plugin-system which is importing Fragments from other apks as described here. Eclipse keeps telling me: 12-01 15:17:18.609: W/dalvikvm(23425): Class resolved by unexpected DEX:…
Kevin Gebhardt
  • 368
  • 1
  • 12
0
votes
0 answers

Guava-collections and jackson-datatype-guava gradle conflict. (com.android.dex.DexException)

i added 'com.fasterxml.jackson.core:jackson-core:2.4.3' module and 'com.fasterxml.jackson.datatype:jackson-datatype-guava:2.4.3' to my android app project which use 'com.google.guava:guava-collections:r03' module. However as i try to build the…
Androider
  • 3
  • 1
0
votes
1 answer

Configuring TapJoy Creating Dex FIle issue

I have multiple libraries in my libs folder in android. When I try to add "Tapjoy", I get the error: unable to execute dex method id not in 0 0xffff 65536 android problem is coming and, when I am trying to configure build path and adding…
0
votes
1 answer

the relationship between .dex file and .apk in Android and the dex method count limit

Recently I'm looking at the Android Development Document.In this document,it says the project's .class files will be converted into .dex file and "Any 3rd party libraries and .class files" will be also converted into .dex files. Here it use " .dex…
penkzhou
  • 1,200
  • 13
  • 30
0
votes
1 answer

Exclude JAR from DEX

I want to load some classes from an APK into an already running Service at runtime, but I get the following error: 11-03 16:51:13.570 20227-20240/com.somecompany.android.core W/dalvikvm﹕ Class resolved by unexpected DEX:…
m0skit0
  • 25,268
  • 11
  • 79
  • 127
0
votes
1 answer

how to include pulltorefresh library in project?

I have trouble including the PullToRefresh library in my android project. Its distributed as a source code form on Github and I have imported it as a separate project in Eclipse. File -> Import Existing Code Into Workspace. Compile it, then added it…
Nederealm
  • 447
  • 4
  • 15
0
votes
1 answer

Didn't find class "my.package.MyApplication" on path: DexPathList

I am using android.support.multidex, and have faced with a problem( I get this error "Didn't find class "my.package.MyApplication" on path: DexPathList". MyApplication extends MyAbstractApplication, which is .aar in Maven repository and extends…
ADK
  • 513
  • 3
  • 8
  • 22
0
votes
3 answers

Unable to execute dex: method ID not in [0, 0xffff]:

I know this question hase been asked many times but I have some weird issue where it was running fine in ADT v22 but when I update my eclipse to v23 I got this error Unable to execute dex: method ID not in [0, 0xffff]: 65536 Conversion to Dalvik…
Navakanth
  • 834
  • 1
  • 12
  • 24
0
votes
2 answers

multiple dex files - conversion to dalvik format failed

I'm making a game on libgdx and it all worked fine yesterday, but now it's messed up. [2014-09-18 00:38:39 - Dex Loader] Unable to execute dex: Multiple dex files define Lcom/badlogic/gdx/Application$ApplicationType; [2014-09-18 00:38:39 -…
rekoDolph
  • 813
  • 1
  • 9
  • 31
0
votes
1 answer

How does dalvikvm understand the starting point of android application

I can successfully run a simple java program in dalvikvm by converting the java class into dex file. But when I try to run android application by converting its class files into dex, it says static main(String args[]) not found. Android application…
Salman Ahmed
  • 141
  • 1
  • 3
  • 14
0
votes
1 answer

Android gradle DexException : Library dex files are not supported in multi-dex mode

My application reached the 64k limit recently. I tried to create multiple dexes using --multidex option by adding : exec java $javaOpts -jar "$jarpath" --multi-dex "$@" in dx batch file. While the build process completed successfully but upon…
userv
  • 2,527
  • 4
  • 27
  • 36
0
votes
1 answer

Android Studio multiple dex files defined

I've got 2 jar libraries I'm including that both have a copy of gson.jar and because of this when I try to run my project I get an exception saying UNEXPECTED TOP LEVEL EXCEPTION Multiple Dex Files defined. I've found several sources saying to…
user2687482
  • 215
  • 3
  • 17
0
votes
1 answer

Dex Loader] Unable to execute dex: method ID not in [0, 0xffff]: 65536

My app has crossed maximum limit of methods i.e. 65536 methods. In my application I have used 16 jar files ans 4 library projects. What I already done(which is not working): Common out all jars from my application and library projects. Kept a…
Akhilesh Mani
  • 3,502
  • 5
  • 28
  • 59
0
votes
1 answer

Multiple dex files define - Deleting extra jar file still not working. What should I do?

I'm trying to implement Google Play Services into my application. I understand that there is a sample project named BaseGameUtils and I need to import it into my workspace and mark it as a library, After importing google-play-services_lib into my…
LTQ
  • 31
  • 5