使用CrossWalk时,遇到无法实例化的问题
android.view.InflateException: Binary XML file line #7: Error inflating class org.xwalk.core.XWalkView
04-08 15:12:56.863: E/AndroidRuntime(14645): Caused by: junit.framework.AssertionFailedError: Please have your activity extend XWalkActivity for shared mode
04-08 15:12:56.863: E/AndroidRuntime(14645): at junit.framework.Assert.fail(Assert.java:50)
04-08 15:12:56.863: E/AndroidRuntime(14645): at org.xwalk.core.XWalkCoreWrapper.initEmbeddedMode(XWalkCoreWrapper.java:180)
04-08 15:12:56.863: E/AndroidRuntime(14645): at org.xwalk.core.XWalkView.reflectionInit(XWalkView.java:705)
04-08 15:12:56.863: E/AndroidRuntime(14645): at org.xwalk.core.XWalkView.<init>(XWalkView.java:181)
04-08 15:12:56.863: E/AndroidRuntime(14645): … 23 more
求高手指点..
android.view.InflateException: Binary XML file line #7: Error inflating class org.xwalk.core.XWalkView
04-08 15:12:56.863: E/AndroidRuntime(14645): Caused by: junit.framework.AssertionFailedError: Please have your activity extend XWalkActivity for shared mode
04-08 15:12:56.863: E/AndroidRuntime(14645): at junit.framework.Assert.fail(Assert.java:50)
04-08 15:12:56.863: E/AndroidRuntime(14645): at org.xwalk.core.XWalkCoreWrapper.initEmbeddedMode(XWalkCoreWrapper.java:180)
04-08 15:12:56.863: E/AndroidRuntime(14645): at org.xwalk.core.XWalkView.reflectionInit(XWalkView.java:705)
04-08 15:12:56.863: E/AndroidRuntime(14645): at org.xwalk.core.XWalkView.<init>(XWalkView.java:181)
04-08 15:12:56.863: E/AndroidRuntime(14645): … 23 more
求高手指点..
解决方案
30
不能在onCreate方法里去加载,在onXWalkReady方法里加载。
Activity继承XWalkActivity
Activity继承XWalkActivity