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

ASF GitHub Bot commented on CB-13580:
-------------------------------------

ataraxus commented on issue #417: CB-13580: (android) fix build for multiple 
apks (different product flavors)
URL: https://github.com/apache/cordova-android/pull/417#issuecomment-353296987
 
 
   Hello folks, 
   
   foremost, thanks @DavidStrausz for your effort and explanation! 
   
   But seriously, i know this is symptomatic for the JS world, but introducing 
breaking changes with a minor release? WTF!? The Ionites do have the cordova 
dependency declared as **^6.2.3**  so after checking out the project from 
scratch and building it we get a broken build! Due to the Crosswalk issue and 
due to changed output directories.
   
   Now, i guess to rub salt and tequila in my eyes, instead of somehow fleshing 
out a bugfix release, I'm supposed to ditch Crosswalk and my android < 5 user 
base!? Seriously? 
   
   I know that my post is not helpful in anyway and also symptomatic for the JS 
world, but so be it - I'm defeated.
   
   Cheers to all who try to make stuff working! 

----------------------------------------------------------------
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:
[email protected]


> cordova-android 6.4.0 broke build if cdvBuildMultipleApks is set to true
> ------------------------------------------------------------------------
>
>                 Key: CB-13580
>                 URL: https://issues.apache.org/jira/browse/CB-13580
>             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|https://developer.android.com/studio/build/gradle-plugin-3-0-0-migration.html?utm_source=android-studio#flavor_dimensions]
>  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
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to