Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Phonegap_java: duplicate class: org.apache.cordova.BuildConfig

I have downloaded Phonegap from CLI (working on windows7) and made a project from command line

phonegap create hello com.example.hello HelloWorld

and built it

phonegap build android

When i import project (project/platforms/android) in Intelijj and try to build it, it gives me this error

java: duplicate class: org.apache.cordova.BuildConfig

Any advice?

like image 265
sparrkli Avatar asked Sep 01 '26 01:09

sparrkli


1 Answers

There are an issue with IntelliJ and Maven, maybe you can apply the same solution. http://youtrack.jetbrains.com/issue/IDEA-94901

1.) Delete the "gen", "target" and "out" folders

2.) Revert the changes within the "ipr" and "iml" files

3.) Start IntelliJ 11.1.5 EAP / 12 EAP

4.) Open the pom file

5.) Right click -> "Maven" -> "Reimport"

6.) "Build" -> "Rebuild project"

like image 69
NEOLPAR Avatar answered Sep 02 '26 16:09

NEOLPAR