yadav-rahul / TastyToast

:bread: Make your native android Toasts Tasty
2.04k stars 355 forks source link

Error:converting bytecode to dex...... #22

Closed JiangShuLiang closed 7 years ago

JiangShuLiang commented 7 years ago

The TastyToast is awesome! When I run my project then I got an exception,the detailed exception infomation is below. do you know how to fix this problem. Thx in advance.

Error:Error converting bytecode to dex: Cause: com.android.dex.DexException: Multiple dex files define Lcom/facebook/rebound/AndroidSpringLooperFactory$ChoreographerAndroidSpringLooper$1;

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

com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: java.lang.UnsupportedOperationException

sal-git commented 7 years ago

You might have two libraries of the same kind in your project. Remove any duplicates and do a clean build. Might help Also here here too

yadav-rahul commented 7 years ago

@JiangShuLiang Is it working now?

yadav-rahul commented 7 years ago

@JiangShuLiang I am closing this issue for now. You can reopen it again if you want.