After import from Eclipse to Android Studio cannot run Execution failed for task ':app:dexDebug\"

天大地大妈咪最大 提交于 2019-11-30 13:41:24

Sometimes, you would have to remove android libraries which you have in libs folder while you were working in EclipseADT. I recommend to remove android-support-v*.jar from the libs folder after importing it to the Android Studio Directory.

Kibi

Aha!

Seems the answer was further up in trace: The error was

com.android.dex.DexException: Multiple dex files define Lcom/nineoldandroids/animation/Animator$AnimatorListener;

So I found the answer here:

ListViewAnimations Library Causes TOP-LEVEL-EXCEPTION

Part of the trick is not only to add the line to build.gradle saying

compile files('libs/nineoldandroids-2.4.0.jar')

but also to remove the JAR from the libs directory.

Now I have more linking issues but I'll leave them for another question I guess.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!