Questions tagged [dex-limit]

10 questions
44
votes
2 answers

Does the Android ART runtime have the same method limit limitations as Dalvik?

Does the Android ART runtime have the same method limit limitations as Dalvik? Currently, there's a limit of 64k methods in the primary dex file
ajma
  • 12,106
  • 12
  • 71
  • 90
34
votes
6 answers

Showing dex method count by package

I'm working on android app that's running up against the dex method count limit. Is there a simple way to show the method count grouped by package? I can get the total method count, but my app has multiple components and I'm trying to figure out…
ajma
  • 12,106
  • 12
  • 71
  • 90
7
votes
1 answer

Hitting 65k Dex method limit but dex-method-count tools says there is much fewer

We've struggled with the 65k method limit for a long time and have done most of the optimizations already. Now I'm trying to add the Jacoco plugin and I'm getting the dex limit error again: Error:Execution failed for task…
odiggity
  • 4,117
  • 7
  • 34
  • 41
2
votes
1 answer

Run Debbuger in Android Studio with Proguard On

I want to run the debugger in Android but my issue is in debug build I have proguard on. The reason for this is the stupid 65K method limit. I turned on proguard to help with reducing the methods. This gets me back to 43K methods but now in the…
JPM
  • 9,077
  • 13
  • 78
  • 137
2
votes
2 answers

Android regenerate optimised dex file

I'm trying to understand a few things around how dex files are handled by android. What I do know is that an APK ships a dex file, the system gets it, optimises it at install time, and stores the resulting ODEX file (optimised dex) at…
AndroidSec
  • 299
  • 1
  • 5
  • 13
1
vote
1 answer

How to zoom in to the north east area of US in R (ggplot/ggmap) with limit (xlim and ylim)?

I was working on a project where I want to use ggplot or ggmap to show 'only' the northeast part of the US (we can use NYC as our center). I locate the x and y of NY state and want to create the range for both axis +/- 10 degree, but did not know…
Joy yang
  • 15
  • 6
1
vote
6 answers

How do I shrink Android code with Proguard

Since I am using many dependencies in my app, I am reaching the 65k Method Limit (I am reaching 76k methods). I've read on android.developer that proguard is used to shrink the code. So - does proguard only shrink my application code or does it…
pebbles
  • 356
  • 1
  • 3
  • 19
0
votes
1 answer

Fields and methods reference count in dex

Does dex limit is for the methods only ? Does dex have any limits for the fields ? I can not find any information about that, but at least error looks Too many field references: 131000; max is 65536. Why not methods in that case ? There is…
Orest Savchak
  • 4,529
  • 1
  • 18
  • 27
0
votes
1 answer

Error:Execution failed for task ':speakup:transformClassesWithMultidexlistForDebug'

I have already tried all possible ways solve MultidexlistForDebug problem but i am still stuck plz Check my gradle file buildscript { repositories { maven { url 'https://maven.fabric.io/public' } } dependencies { …
-2
votes
1 answer

How to selectively use the Google Play Services packages?

I am using the following plugins in my Unity android game: 1) Admob 2) Google Play Games 3) Unity IAP I was getting an "Unable to convert classes into dex format" error when I tried to build. trouble writing output: Too many field references to fit…
Aravind
  • 31
  • 2
  • 11