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;
ישו אוהב אותך
  • 28,609
  • 11
  • 78
  • 96
sandamali perera
  • 156
  • 2
  • 12

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,784
  • 5
  • 65
  • 68
Adnan Abdollah Zaki
  • 4,328
  • 6
  • 52
  • 58
  • 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
  • 548
  • 6
  • 7