IntelliJ IDEA Phonegap ! duplicate class: org.apache.cordova.BuildConfig -
i'm runing intellij idea 13.1.2 on ubuntu machine. i'm facing file generated wrong structure think. 1 asked problem(), not solved.
- :~/workspace$ phonegap create mobileapp1 ... done..
- :~/workspace$ cd mobileapp1/
- :~/workspace/mobileapp1$ phonegap build android
[phonegap] adding android platform...
creating cordova project android platform:
project created.
build successful
total time: 5 seconds
[phonegap] compiled android app
- starting intellij idea
- import project > select directory existing sources
- > mobileapp1/platforms/android
on build
error:(4, 14) java: duplicate class: org.apache.cordova.buildconfig
solution
have no reputation post more 2 links =)) deleted original links .. because seems nobody helped give solution ..
edite later : find few tutorials , me solution :
http://www.tricedesigns.com/2013/05/16/phonegap-android-studio/
configuring project android existing sources , www empty module (but select target folder disk), , adding sdk feature android 4.0.3 , 4.2.2, solved problem .. in project settings > facets > have android (cordovalib) checked library module.
the problem ... use ubuntu , windows.. , there differences on interface if intellij idea.
so can't provide step-by-step tutorial, after few experiences with: phonegap create myfirstapp, phonegap platform add android, phonegap build android ..
, few new pject in intellij.. see :d
happy coding ;)
i'll add 2 cents. ran issue while doing cordova training our students. recommended tool developer.android.com switched eclipse adt bundle android studio.
unfortunately, can't follow same workflow. cordova 'getting started' guide android platform spells out commands execute command line. but, eclipse platform. 1 step needs omitted work android studio.
one of links above (http://www.tricedesigns.com/2013/05/16/phonegap-android-studio/) shows correct workflow, if you're used cordova workflow, may assume it's same , same. however! omit 'cordova build' step. causes android studio error question.
this on windows machine, problem , result same. don't it! leave step out , well.
Comments
Post a Comment