java.lang.ClassNotFoundException: org.xwalk.core.R$string

JIRA | Alex Chen | 1 year ago
  1. 0

    I am trying to embed XWalkView inside Android project (ant build system). I have added Android webview (ARM) 14.43.343.17 as module inside the project and and trying to add XWalkView but getting this error. I have extended the activity as XWalkActivity as it is telling to using shared mode (though I am using Samsung Note 4 for testing which is arm based processor) This the log I am getting. Please help Process: org.cocos2dx.LearnWorldTemplate, PID: 12688 java.lang.NoClassDefFoundError: Failed resolution of: Lorg/xwalk/core/R$string; at org.xwalk.core.XWalkDialogManager.showInitializationError(XWalkDialogManager.java:61) at org.xwalk.core.XWalkUpdater.updateXWalkRuntime(XWalkUpdater.java:138) at org.xwalk.core.XWalkActivityDelegate.onDockFailed(XWalkActivityDelegate.java:70) at org.xwalk.core.XWalkLibraryLoader$DockTask.onPostExecute(XWalkLibraryLoader.java:222) at org.xwalk.core.XWalkLibraryLoader$DockTask.onPostExecute(XWalkLibraryLoader.java:191) at android.os.AsyncTask.finish(AsyncTask.java:632) at android.os.AsyncTask.access$600(AsyncTask.java:177) at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:645) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:145) at android.app.ActivityThread.main(ActivityThread.java:5972) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194) Caused by: java.lang.ClassNotFoundException: Didn't find class "org.xwalk.core.R$string" on path: DexPathList[[zip file "/data/app/org.cocos2dx.LearnWorldTemplate-1/base.apk"],nativeLibraryDirectories=[/data/app/org.cocos2dx.LearnWorldTemplate-1/lib/arm, /vendor/lib, /system/lib]] at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56) at java.lang.ClassLoader.loadClass(ClassLoader.java:511) at java.lang.ClassLoader.loadClass(ClassLoader.java:469)             at org.xwalk.core.XWalkDialogManager.showInitializationError(XWalkDialogManager.java:61)             at org.xwalk.core.XWalkUpdater.updateXWalkRuntime(XWalkUpdater.java:138)             at org.xwalk.core.XWalkActivityDelegate.onDockFailed(XWalkActivityDelegate.java:70)             at org.xwalk.core.XWalkLibraryLoader$DockTask.onPostExecute(XWalkLibraryLoader.java:222)             at org.xwalk.core.XWalkLibraryLoader$DockTask.onPostExecute(XWalkLibraryLoader.java:191)             at android.os.AsyncTask.finish(AsyncTask.java:632)             at android.os.AsyncTask.access$600(AsyncTask.java:177)             at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:645)             at android.os.Handler.dispatchMessage(Handler.java:102)             at android.os.Looper.loop(Looper.java:145)             at android.app.ActivityThread.main(ActivityThread.java:5972)             at java.lang.reflect.Method.invoke(Native Method)             at java.lang.reflect.Method.invoke(Method.java:372)             at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399)             at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194) Suppressed: java.lang.ClassNotFoundException: org.xwalk.core.R$string at java.lang.Class.classForName(Native Method) at java.lang.BootClassLoader.findClass(ClassLoader.java:781) at java.lang.BootClassLoader.loadClass(ClassLoader.java:841) at java.lang.ClassLoader.loadClass(ClassLoader.java:504)

    JIRA | 1 year ago | Vivek Fitkariwala
    java.lang.ClassNotFoundException: org.xwalk.core.R$string
  2. 0

    Impacted Cases ============== Reproduce Test Steps ==================== adb install -r out/Release/apks/XWalkRuntimeLib.apk adb install -r out/Release/apks/XWalkRuntimeClientShell.apk adb shell am start -n org.xwalk.runtime.client.shell/org.xwalk.runtime.client.shell.XWalkRuntimeClientShellActivity Expected Outcome ================ runtime shell start normally. Actual Outcome ============== I/ActivityManager( 570): Start proc 2608:org.xwalk.runtime.client.shell/u0a55 for activity org.xwalk.runtime.client.shell/.XWalkRuntimeClientShellActivity D/XWalkLib( 2608): Prepare to init core wrapper D/XWalkLib( 2608): DecompressTask started D/AndroidRuntime( 2608): Shutting down VM E/AndroidRuntime( 2608): FATAL EXCEPTION: main E/AndroidRuntime( 2608): Process: org.xwalk.runtime.client.shell, PID: 2608 E/AndroidRuntime( 2608): java.lang.NoClassDefFoundError: Failed resolution of: Lorg/xwalk/core/R$string; E/AndroidRuntime( 2608): at org.xwalk.core.XWalkDialogManager.showDecompressProgress(XWalkDialogManager.java:91) E/AndroidRuntime( 2608): at org.xwalk.core.XWalkActivityDelegate.onDecompressStarted(XWalkActivityDelegate.java:39) E/AndroidRuntime( 2608): at org.xwalk.core.XWalkLibraryLoader$DecompressTask.onPreExecute(XWalkLibraryLoader.java:232) E/AndroidRuntime( 2608): at android.os.AsyncTask.executeOnExecutor(AsyncTask.java:591) E/AndroidRuntime( 2608): at android.os.AsyncTask.execute(AsyncTask.java:539) E/AndroidRuntime( 2608): at org.xwalk.core.XWalkLibraryLoader.startDecompress(XWalkLibraryLoader.java:153) E/AndroidRuntime( 2608): at org.xwalk.core.XWalkActivityDelegate.initialize(XWalkActivityDelegate.java:33) E/AndroidRuntime( 2608): at org.xwalk.core.XWalkActivity.onResume(XWalkActivity.java:113) E/AndroidRuntime( 2608): at org.xwalk.app.XWalkRuntimeActivityBase.onResume(XWalkRuntimeActivityBase.java:59) E/AndroidRuntime( 2608): at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1257) E/AndroidRuntime( 2608): at android.app.Activity.performResume(Activity.java:6076) E/AndroidRuntime( 2608): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2975) E/AndroidRuntime( 2608): at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3017) E/AndroidRuntime( 2608): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2392) E/AndroidRuntime( 2608): at android.app.ActivityThread.access$800(ActivityThread.java:151) E/AndroidRuntime( 2608): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303) E/AndroidRuntime( 2608): at android.os.Handler.dispatchMessage(Handler.java:102) E/AndroidRuntime( 2608): at android.os.Looper.loop(Looper.java:135) E/AndroidRuntime( 2608): at android.app.ActivityThread.main(ActivityThread.java:5254) E/AndroidRuntime( 2608): at java.lang.reflect.Method.invoke(Native Method) E/AndroidRuntime( 2608): at java.lang.reflect.Method.invoke(Method.java:372) E/AndroidRuntime( 2608): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903) E/AndroidRuntime( 2608): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698) E/AndroidRuntime( 2608): Caused by: java.lang.ClassNotFoundException: Didn't find class "org.xwalk.core.R$string" on path: DexPathList[[zip file "/data/app/org.xwalk.runtime.client.shell-1/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]] E/AndroidRuntime( 2608): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56) E/AndroidRuntime( 2608): at java.lang.ClassLoader.loadClass(ClassLoader.java:511) E/AndroidRuntime( 2608): at java.lang.ClassLoader.loadClass(ClassLoader.java:469) E/AndroidRuntime( 2608): ... 23 more E/AndroidRuntime( 2608): Suppressed: java.lang.ClassNotFoundException: org.xwalk.core.R$string E/AndroidRuntime( 2608): at java.lang.Class.classForName(Native Method) E/AndroidRuntime( 2608): at java.lang.BootClassLoader.findClass(ClassLoader.java:781) E/AndroidRuntime( 2608): at java.lang.BootClassLoader.loadClass(ClassLoader.java:841) E/AndroidRuntime( 2608): at java.lang.ClassLoader.loadClass(ClassLoader.java:504) E/AndroidRuntime( 2608): ... 24 more E/AndroidRuntime( 2608): Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available W/ActivityManager( 570): Force finishing activity 1 org.xwalk.runtime.client.shell/.XWalkRuntimeClientShellActivity Test Case Source Code ===================== Test Builds =========== Issue Analysis ==============

    JIRA | 1 year ago | Alex Chen
    java.lang.ClassNotFoundException: org.xwalk.core.R$string
  3. 0

    I am trying to embed XWalkView inside Android project (ant build system). I have added Android webview (ARM) 14.43.343.17 as module inside the project and and trying to add XWalkView but getting this error. I have extended the activity as XWalkActivity as it is telling to using shared mode (though I am using Samsung Note 4 for testing which is arm based processor) This the log I am getting. Please help Process: org.cocos2dx.LearnWorldTemplate, PID: 12688 java.lang.NoClassDefFoundError: Failed resolution of: Lorg/xwalk/core/R$string; at org.xwalk.core.XWalkDialogManager.showInitializationError(XWalkDialogManager.java:61) at org.xwalk.core.XWalkUpdater.updateXWalkRuntime(XWalkUpdater.java:138) at org.xwalk.core.XWalkActivityDelegate.onDockFailed(XWalkActivityDelegate.java:70) at org.xwalk.core.XWalkLibraryLoader$DockTask.onPostExecute(XWalkLibraryLoader.java:222) at org.xwalk.core.XWalkLibraryLoader$DockTask.onPostExecute(XWalkLibraryLoader.java:191) at android.os.AsyncTask.finish(AsyncTask.java:632) at android.os.AsyncTask.access$600(AsyncTask.java:177) at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:645) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:145) at android.app.ActivityThread.main(ActivityThread.java:5972) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194) Caused by: java.lang.ClassNotFoundException: Didn't find class "org.xwalk.core.R$string" on path: DexPathList[[zip file "/data/app/org.cocos2dx.LearnWorldTemplate-1/base.apk"],nativeLibraryDirectories=[/data/app/org.cocos2dx.LearnWorldTemplate-1/lib/arm, /vendor/lib, /system/lib]] at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56) at java.lang.ClassLoader.loadClass(ClassLoader.java:511) at java.lang.ClassLoader.loadClass(ClassLoader.java:469)             at org.xwalk.core.XWalkDialogManager.showInitializationError(XWalkDialogManager.java:61)             at org.xwalk.core.XWalkUpdater.updateXWalkRuntime(XWalkUpdater.java:138)             at org.xwalk.core.XWalkActivityDelegate.onDockFailed(XWalkActivityDelegate.java:70)             at org.xwalk.core.XWalkLibraryLoader$DockTask.onPostExecute(XWalkLibraryLoader.java:222)             at org.xwalk.core.XWalkLibraryLoader$DockTask.onPostExecute(XWalkLibraryLoader.java:191)             at android.os.AsyncTask.finish(AsyncTask.java:632)             at android.os.AsyncTask.access$600(AsyncTask.java:177)             at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:645)             at android.os.Handler.dispatchMessage(Handler.java:102)             at android.os.Looper.loop(Looper.java:145)             at android.app.ActivityThread.main(ActivityThread.java:5972)             at java.lang.reflect.Method.invoke(Native Method)             at java.lang.reflect.Method.invoke(Method.java:372)             at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399)             at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194) Suppressed: java.lang.ClassNotFoundException: org.xwalk.core.R$string at java.lang.Class.classForName(Native Method) at java.lang.BootClassLoader.findClass(ClassLoader.java:781) at java.lang.BootClassLoader.loadClass(ClassLoader.java:841) at java.lang.ClassLoader.loadClass(ClassLoader.java:504)

    JIRA | 1 year ago | Vivek Fitkariwala
    java.lang.ClassNotFoundException: org.xwalk.core.R$string
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Impacted Cases ============== Reproduce Test Steps ==================== adb install -r out/Release/apks/XWalkRuntimeLib.apk adb install -r out/Release/apks/XWalkRuntimeClientShell.apk adb shell am start -n org.xwalk.runtime.client.shell/org.xwalk.runtime.client.shell.XWalkRuntimeClientShellActivity Expected Outcome ================ runtime shell start normally. Actual Outcome ============== I/ActivityManager( 570): Start proc 2608:org.xwalk.runtime.client.shell/u0a55 for activity org.xwalk.runtime.client.shell/.XWalkRuntimeClientShellActivity D/XWalkLib( 2608): Prepare to init core wrapper D/XWalkLib( 2608): DecompressTask started D/AndroidRuntime( 2608): Shutting down VM E/AndroidRuntime( 2608): FATAL EXCEPTION: main E/AndroidRuntime( 2608): Process: org.xwalk.runtime.client.shell, PID: 2608 E/AndroidRuntime( 2608): java.lang.NoClassDefFoundError: Failed resolution of: Lorg/xwalk/core/R$string; E/AndroidRuntime( 2608): at org.xwalk.core.XWalkDialogManager.showDecompressProgress(XWalkDialogManager.java:91) E/AndroidRuntime( 2608): at org.xwalk.core.XWalkActivityDelegate.onDecompressStarted(XWalkActivityDelegate.java:39) E/AndroidRuntime( 2608): at org.xwalk.core.XWalkLibraryLoader$DecompressTask.onPreExecute(XWalkLibraryLoader.java:232) E/AndroidRuntime( 2608): at android.os.AsyncTask.executeOnExecutor(AsyncTask.java:591) E/AndroidRuntime( 2608): at android.os.AsyncTask.execute(AsyncTask.java:539) E/AndroidRuntime( 2608): at org.xwalk.core.XWalkLibraryLoader.startDecompress(XWalkLibraryLoader.java:153) E/AndroidRuntime( 2608): at org.xwalk.core.XWalkActivityDelegate.initialize(XWalkActivityDelegate.java:33) E/AndroidRuntime( 2608): at org.xwalk.core.XWalkActivity.onResume(XWalkActivity.java:113) E/AndroidRuntime( 2608): at org.xwalk.app.XWalkRuntimeActivityBase.onResume(XWalkRuntimeActivityBase.java:59) E/AndroidRuntime( 2608): at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1257) E/AndroidRuntime( 2608): at android.app.Activity.performResume(Activity.java:6076) E/AndroidRuntime( 2608): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2975) E/AndroidRuntime( 2608): at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3017) E/AndroidRuntime( 2608): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2392) E/AndroidRuntime( 2608): at android.app.ActivityThread.access$800(ActivityThread.java:151) E/AndroidRuntime( 2608): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303) E/AndroidRuntime( 2608): at android.os.Handler.dispatchMessage(Handler.java:102) E/AndroidRuntime( 2608): at android.os.Looper.loop(Looper.java:135) E/AndroidRuntime( 2608): at android.app.ActivityThread.main(ActivityThread.java:5254) E/AndroidRuntime( 2608): at java.lang.reflect.Method.invoke(Native Method) E/AndroidRuntime( 2608): at java.lang.reflect.Method.invoke(Method.java:372) E/AndroidRuntime( 2608): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903) E/AndroidRuntime( 2608): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698) E/AndroidRuntime( 2608): Caused by: java.lang.ClassNotFoundException: Didn't find class "org.xwalk.core.R$string" on path: DexPathList[[zip file "/data/app/org.xwalk.runtime.client.shell-1/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]] E/AndroidRuntime( 2608): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56) E/AndroidRuntime( 2608): at java.lang.ClassLoader.loadClass(ClassLoader.java:511) E/AndroidRuntime( 2608): at java.lang.ClassLoader.loadClass(ClassLoader.java:469) E/AndroidRuntime( 2608): ... 23 more E/AndroidRuntime( 2608): Suppressed: java.lang.ClassNotFoundException: org.xwalk.core.R$string E/AndroidRuntime( 2608): at java.lang.Class.classForName(Native Method) E/AndroidRuntime( 2608): at java.lang.BootClassLoader.findClass(ClassLoader.java:781) E/AndroidRuntime( 2608): at java.lang.BootClassLoader.loadClass(ClassLoader.java:841) E/AndroidRuntime( 2608): at java.lang.ClassLoader.loadClass(ClassLoader.java:504) E/AndroidRuntime( 2608): ... 24 more E/AndroidRuntime( 2608): Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available W/ActivityManager( 570): Force finishing activity 1 org.xwalk.runtime.client.shell/.XWalkRuntimeClientShellActivity Test Case Source Code ===================== Test Builds =========== Issue Analysis ==============

    JIRA | 1 year ago | Alex Chen
    java.lang.ClassNotFoundException: org.xwalk.core.R$string
  6. 0

    NoClassDefFoundError at StifleDetectionController

    GitHub | 1 year ago | MarcelTUC
    java.lang.NoClassDefFoundError: org/lpe/common/utils/sql/SQLStringUtils

  1. archenroot 1 times, last 2 weeks ago
  2. tyson925 5 times, last 2 weeks ago
  3. tzrlk 1 times, last 2 weeks ago
  4. musketyr 1 times, last 2 weeks ago
  5. kjhdofjosvs 3 times, last 3 weeks ago
63 more registered users
32 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassNotFoundException

    org.xwalk.core.R$string

    at java.lang.Class.classForName()
  2. Java RT
    ClassLoader.loadClass
    1. java.lang.Class.classForName(Native Method)
    2. java.lang.BootClassLoader.findClass(ClassLoader.java:781)
    3. java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
    4. java.lang.ClassLoader.loadClass(ClassLoader.java:504)
    4 frames