Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-11964

Gradle build failure after any plugin installation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Master
    • None
    • cordova-android
    • node 4.4.3
      cordova 6.3.0

    Description

      cordova create foo
      cd foo
      cordova platform add android@https://github.com/apache/cordova-android
      cordova build
      cordova plugin add cordova-plugin-device
      cordova build
      

      Results in the following error:

      BUILD FAILED
      
      Total time: 2.439 secs
      FAILURE: Build failed with an exception.
      
      * What went wrong:
      Execution failed for task ':packageDebug'.
      > java.io.FileNotFoundException: C:\Cordova\foo\platforms\android\build\intermediates\assets\debug\www\plugins (Access is denied)
      
      * Try:
      Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
      Error: cmd: Command failed with exit code 1 Error output:
      FAILURE: Build failed with an exception.
      
      * What went wrong:
      Execution failed for task ':packageDebug'.
      > java.io.FileNotFoundException: C:\Cordova\foo\platforms\android\build\intermediates\assets\debug\www\plugins (Access is denied)
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            alsorokin Alexander Sorokin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: