a.stringham
a.stringham

Reputation: 475

Error "Invalid resource directory name" when trying to create android app with phonegap in eclipse

I followed the tutorial here but when I create the project in Eclipse, i get an error "invalid resource directory name. Resource: "drawable-hdpi" path "/HelloAndroid/res" type "Android AAPT Problem"

Upvotes: 3

Views: 14425

Answers (3)

Srinath Ganesh
Srinath Ganesh

Reputation: 2558

had the issue when I forgot to add xml file inside the xml folder

Upvotes: 0

Spadar Shut
Spadar Shut

Reputation: 15807

I had the same issue. It turned out that I copied xml files from phonegap's xml folder to the project's res folder, not the whole xml folder.

So in the project's folder structure should go like this:

res/xml/phonegap.xml
res/xml/plugins.xml

Upvotes: 4

nickfox
nickfox

Reputation: 2835

I believe you have the wrong platform set. Right click on the Project name in Eclipse and go to properties and then click on Android and select at least Android 1.6.

Upvotes: 1

Related Questions