cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joe Bowser (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-11964) Gradle build failure after any plugin installation
Date Thu, 06 Oct 2016 15:30:20 GMT

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

Joe Bowser commented on CB-11964:
---------------------------------

It seems that the latest gradle is having problems with directories on MacOS, and that this
isn't a permissions thing:
{noformat}
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':packageDebug'.
> java.io.FileNotFoundException: /Users/jbowser/GradleFail/platforms/android/build/intermediates/assets/debug/www/plugins/cordova-plugin-device
(Is a directory)

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to
get more log output.

BUILD FAILED
{noformat}

When I run a clean and then do a build, it works fine.  After further thought, we SHOULD force
a clean after every plugin installation, since we're changing both the Java and the JS code.
 I know that this may slow down builds slightly, but it's better for it to be slower and correct
than for it to error out because assets have changed and don't have the same signature or
because Java code has changed.

> Gradle build failure after any plugin installation
> --------------------------------------------------
>
>                 Key: CB-11964
>                 URL: https://issues.apache.org/jira/browse/CB-11964
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: Master
>         Environment: node 4.4.3
> cordova 6.3.0
>            Reporter: Alexander Sorokin
>              Labels: found-by-ci, triaged
>
> {noformat}
> 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
> {noformat}
> Results in the following error:
> {noformat}
> 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)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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


Mime
View raw message