7

I am getting below exception when I try to run my project:

[2014-09-29 11:56:32 - Dex Loader] Unable to execute dex: Multiple dex files define Landroid/support/v7/appcompat/R$anim;
[2014-09-29 11:56:32 - PageViewers] Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Landroid/support/v7/appcompat/R$anim;
ישו אוהב אותך
  • 26,433
  • 11
  • 70
  • 92
sandamali perera
  • 156
  • 1
  • 11

2 Answers2

2

you have twice compat library

So, how I solved this problem:

  1. Import support library as a project from "sdk/extras/android/support/v7/appcompat".
  2. Reference library in your project (for Eclipse, "Properties - Android - Add").
  3. Build projects (for Eclipse, "Projects - Build All"). Make sure, you have "android.support.v7.appcompat" in your main project gen folder.
  4. If it doesn't worked - clean and rebuild project.
JesusFreke
  • 19,004
  • 5
  • 62
  • 66
Adnan Abdollah Zaki
  • 3,938
  • 5
  • 48
  • 55
  • it works. Make sure, you have "android.support.v7.appcompat" in your main project gen folder. Helps me. – RBK Sep 26 '15 at 18:19
1

I tried a lot but finally I solved it by executing

cd android && ./gradlew clean

refer github issue.

Sidharth Taneja
  • 522
  • 6
  • 7