crosswalk-project / crosswalk

A web runtime built on Chrome. This project is currently unmaintained.
https://crosswalk-project.org/blog/crosswalk-final-release.html
BSD 3-Clause "New" or "Revised" License
2.32k stars 651 forks source link

Android projects linking to XWalk break since android support v27 was released #4014

Open dimitryvolkov opened 6 years ago

dimitryvolkov commented 6 years ago

It seems there's an issue building projects with XWalk (I tried version from 21 till 23) since android support lib v27 was released.

It seems XWalk was built to use the latest version available but doesn't seem to support the latest one (an invalid "values.xml" file is generated)

Resulting in build errors as follows:

ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:font
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontStyle
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontWeight

The apparent fix to this seems to be to exclude the support version from the xwalk link via this gradle script:

compile ('org.xwalk:xwalk_core_library:23.53.589.4') {
    exclude group: 'com.android.support', module: 'support-v4'
}

and link it elsewhere (via appcompat or another dependency)