java - Unable to execute dex: method ID not in [0, 0xffff]: 65536 in Eclipse -
i'm developing application on eclipse. in need use following libraries
1) appcompact
2) google play services
3) livesdk
4) json.jar
when try run project gave error.
dex loader] unable execute dex: method id not in [0, 0xffff]: 65536
conversion dalvik format failed: unable execute dex: method id not in [0, 0xffff]: 65536
even have remove libraies java buid path
still got error.
i have used progaurd error not resolved. here progarud file
project.properties
proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt # project target. target=android-22 android.library.reference.1=./workspace2/google-play-services_lib android.library.reference.2=./workspace2/livesdk android.library.reference.3=./android/workspace2/appcompat_v7
proguard-project.txt
-optimizationpasses 5 -dontusemixedcaseclassnames -dontskipnonpubliclibraryclasses -dontpreverify -verbose -optimizations !code/simplification/arithmetic,!field/,!class/merging/
-keep public class * extends android.app.activity -keep public class * extends android.app.application -keep public class * extends android.app.service -keep public class * extends android.content.broadcastreceiver -keep public class * extends android.content.contentprovider -keep public class * extends android.app.backup.backupagenthelper -keep public class * extends android.preference.preference -keep public class com.android.vending.licensing.ilicensingservice -keepclasseswithmembernames class * { native <methods>; } -keepclasseswithmembers class * { public <init>(android.content.context, android.util.attributeset); } -keepclasseswithmembers class * { public <init>(android.content.context, android.util.attributeset, int); } -keepclassmembers class * extends android.app.activity { public void *(android.view.view); } -keepclassmembers enum * { public static **[] values(); public static ** valueof(java.lang.string); } -keep class * implements android.os.parcelable { public static final android.os.parcelable$creator *; } -keep class * extends java.util.listresourcebundle { protected object[][] getcontents(); } -keep public class com.google.android.gms.common.internal.safeparcel.safeparcelable { public static final *** null; } -keepnames @com.google.android.gms.common.annotation.keepname class * -keepclassmembernames class * { @com.google.android.gms.common.annotation.keepname *; } -keepnames class * implements android.os.parcelable { public static final ** creator; }
help me !!
you have exceeded 65k methods limit. want enable multidex or have less 65k methods in app + libraries.
there multidex support library not supported ant or eclipse. https://plus.google.com/+androiddevelopers/posts/hqm7qeosjof
and load individual play services apis because don't need them https://developers.google.com/android/guides/setup
but still need , gradle.
apparently can use gradle eclipse never tried it
is possible use gradle build system android eclipse?
my advice migrate android studio
Comments
Post a Comment