java.lang.NoClassDefFoundError: org.chromium.content.R$string

GitHub | phildo77 | 3 years ago
  1. 0

    I tried to build a Cordova+XWalk project using IntelliJ 12.1.7 on MAC OS X 10.9.2 using Android Platform 4.4.2 and java 1.6.0.65. After I created modules for both Cordova and Xwalk and added dependencies to main project from these modules (android library projects) it does compile fine but when running I get this error: {code} 06-05 15:34:42.476: ERROR/AndroidRuntime(837): FATAL EXCEPTION: main java.lang.NoClassDefFoundError: org.chromium.content.R$string at org.chromium.content.browser.ContentViewCore.initialize(ContentViewCore.java:711) at org.chromium.content.browser.ContentView.<init>(ContentView.java:107) at org.chromium.content.browser.JellyBeanContentView.<init>(JellyBeanContentView.java:20) at org.chromium.content.browser.ContentView.newInstance(ContentView.java:89) at org.chromium.content.browser.ContentView.newInstance(ContentView.java:53) at org.xwalk.core.XWalkContent.<init>(XWalkContent.java:93) at org.xwalk.core.XWalkView.initXWalkContent(XWalkView.java:83) at org.xwalk.core.XWalkView.init(XWalkView.java:79) at org.xwalk.core.XWalkView.<init>(XWalkView.java:41) at org.apache.cordova.CordovaWebView.<init>(CordovaWebView.java:144) at no.ic.crosswalk.test.TestApp$1.<init>(TestApp.java:37) at no.ic.crosswalk.test.TestApp.onCreate(TestApp.java:37) {code} I was able to get rid of the error by removing the mentioned class and changing imports where it was used to point to the R file from org.xwalk.core.R that is generated at compile time from XML res files and those xml files have everything what was inside original org.chromium.content.R Maybe I'm missing something because I'm new to crosswalk. I also see the class XWalkInternalResources with method doResetIds that looks like it's doing some processing with the same file.

    JIRA | 2 years ago | Ionut Movila
    java.lang.NoClassDefFoundError: org.chromium.content.R$string
  2. 0

    I tried to build a Cordova+XWalk project using IntelliJ 12.1.7 on MAC OS X 10.9.2 using Android Platform 4.4.2 and java 1.6.0.65. After I created modules for both Cordova and Xwalk and added dependencies to main project from these modules (android library projects) it does compile fine but when running I get this error: {code} 06-05 15:34:42.476: ERROR/AndroidRuntime(837): FATAL EXCEPTION: main java.lang.NoClassDefFoundError: org.chromium.content.R$string at org.chromium.content.browser.ContentViewCore.initialize(ContentViewCore.java:711) at org.chromium.content.browser.ContentView.<init>(ContentView.java:107) at org.chromium.content.browser.JellyBeanContentView.<init>(JellyBeanContentView.java:20) at org.chromium.content.browser.ContentView.newInstance(ContentView.java:89) at org.chromium.content.browser.ContentView.newInstance(ContentView.java:53) at org.xwalk.core.XWalkContent.<init>(XWalkContent.java:93) at org.xwalk.core.XWalkView.initXWalkContent(XWalkView.java:83) at org.xwalk.core.XWalkView.init(XWalkView.java:79) at org.xwalk.core.XWalkView.<init>(XWalkView.java:41) at org.apache.cordova.CordovaWebView.<init>(CordovaWebView.java:144) at no.ic.crosswalk.test.TestApp$1.<init>(TestApp.java:37) at no.ic.crosswalk.test.TestApp.onCreate(TestApp.java:37) {code} I was able to get rid of the error by removing the mentioned class and changing imports where it was used to point to the R file from org.xwalk.core.R that is generated at compile time from XML res files and those xml files have everything what was inside original org.chromium.content.R Maybe I'm missing something because I'm new to crosswalk. I also see the class XWalkInternalResources with method doResetIds that looks like it's doing some processing with the same file.

    JIRA | 2 years ago | Ionut Movila
    java.lang.NoClassDefFoundError: org.chromium.content.R$string
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Porting Websphere Application Server MBeans for distributed platforms to z/OS

    ibm.com | 5 months ago
    java.lang.NoClassDefFoundError: String

    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.NoClassDefFoundError

      org.chromium.content.R$string

      at org.chromium.content.browser.ContentViewCore.initialize()
    2. org.chromium.content
      ContentViewCore.initialize
      1. org.chromium.content.browser.ContentViewCore.initialize(ContentViewCore.java:661)
      1 frame
    3. org.chromium.android_webview
      AwContents.<init>
      1. org.chromium.android_webview.AwContents.createAndInitializeContentViewCore(AwContents.java:334)
      2. org.chromium.android_webview.AwContents.<init>(AwContents.java:369)
      3. org.chromium.android_webview.AwContents.<init>(AwContents.java:322)
      3 frames
    4. us.costan.chrome
      ChromeView.<init>
      1. us.costan.chrome.ChromeView.<init>(ChromeView.java:90)
      2. us.costan.chrome.ChromeView.<init>(ChromeView.java:62)
      2 frames
    5. net.hidden.hidden
      MainActivity.onCreate
      1. net.hidden.hidden.MainActivity.initUI(MainActivity.java:244)
      2. net.hidden.hidden.MainActivity.onCreate(MainActivity.java:131)
      2 frames
    6. Android Platform
      ActivityThread.main
      1. android.app.Activity.performCreate(Activity.java:5372)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1104)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2267)
      4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2359)
      5. android.app.ActivityThread.access$700(ActivityThread.java:165)
      6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1326)
      7. android.os.Handler.dispatchMessage(Handler.java:99)
      8. android.os.Looper.loop(Looper.java:137)
      9. android.app.ActivityThread.main(ActivityThread.java:5455)
      9 frames
    7. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:525)
      2 frames
    8. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1187)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
      2 frames
    9. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame