Question Detail

I am having this error while running application :

Error:Execution failed for task ':app:transformClassesWithDexBuilderForDebug'.

> com.android.build.api.transform.TransformException: java.lang.IllegalStateException: Dex archives: setting .DEX extension only for .CLASS files


Thread Reply

Anonymous

- 11 months ago

 defaultConfig {
        ...
        minSdkVersion 14
        targetSdkVersion 21
        ...

        // Enabling multidex support.
        multiDexEnabled true
    }
dependencies {
  compile 'com.android.support:multidex:1.0.0'
}

Anonymous

- 10 months ago

I am getting this error I think this is for MultiDex issue But I have tried above way to resolve but not working for me
 

Could not find class 'org.adw.library.widgets.discreteseekbar.DiscreteSeekBar', referenced from method com.stayapt.MainApp.ClassesListActivity$3$1.onClick
Could not find class 'android.graphics.drawable.VectorDrawable', referenced from method com.like.Utils.getBitmap
FATAL EXCEPTION: main
  Process: com.stayapt, PID: 19392
   android.view.InflateException: Binary XML file line #45: Error inflating class org.adw.library.widgets.discreteseekbar.DiscreteSeekBar
 at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:707)
 at android.view.LayoutInflater.rInflate(LayoutInflater.java:755)
 at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
 at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
 at android.view.LayoutInflater.inflate(LayoutInflater.java:353)
 at com.stayapt.MainApp.ClassesListActivity$3$1.onClick(ClassesListActivity.java:313)
 at android.view.View.performClick(View.java:4467)
 at com.balysv.materialripple.MaterialRippleLayout$PerformClickEvent.run(MaterialRippleLayout.java:648)
 at com.balysv.materialripple.MaterialRippleLayout$3.onAnimationEnd(MaterialRippleLayout.java:336)
 at android.animation.AnimatorSet$AnimatorSetListener.onAnimationEnd(AnimatorSet.java:818)
 at android.animation.ValueAnimator.endAnimation(ValueAnimator.java:1056)
 at android.animation.ValueAnimator.access$400(ValueAnimator.java:50)
 at android.animation.ValueAnimator$AnimationHandler.doAnimationFrame(ValueAnimator.java:644)
 at android.animation.ValueAnimator$AnimationHandler.run(ValueAnimator.java:660)
 at android.view.Choreographer$CallbackRecord.run(Choreographer.java:788)
 at android.view.Choreographer.doCallbacks(Choreographer.java:591)
 at android.view.Choreographer.doFrame(Choreographer.java:559)
 at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:774)
 at android.os.Handler.handleCallback(Handler.java:808)
 at android.os.Handler.dispatchMessage(Handler.java:103)
 at android.os.Looper.loop(Looper.java:193)
 at android.app.ActivityThread.main(ActivityThread.java:5292)
 at java.lang.reflect.Method.invokeNative(Native Method)
 at java.lang.reflect.Method.invoke(Method.java:515)
 at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:828)
 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:644)
 at dalvik.system.NativeStart.main(Native Method)
  Caused by: java.lang.ClassNotFoundException: Didn't find class "org.adw.library.widgets.discreteseekbar.DiscreteSeekBar" on path: DexPathList[[zip file "/data/app/com.st-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.st-1, /vendor/lib, /system/lib]]

 at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
 at android.view.LayoutInflater.createView(LayoutInflater.java:559)
 at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:696)