Android Studio and Phonegap, android module not supported by gradle

While I worked with Eclipse and Phonegap, and I successfully deployed several Android applications. So, now I'm trying to launch the new Phonegap / Cordova application in Android Studio, but so far it has failed. Here is what I tried:

1) I created the cordova application and added android as a platform.

cordova create hello com.example.hello HelloWorld
cd hello
cordova platform add android
cordova -version

enter image description here Ok it works

2) Then I launch Android Studio and import the generated application, and the message “Gradle settings for this project has not been configured yet” appears, and I click OK. enter image description here

3) "Gradle 1.10. 2.2.1", Google , Gradle 'com.android.tools.build:gradle:0.10.+' :0.14.+', RUN , , , -. nr , , , .

" android gradle", , .

enter image description here

.

+4
2

, , . , , .

build.gradle, CordovaLib. , CordovaLib . Cordova Android Studio

Error:Gradle version 1.10 is required. Current version is 2.2.1.

build.gradle :
classpath 'com.android.tools.build:gradle:0.10.+'
: classpath 'com.android.tools.build:gradle:1.0.0'
Btw , v1.10, , " .." "1.0.0", , , , ...

Build → Rebuild Project ,

Error:The SDK Build Tools revision (19.0.0) is too low for project 'android'.
Minimum required is 19.1.0

, build.gradle buildToolsVersion "19.0.0" buildToolsVersion "19.1.0" . . :

enter image description here

Build -> Rebuild Project , Gradle

Error: Task '' not found in root project 'android'.

Build -> Rebuild Project, . . ""? "".

.:) puh..

+23

Android Gradle.

cordova gradle

  • My computerpropertiesAdvanced system settingEnvironment Variables ANDROID_BUILD gradle

  • cordova build android gradle, Android.

:

-, -

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

gradlew

+1

All Articles