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.

  1. :~/workspace$ phonegap create mobileapp1 ... done..
  2. :~/workspace$ cd mobileapp1/
  3. :~/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

  4. starting intellij idea
  5. import project > select directory existing sources
  6. > 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://saintcoder.wordpress.com/2013/05/16/create-a-phonegap-android-application-development-project-on-intellij-idea-12/


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

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -