You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "surendra sonkar (JIRA)" <ji...@apache.org> on 2018/02/21 11:39:00 UTC

[jira] [Commented] (CB-13377) Build fails to find android-maven-gradle-plugin.jar

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

surendra sonkar commented on CB-13377:
--------------------------------------

Hi Guys,

 

I have resolved the above issues from below steps kindly follow the instruction then might be your issues will resolved.

 

Step-1: Please replace the below code – /plateforms/android/CordovaLib/build.gradle

 

FROM: dependencies {
        classpath 'com.android.tools.build:gradle:3.0.0'
        classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
        classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
    }

 

TO

 

dependencies {
        classpath 'com.android.tools.build:gradle:2.2.2'
        classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
        classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
    }

 

Step-2:  Please replace the below code – /node_modules/cordova-android/framework/build.gradle

 

FROM:


    dependencies {
        classpath 'com.android.tools.build:gradle:3.0.0'
        classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
        classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
    }

 

TO

 


    dependencies {
        classpath 'com.android.tools.build:gradle:2.2.2'
        classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
        classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
    }

 

Step-3: Run the below command:

ionic cordova build android

 

Hope the above issues will resolve your issues.

 

Thanks
Surendra

 

 

 

 

> Build fails to find android-maven-gradle-plugin.jar
> ---------------------------------------------------
>
>                 Key: CB-13377
>                 URL: https://issues.apache.org/jira/browse/CB-13377
>             Project: Apache Cordova
>          Issue Type: Bug
>    Affects Versions: 6.3.0
>            Reporter: Brian Soumakian
>            Priority: Major
>
> > cordova build android --release --device
> ✖ Running command - failed!
> [ERROR] An error occurred while running cordova build android --release --device 
>         (exit code 1):
>         
>         ANDROID_HOME=/Users/brian/Library/Android/sdk
>         JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home
>         Reading build config file: /Users/brian/GitHub/confidence-app/build.json
>         Starting a Gradle Daemon (subsequent builds will be faster)
>         :wrapper
>         
>         BUILD SUCCESSFUL
>         
>         Total time: 12.481 secs
>         Subproject Path: CordovaLib
>         Starting a Gradle Daemon (subsequent builds will be faster)
>         The Task.leftShift(Closure) method has been deprecated and is scheduled 
>         to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
>         	at 
>         build_b5kvz0slkk82d8262nuzl6ex0.run(/Users/brian/GitHub/confidence-app/platforms/android/build.gradle:143)
>         
>         FAILURE: Build failed with an exception.
>         
>         * What went wrong:
>         A problem occurred configuring root project 'android'.
>         > Could not resolve all dependencies for configuration ':_debugApk'.
>             > 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.
>         
>         BUILD FAILED
>         
>         Total time: 15.611 secs
>         Error: /Users/brian/GitHub/confidence-app/platforms/android/gradlew: 
>         Command failed with exit code 1 Error output:
>         FAILURE: Build failed with an exception.
>         
>         * What went wrong:
>         A problem occurred configuring root project 'android'.
>         > Could not resolve all dependencies for configuration ':_debugApk'.
>             > 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.



--
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