cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (CB-13580) cordova-android 6.4.0 broke build if cdvBuildMultipleApks is set to true
Date Thu, 16 Nov 2017 00:35:00 GMT


ASF GitHub Bot commented on CB-13580:

DavidStrausz opened a new pull request #417: CB-13580: (android) fix build for multiple apks
(different product flavors)
   Please make sure the checklist boxes are all checked before submitting the PR. The checklist
   is intended as a quick reference, for complete details please see our Contributor Guidelines:
   ### Platforms affected
   ### What does this PR do?
   This PR fixes the build if cdvBuildMultipleApks is set to true by defining `flavorDimensions
"default"` in `build.gradle` and by adapting the `findOutputApksHelper` method in `GenericBuilder.js`
to recursively scan the `build/outputs/apk` directory for matching candidates.
   ### What testing has been done on this change?
   I ran the unit tests and the connectedAndroidTest tests and did manual tests of builds
with crosswalk (multiple APKs) and builds without crosswalk (single APK).
   ### Checklist
   - [x] [Reported an issue]( in the JIRA
   - [x] Commit message follows the format: "CB-3232: (android) Fix bug with resolving file
paths", where CB-xxxx is the JIRA ID & "android" is the platform affected.
   - [ ] Added automated test coverage as appropriate for this change.

This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

> cordova-android 6.4.0 broke build if cdvBuildMultipleApks is set to true
> ------------------------------------------------------------------------
>                 Key: CB-13580
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-android
>    Affects Versions: 6.4.0
>            Reporter: David Strauß
>            Assignee: Joe Bowser
>              Labels: build
> With the latest cordova-android (6.4.0) builds for different product flavors (arm, x86)
do not work anymore (error e.g.: "No flavor is associated with flavor dimension ...")  because
of the changes introduced with gradle 3.0.0. With the new gradle plugin a flavorDimenson must
be specified to build different product flavors (mentioned [here|]
in the upgrade guide. This can be fixed by adding `flavorDimensions "default"` to build.gradle
if cdvBuildMultipleApks is set to true.
> Another change that was introduced with the new gradle version is that builds for different
architectures are put into their own directory (build/outputs/apk/<arch>/<debug|release>)
which results in APK files not being found (mentioned in the upgrade guide under the point
"Modifying variant outputs at build time may not work").
> This can be fixed by adapting the findOutputApksHelper method in GenericBuilder.js.
> An unfortunate side effect of these issues is that projects leveraging crosswalk do not
work anymore.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message