From issues-return-93743-apmail-cordova-issues-archive=cordova.apache.org@cordova.apache.org Thu Mar 29 15:53:06 2018 Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AF87E18C78 for ; Thu, 29 Mar 2018 15:53:06 +0000 (UTC) Received: (qmail 13631 invoked by uid 500); 29 Mar 2018 15:53:03 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 13595 invoked by uid 500); 29 Mar 2018 15:53:03 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 13459 invoked by uid 99); 29 Mar 2018 15:53:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Mar 2018 15:53:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 4AC16C0592 for ; Thu, 29 Mar 2018 15:53:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.311 X-Spam-Level: X-Spam-Status: No, score=-110.311 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id wOBSHz9mA6zH for ; Thu, 29 Mar 2018 15:53:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id F23445F5FA for ; Thu, 29 Mar 2018 15:53:00 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 6F36CE0056 for ; Thu, 29 Mar 2018 15:53:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 3AD10255EE for ; Thu, 29 Mar 2018 15:53:00 +0000 (UTC) Date: Thu, 29 Mar 2018 15:53:00 +0000 (UTC) From: "Keith Franklin jathanna (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CB-14008) Cordova Build fails for android in Ubuntu machine MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Keith Franklin jathanna created CB-14008: -------------------------------------------- Summary: 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 Fix For: 8.0.0 h6. I run the command=C2=A0``cordova build `` and I get the error: ``` Android Studio project detected ANDROID_HOME=3D/home/keith/Android/Sdk JAVA_HOME=3D/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:and= roid-maven-gradle-plugin:1.5). Searched in the following locations: [https://jcenter.bintray.com/com/github/dcendents/android-maven-gradle-plu= gin/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/mo= bileApp/platforms/android/gradlew: Command failed with exit code 1 Error ou= tput: 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:and= roid-maven-gradle-plugin:1.5). Searched in the following locations: [https://jcenter.bintray.com/com/github/dcendents/android-maven-gradle-plu= gin/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 ar= e deprecated. In the future, promise rejections that are not handled will t= erminate the Node.js process with a non-zero exit code. ``` =C2=A0 h5. I make the change in the ``platforms/android/CordovaLib/build.gradle`` =C2=A0 ``` 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