Search code examples
androidandroid-webviewcrosswalk-runtimecrosswalk

Crosswalk Xwalk Webview conflict CollapsingToolbarLayout<android.support.design.widget>


My project has CollapsingToolbarLayout implemented for UI effect

when i add

compile 'org.xwalk:xwalk_core_library:20.50.533.12'

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:23.2.1'
    compile 'com.android.support:design:23.2.1'
    compile 'com.android.support:cardview-v7:23.2.1'
    compile 'com.android.support:recyclerview-v7:23.2.1'  
    compile 'org.xwalk:xwalk_core_library:20.50.533.12'
   // compile 'org.xwalk:xwalk_core_library:16.45.421.19'   
}

http://pastebin.com/WwWw0VB3

And run my project i get the error

Caused by: android.view.InflateException: Binary XML file line #17: Error inflating class android.support.design.widget.CollapsingToolbarLayout

http://pastebin.com/V0XyqViC

On removing compile 'org.xwalk:xwalk_core_library:20.50.533.12' from gradle the error disappears


Solution

  • Using the following snippet fixed the issue

    compile('com.android.support:support-v4:25.2.0') {
            force = true;
        }