Hello,

   I've been trying to add the embedded api of Crosswalk webview to an
existing project using the instructions here
https://crosswalk-project.org/#documentation/embedding_crosswalk . I can
get the code to compile, however when I run the app and it gets to the
point where I call the XWalkView library, I get the following errors

W/XWalkInternalResources(12309):
org.xwalk.core.R$string.accessibility_content_v
iew is not found.

A whole bunch of errors like that, indicating the program can't find the R
file. And then I get this

D/dalvikvm(12309): Trying to load lib
/data/app-lib/org.yaxim.androidclient-2/li
bxwalkcore.so 0x4286ce00
D/dalvikvm(12309): Added shared lib
/data/app-lib/org.yaxim.androidclient-2/libx
walkcore.so 0x4286ce00
W/System.err(12309): java.lang.NoClassDefFoundError:
org/xwalk/core/AndroidProto
colHandler
W/System.err(12309):    at java.lang.Runtime.nativeLoad(Native Method)
W/System.err(12309):    at java.lang.Runtime.loadLibrary(Runtime.java:379)
W/System.err(12309):    at java.lang.System.loadLibrary(System.java:535)
W/System.err(12309):    at
org.chromium.base.library_loader.LibraryLoader.loadAl
readyLocked(LibraryLoader.java:161)
W/System.err(12309):    at
org.chromium.base.library_loader.LibraryLoader.loadNo
w(LibraryLoader.java:125)
W/System.err(12309):    at
org.xwalk.core.XWalkViewDelegate.init(XWalkViewDelega
te.java:119)
W/System.err(12309):    at org.xwalk.core.XWalkView.init(XWalkView.java:227)
W/System.err(12309):    at
org.xwalk.core.XWalkView.<init>(XWalkView.java:191)
W/System.err(12309):    at
org.yaxim.androidclient.chat.ChatRTC.onCreate(ChatRTC
.java:41)
W/System.err(12309):    at
android.app.Activity.performCreate(Activity.java:5250
)
W/System.err(12309):    at
android.app.Instrumentation.callActivityOnCreate(Inst
rumentation.java:1097)
W/System.err(12309):    at
android.app.ActivityThread.performLaunchActivity(Acti
vityThread.java:2211)
W/System.err(12309):    at
android.app.ActivityThread.handleLaunchActivity(Activ
ityThread.java:2297)
W/System.err(12309):    at
android.app.ActivityThread.access$700(ActivityThread.
java:152)
W/System.err(12309):    at
android.app.ActivityThread$H.handleMessage(ActivityTh
read.java:1282)
W/System.err(12309):    at
android.os.Handler.dispatchMessage(Handler.java:99)
W/System.err(12309):    at android.os.Looper.loop(Looper.java:137)
W/System.err(12309):    at
android.app.ActivityThread.main(ActivityThread.java:5
328)
W/System.err(12309):    at java.lang.reflect.Method.invokeNative(Native
Method)
W/System.err(12309):    at java.lang.reflect.Method.invoke(Method.java:511)
W/System.err(12309):    at
com.android.internal.os.ZygoteInit$MethodAndArgsCalle
r.run(ZygoteInit.java:1102)
W/System.err(12309):    at
com.android.internal.os.ZygoteInit.main(ZygoteInit.ja
va:869)
W/System.err(12309):    at dalvik.system.NativeStart.main(Native Method)
W/System.err(12309): Caused by: java.lang.ClassNotFoundException: Didn't
find cl
ass "org.xwalk.core.AndroidProtocolHandler" on path:
/data/app/org.yaxim.android
client-2.apk
W/System.err(12309):    at
dalvik.system.BaseDexClassLoader.findClass(BaseDexCla
ssLoader.java:65)
W/System.err(12309):    at
java.lang.ClassLoader.loadClass(ClassLoader.java:501)

W/System.err(12309):    at
java.lang.ClassLoader.loadClass(ClassLoader.java:461)

W/System.err(12309):    ... 23 more
F/chromium(12309): [0620/075446:FATAL:jni_android.cc(116)] Check failed:
!ClearE
xception(env) && clazz. Failed to find class
org/xwalk/core/AndroidProtocolHandl
er


I have tried every different way I can think of to add the library to
project, cleaning the project, etc, but every time I get the same thing.
Any help would be greatly appreciated. Thanks

-Brad
_______________________________________________
Crosswalk-help mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help

Reply via email to