Android Studio and PhoneGap, Module android is not backed by gradle

后端 未结 2 2047
梦如初夏
梦如初夏 2021-02-10 20:49

A while back I\'ve worked with Eclipse and Phonegap and I\'ve successfully deployed a few Android apps. So now I\'m trying to get the new Phonegap/Cordova app up and running in

2条回答
  •  渐次进展
    2021-02-10 21:30

    From this link

    Cordova for Android now supports building with Gradle.

    To build cordova with gradle

    1. Right click on My computer -> properties -> Advanced system setting -> Environment Variables and create ANDROID_BUILD system variable with value gradle

    2. Now cordova build android will create gradle project which can be easily imported as a android studio project.

    Note :

    If you are behind proxy then you have to set proxy first with

     gradlew -Dhttp.proxyHost=proxy.blah.com -Dhttp.proxyPort=8000  
    

    gradlew batch file will be created automatically in your directory

提交回复
热议问题