Reputation: 149
We are using the latest Android Studio (1.3.1) and we are trying to compile a Phonegap project (with nodejs: 0.12.7) inside this development environment.
For setting up this environment we did all the steps described here:
http://www.codenutz.com/getting-started-phonegap-android-studio/
But when trying to build the project we got two errors:
Error:(10, 14) java: duplicate class: OUR_PROJECT_NAME.R Error:(4, 14) java: duplicate class: OUR_PROJECT_NAME.BuildConfig
Any idea how we can avoid the duplicate class error for the two files?
Thanks for a hint.
Best Regards
Frank
Upvotes: 0
Views: 1442
Reputation: 149
While checking Project Settings -> Modules we found the root cause.
After Importing the project to Android Studio somehow an additional folder was added to the Source Folders.
Once this entry was deleted the project could be build successful :-).
Upvotes: 1