Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Attribute "layout_anchorGravity" already defined with incompatible format

when I try to build my Ionic project for Android with Crosswalk I get following error. Without Crosswalk everything works fine..

platforms/android/build/intermediates/res/merged/armv7/debug/values/values.xml:243: AAPT: Attribute "layout_anchorGravity" already defined with incompatible format.

and

What went wrong: Execution failed for task ':processArmv7DebugResources'. com.android.ide.common.process.ProcessException: Failed to execute aapt

  • Ionic CLI: 3.17.0
  • cordova-android: 6.3.0
  • Crosswalk: 2.4.0

Has someone a hint or a solution for me? Thanks in advance <3

like image 664
Frede Avatar asked Mar 13 '18 12:03

Frede


1 Answers

If you are using com.android.support:*-v7:27.1.x gradle dependencies, change it to com.android.support:*-v7:26.1.0 or lower version. Here is the link of Recent Support Library Revisions

like image 190
Joonsoo Avatar answered Nov 05 '22 01:11

Joonsoo