我的项目有 CollapsingToolbarLayout 为UI效果实现
当我添加
编译'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'
}
运行我的项目我收到错误
Caused by: android.view.InflateException: Binary XML file line #17: Error inflating class android.support.design.widget.CollapsingToolbarLayout
删除时 编译'org.xwalk:xwalk_core_library:20.50.533.12' 从gradle中,错误消失
答案 0 :(得分:0)
Stacktrace也有以下内容:
caused by: java.lang.reflect.InvocationTargetException at java.lang.reflect.Constructor.constructNative(Native Method)
因此,我建议检查与人行横道相关的计划设置。
-keep class org.xwalk.core.** { *; }
如果您将其与crosswalk webview一起使用,则可能是javascriptInterface。
另一种可能性是您在crosswalk核心库和support-v4中包含相同的模块。尝试编译核心库,但不包括以下模块:
compile 'org.xwalk:xwalk_core_library:16.45.421.19'
{
exclude module: 'support-v4'
exclude module: 'support-annotations'
exclude module: 'jsr305'
}
答案 1 :(得分:0)
使用以下代码段解决了问题
setActivityType = CLActivityTypeOther
setAllowsBackgroundLocationUpdates = YES
setDesiredAccuracy = kCLLocationAccuracyBestForNavigation
setDistanceFilter = kCLDistanceFilterNone
setPausesLocationUpdatesAutomatically = false