You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Keith Franklin jathanna (JIRA)" <ji...@apache.org> on 2018/04/03 09:30:00 UTC

[jira] [Commented] (CB-14008) Cordova Build fails for android in Ubuntu machine

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

Keith Franklin jathanna commented on CB-14008:
----------------------------------------------

I am using cordova@8.0.0/

Sent from Mailspring (https://link.getmailspring.com/link/1522747652.local-214a96d8-2c8c-v1.1.5-5834c99f@getmailspring.com/0?redirect=https%3A%2F%2Fgetmailspring.com%2F&recipient=amlyYUBhcGFjaGUub3Jn), the best free email app for work


> Cordova Build fails for android in Ubuntu machine
> -------------------------------------------------
>
>                 Key: CB-14008
>                 URL: https://issues.apache.org/jira/browse/CB-14008
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-android
>    Affects Versions: cordova-android-7.0.0
>         Environment: * Os: Ubuntu 16.04 LTS
>  * node.js : 8.9.4
>  * npm: 5.8.0
>  * cordova: 8.0.0
>  * android: 7.0.0
>            Reporter: Keith Franklin jathanna
>            Assignee: Joe Bowser
>            Priority: Major
>             Fix For: 8.0.0
>
>
> h6. I run the command ``cordova build `` and I get the error:
> ```
>  Android Studio project detected
>  ANDROID_HOME=/home/keith/Android/Sdk
>  JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/
>  studio
>  Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details
>  :wrapper
> BUILD SUCCESSFUL
> Total time: 3.704 secs
>  Subproject Path: CordovaLib
>  Subproject Path: app
> FAILURE: Build failed with an exception.
>  * What went wrong:
>  A problem occurred configuring project ':CordovaLib'.
>  > Could not resolve all files for configuration ':CordovaLib:classpath'.
>  > Could not find android-maven-gradle-plugin.jar (com.github.dcendents:android-maven-gradle-plugin:1.5).
>  Searched in the following locations:
>  [https://jcenter.bintray.com/com/github/dcendents/android-maven-gradle-plugin/1.5/android-maven-gradle-plugin-1.5.jar]
>  * Try:
>  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
>  * Get more help at [https://help.gradle.org|https://help.gradle.org/]
> BUILD FAILED in 0s
>  (node:11046) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: /home/keith/Documents/personal/financeTracker/mobileApp/platforms/android/gradlew: Command failed with exit code 1 Error output:
>  FAILURE: Build failed with an exception.
>  * What went wrong:
>  A problem occurred configuring project ':CordovaLib'.
>  > Could not resolve all files for configuration ':CordovaLib:classpath'.
>  > Could not find android-maven-gradle-plugin.jar (com.github.dcendents:android-maven-gradle-plugin:1.5).
>  Searched in the following locations:
>  [https://jcenter.bintray.com/com/github/dcendents/android-maven-gradle-plugin/1.5/android-maven-gradle-plugin-1.5.jar]
>  * Try:
>  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
>  * Get more help at [https://help.gradle.org|https://help.gradle.org/]
> BUILD FAILED in 0s
>  (node:11046) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
>  ```
>  
> h5. I make the change in the ``platforms/android/CordovaLib/build.gradle``
>  
> ```
> buildscript {
>  repositories {
>  jcenter()
>  maven {
>  // change "https://maven.google.com"
>  url "https://plugins.gradle.org/m2/"
>  }
>  }
> dependencies {
>  // classpath 'com.android.tools.build:gradle:3.0.1'
>  // change 1.5 to 2.0
>  classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0'
>  classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
>  }
> }
> ```
> and the build works.
> ```



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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