Dave
     To add XWalk to the project, we should reference Crosswalk webview from 
the project,  not inluded both .jar files as libraries.
Pls try the following steps(in ADT):
Right-click on the project in the Package Explorer and select Properties.
Select Android.
In the Library tab, click Add. Select the 
crosswalk-webview-${XWALK-BETA-ANDROID-X86}-x86 project and click OK.
Click Ok to accept.
The project should now be linked to the Crosswalk webview project.
Thanks
Jenny

From: Crosswalk-help 
[mailto:[email protected]] On Behalf Of Dave 
Richardson
Sent: Friday, January 2, 2015 10:21 PM
To: [email protected]
Subject: [Crosswalk-help] Embedding Crosswalk

Hello,

I want to replace Webview with Xwalkview.
I've followed the tutorial at: 
https://crosswalk-project.org/documentation/embedding_crosswalk.html

I am using Android Studio, so to add XWalk to my project I inluded both .jar 
files as libraries.

There are no compilation errors, but when I try to run it it says:

The following classes could not be instantiated - org.xwalk.core.xwalkview

java.lang.NullPointerException
    at org.xwalk.core.ReflectionHelper.isWrapper(ReflectionHelper.java:281)
    at org.xwalk.core.ReflectionHelper.<clinit>(ReflectionHelper.java:285)
    at org.xwalk.core.XWalkView.<clinit>(XWalkView.java:619)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    at 
org.jetbrains.android.uipreview.ViewLoader.createNewInstance(ViewLoader.java:379)
    at org.jetbrains.android.uipreview.ViewLoader.loadView(ViewLoader.java:99)
    at 
com.android.tools.idea.rendering.LayoutlibCallback.loadView(LayoutlibCallback.java:172)
    at android.view.BridgeInflater.loadCustomView(BridgeInflater.java:207)
    at android.view.BridgeInflater.createViewFromTag(BridgeInflater.java:132)
    at android.view.LayoutInflater.inflate(LayoutInflater.java:482)
    at android.view.LayoutInflater.inflate(LayoutInflater.java:385)
    at 
com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:400)
    at com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:332)
    at 
com.android.ide.common.rendering.LayoutLibrary.createSession(LayoutLibrary.java:350)
    at 
com.android.tools.idea.rendering.RenderService$5.compute(RenderService.java:688)
    at 
com.android.tools.idea.rendering.RenderService$5.compute(RenderService.java:677)
    at 
com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:932)
    at 
com.android.tools.idea.rendering.RenderService.createRenderSession(RenderService.java:677)
    at 
com.android.tools.idea.rendering.RenderService.render(RenderService.java:815)
    at 
com.intellij.android.designer.designSurface.AndroidDesignerEditorPanel$6.run(AndroidDesignerEditorPanel.java:480)
    at 
com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:320)
    at 
com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:310)
    at 
com.intellij.util.ui.update.MergingUpdateQueue$2.run(MergingUpdateQueue.java:254)
    at 
com.intellij.util.ui.update.MergingUpdateQueue.flush(MergingUpdateQueue.java:269)
    at 
com.intellij.util.ui.update.MergingUpdateQueue.flush(MergingUpdateQueue.java:227)
    at 
com.intellij.util.ui.update.MergingUpdateQueue.run(MergingUpdateQueue.java:217)
    at 
com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:238)
    at com.intellij.util.Alarm$Request$1.run(Alarm.java:327)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)

What am I doing wrong?

Thanks for any help.
Greetings,
Dave
_______________________________________________
Crosswalk-help mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help

Reply via email to