I follow the steps from https://stackoverflow.com/a/5271194/1973953 this link.
But when i run an application i am getting these errors
i have only one line in my project.properties file “target=android-11“
And this is my AndroidManifest.xml
So my question is why i am getting these errors and how to solve them…
When I had this problem it was because the ActionBarSherlock library I added to my project defined the android-support-v4.jar as a compile dependency and this jar was already included in my project so there were multiple copies/version of DEX at compile time.
The solution was to change the ActionBarSherlock module dependency for this jar to be Runtime instead of compile, as my project was already providing it.
I just changed the android SDK version in project settings (Intellij) and the error was resolved. I was using
API-14 but according to SDK manager only
API-19 was installed on my system. so I recommend have a look at SDK manager and see what API versions do you have and choose the right API/android version.
You cant build using an API that is not installed on your computer.
Go to your project/module settings and select an API version that you have actually installed. Or install the API version you want in your SDK. (I would just comment on @hkazemi’s downvoted answer to ask why it was downvoted, because that was the fix for me. but im so rep poor, im adding an answer.)
Check whether you added the same JAR file more than once.
If yes, remove any one of them from the
libs folder and clean your project.
in intellij idea:
go to project structure and delete one of the repeated .jar libraries
[worked for me]
I had same problem, I had added a jar to my project lib. I deleted it and
You can check your project, undo your last changes to find the problem.