[ https://issues.apache.org/jira/browse/CB-12500?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15886986#comment-15886986 ]
zhuisui edited comment on CB-12500 at 2/28/17 1:14 AM: ------------------------------------------------------- I wrote this in ~/.profile. export CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL="$HOME/.gradle/wrapper/dists/gradle-2.14.1-all/53l0mv9mggp9q5m2ip574m21oh/gradle-2.14.1-all.zip" Then, cordova got it. was (Author: zyf0330): I wrote this in ~/.profile. {export CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL="$HOME/.gradle/wrapper/dists/gradle-2.14.1-all/53l0mv9mggp9q5m2ip574m21oh/gradle-2.14.1-all.zip"} Then, cordova got it. > CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL behave wrongly on Ubuntu > ---------------------------------------------------------------- > > Key: CB-12500 > URL: https://issues.apache.org/jira/browse/CB-12500 > Project: Apache Cordova > Issue Type: Bug > Components: CLI > Affects Versions: 6.5.0 > Environment: Ubuntu 16.10 > Reporter: zhuisui > > After I set CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL env starting with /, > `cordova build` print error, and it shows that cordova read gradle path as > '$project/platforms/android/gradle/wrapper$CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL'. > So it treat this url starting with / as a relative path. -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org