• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unable to execute dex: Multiple dex files define Landroid

 
sam liya
Ranch Hand
Posts: 1243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a project which has a reference to a library.whne i try to run it it gives me below exception.




I have attached the screenshot of the project structure.I am unable to find duplicate libraries in these projects




1.png
[Thumbnail for 1.png]
project
2.png
[Thumbnail for 2.png]
Library
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The build includes the Android Support library v7 twice, once under "Android Dependencies" and once under "Android Private Libraries". That is not going to work.
 
sam liya
Ranch Hand
Posts: 1243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I created new android project with minimum api 14.Then i checked in Android Private Libraries and Android Dependencies.It contain above mention libraries.What are those libraries?what is the purpose of having them?
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Start learning about the support libraries here: https://developer.android.com/tools/support-library/index.html. Note that there are 2 more pages.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic