[jira] [Commented] (CB-11251) Gradle version 2.10 is required. Current version is 2.2.1

2016-05-17 Thread zhuisui (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-11251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15288500#comment-15288500
 ] 

zhuisui commented on CB-11251:
--

I have found another problem. When I write 
process.env['CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL'] = url in before_build 
hook, it influences cordova run which is expected when I execute it in cmd. But 
if I execute in the terminal of Webstorm or Android Studio, it doesn't work.

> Gradle version 2.10 is required. Current version is 2.2.1
> -
>
> Key: CB-11251
> URL: https://issues.apache.org/jira/browse/CB-11251
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Android, CLI
> Environment: OSX
>Reporter: Daniel Rossi
>Priority: Blocker
>  Labels: gradle
>
> When I try and run "cordova build" I run in this known gradle issue. 
> There is no possible fix other than to keep changing the version in Android 
> studio under File -> Project Structure -> Project -> Gradle Version -> 2.10 
> instead of 2.22
> Every time I make a change to the common www html file, I have to go back 
> into Android Studio and make that gradle change, rebuild then run into the 
> emulator. 
> This is out of the box, and I believe many people are having the same issue.  
> "cordova build
> ANDROID_HOME=/www/Android/sdk
> JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home
> FAILURE: Build failed with an exception.
> * Where:
> Build file '/path/MyApp/platforms/android/build.gradle' line: 22
> * What went wrong:
> A problem occurred evaluating root project 'android'.
> > Failed to apply plugin [id 'android']
>> Gradle version 2.10 is required. Current version is 2.2.1. If using the 
> gradle wrapper, try editing the distributionUrl in 
> /path/MyApp/gradle/wrapper/gradle-wrapper.properties to gradle-2.10-all.zip
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or 
> --debug option to get more log output.
> BUILD FAILED"



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-11251) Gradle version 2.10 is required. Current version is 2.2.1

2016-05-17 Thread zhuisui (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-11251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15288011#comment-15288011
 ] 

zhuisui commented on CB-11251:
--

Thanks

> Gradle version 2.10 is required. Current version is 2.2.1
> -
>
> Key: CB-11251
> URL: https://issues.apache.org/jira/browse/CB-11251
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Android, CLI
> Environment: OSX
>Reporter: Daniel Rossi
>Priority: Blocker
>  Labels: gradle
>
> When I try and run "cordova build" I run in this known gradle issue. 
> There is no possible fix other than to keep changing the version in Android 
> studio under File -> Project Structure -> Project -> Gradle Version -> 2.10 
> instead of 2.22
> Every time I make a change to the common www html file, I have to go back 
> into Android Studio and make that gradle change, rebuild then run into the 
> emulator. 
> This is out of the box, and I believe many people are having the same issue.  
> "cordova build
> ANDROID_HOME=/www/Android/sdk
> JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home
> FAILURE: Build failed with an exception.
> * Where:
> Build file '/path/MyApp/platforms/android/build.gradle' line: 22
> * What went wrong:
> A problem occurred evaluating root project 'android'.
> > Failed to apply plugin [id 'android']
>> Gradle version 2.10 is required. Current version is 2.2.1. If using the 
> gradle wrapper, try editing the distributionUrl in 
> /path/MyApp/gradle/wrapper/gradle-wrapper.properties to gradle-2.10-all.zip
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or 
> --debug option to get more log output.
> BUILD FAILED"



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-11251) Gradle version 2.10 is required. Current version is 2.2.1

2016-05-17 Thread Nikhil Khandelwal (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-11251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15287081#comment-15287081
 ] 

Nikhil Khandelwal commented on CB-11251:


This has been fixed here: 
https://github.com/apache/cordova-android/commit/8b96081579dfaa01f61163347144aa304a5b6522

Will be there in next release.

> Gradle version 2.10 is required. Current version is 2.2.1
> -
>
> Key: CB-11251
> URL: https://issues.apache.org/jira/browse/CB-11251
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Android, CLI
> Environment: OSX
>Reporter: Daniel Rossi
>Priority: Blocker
>  Labels: gradle
>
> When I try and run "cordova build" I run in this known gradle issue. 
> There is no possible fix other than to keep changing the version in Android 
> studio under File -> Project Structure -> Project -> Gradle Version -> 2.10 
> instead of 2.22
> Every time I make a change to the common www html file, I have to go back 
> into Android Studio and make that gradle change, rebuild then run into the 
> emulator. 
> This is out of the box, and I believe many people are having the same issue.  
> "cordova build
> ANDROID_HOME=/www/Android/sdk
> JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home
> FAILURE: Build failed with an exception.
> * Where:
> Build file '/path/MyApp/platforms/android/build.gradle' line: 22
> * What went wrong:
> A problem occurred evaluating root project 'android'.
> > Failed to apply plugin [id 'android']
>> Gradle version 2.10 is required. Current version is 2.2.1. If using the 
> gradle wrapper, try editing the distributionUrl in 
> /path/MyApp/gradle/wrapper/gradle-wrapper.properties to gradle-2.10-all.zip
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or 
> --debug option to get more log output.
> BUILD FAILED"



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-11251) Gradle version 2.10 is required. Current version is 2.2.1

2016-05-17 Thread zhuisui (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-11251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15286309#comment-15286309
 ] 

zhuisui commented on CB-11251:
--

Maybe I should use origin window.* methods to replace navigator.notification, 
though they have dark background color, at least the style is the same as 
origin platform.

> Gradle version 2.10 is required. Current version is 2.2.1
> -
>
> Key: CB-11251
> URL: https://issues.apache.org/jira/browse/CB-11251
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Android, CLI
> Environment: OSX
>Reporter: Daniel Rossi
>Priority: Blocker
>  Labels: gradle
>
> When I try and run "cordova build" I run in this known gradle issue. 
> There is no possible fix other than to keep changing the version in Android 
> studio under File -> Project Structure -> Project -> Gradle Version -> 2.10 
> instead of 2.22
> Every time I make a change to the common www html file, I have to go back 
> into Android Studio and make that gradle change, rebuild then run into the 
> emulator. 
> This is out of the box, and I believe many people are having the same issue.  
> "cordova build
> ANDROID_HOME=/www/Android/sdk
> JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home
> FAILURE: Build failed with an exception.
> * Where:
> Build file '/path/MyApp/platforms/android/build.gradle' line: 22
> * What went wrong:
> A problem occurred evaluating root project 'android'.
> > Failed to apply plugin [id 'android']
>> Gradle version 2.10 is required. Current version is 2.2.1. If using the 
> gradle wrapper, try editing the distributionUrl in 
> /path/MyApp/gradle/wrapper/gradle-wrapper.properties to gradle-2.10-all.zip
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or 
> --debug option to get more log output.
> BUILD FAILED"



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-11251) Gradle version 2.10 is required. Current version is 2.2.1

2016-05-16 Thread zhuisui (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-11251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15285938#comment-15285938
 ] 

zhuisui commented on CB-11251:
--

I met this problem too.
I want to change the version of Gradle for building android to 2.10, but I 
can't find it.
So I write before_build hook to change 
`process.env['CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL']`, but it doesn't work 
for `run` command.

> Gradle version 2.10 is required. Current version is 2.2.1
> -
>
> Key: CB-11251
> URL: https://issues.apache.org/jira/browse/CB-11251
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Android, CLI
> Environment: OSX
>Reporter: Daniel Rossi
>Priority: Blocker
>  Labels: gradle
>
> When I try and run "cordova build" I run in this known gradle issue. 
> There is no possible fix other than to keep changing the version in Android 
> studio under File -> Project Structure -> Project -> Gradle Version -> 2.10 
> instead of 2.22
> Every time I make a change to the common www html file, I have to go back 
> into Android Studio and make that gradle change, rebuild then run into the 
> emulator. 
> This is out of the box, and I believe many people are having the same issue.  
> "cordova build
> ANDROID_HOME=/www/Android/sdk
> JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home
> FAILURE: Build failed with an exception.
> * Where:
> Build file '/path/MyApp/platforms/android/build.gradle' line: 22
> * What went wrong:
> A problem occurred evaluating root project 'android'.
> > Failed to apply plugin [id 'android']
>> Gradle version 2.10 is required. Current version is 2.2.1. If using the 
> gradle wrapper, try editing the distributionUrl in 
> /path/MyApp/gradle/wrapper/gradle-wrapper.properties to gradle-2.10-all.zip
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or 
> --debug option to get more log output.
> BUILD FAILED"



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-11251) Gradle version 2.10 is required. Current version is 2.2.1

2016-05-11 Thread Daniel Rossi (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-11251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15280486#comment-15280486
 ] 

Daniel Rossi commented on CB-11251:
---

Android Studio asks to upgrade Gradle. This is where the problem happens I 
believe. If I ignore the message I can build on the cli and debug in Android 
studio. 

> Gradle version 2.10 is required. Current version is 2.2.1
> -
>
> Key: CB-11251
> URL: https://issues.apache.org/jira/browse/CB-11251
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Android, CLI
> Environment: OSX
>Reporter: Daniel Rossi
>Priority: Blocker
>  Labels: gradle
>
> When I try and run "cordova build" I run in this known gradle issue. 
> There is no possible fix other than to keep changing the version in Android 
> studio under File -> Project Structure -> Project -> Gradle Version -> 2.10 
> instead of 2.22
> Every time I make a change to the common www html file, I have to go back 
> into Android Studio and make that gradle change, rebuild then run into the 
> emulator. 
> This is out of the box, and I believe many people are having the same issue.  
> "cordova build
> ANDROID_HOME=/www/Android/sdk
> JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home
> FAILURE: Build failed with an exception.
> * Where:
> Build file '/path/MyApp/platforms/android/build.gradle' line: 22
> * What went wrong:
> A problem occurred evaluating root project 'android'.
> > Failed to apply plugin [id 'android']
>> Gradle version 2.10 is required. Current version is 2.2.1. If using the 
> gradle wrapper, try editing the distributionUrl in 
> /path/MyApp/gradle/wrapper/gradle-wrapper.properties to gradle-2.10-all.zip
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or 
> --debug option to get more log output.
> BUILD FAILED"



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org