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

JIRA | Ionut Movila | 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 | 3 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 | 3 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 | 6 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
      ContentView.newInstance
      1. org.chromium.content.browser.ContentViewCore.initialize(ContentViewCore.java:711)
      2. org.chromium.content.browser.ContentView.<init>(ContentView.java:107)
      3. org.chromium.content.browser.JellyBeanContentView.<init>(JellyBeanContentView.java:20)
      4. org.chromium.content.browser.ContentView.newInstance(ContentView.java:89)
      5. org.chromium.content.browser.ContentView.newInstance(ContentView.java:53)
      5 frames
    3. org.xwalk.core
      XWalkView.<init>
      1. org.xwalk.core.XWalkContent.<init>(XWalkContent.java:93)
      2. org.xwalk.core.XWalkView.initXWalkContent(XWalkView.java:83)
      3. org.xwalk.core.XWalkView.init(XWalkView.java:79)
      4. org.xwalk.core.XWalkView.<init>(XWalkView.java:41)
      4 frames
    4. org.apache.cordova
      CordovaWebView.<init>
      1. org.apache.cordova.CordovaWebView.<init>(CordovaWebView.java:144)
      1 frame
    5. no.ic.crosswalk
      TestApp.onCreate
      1. no.ic.crosswalk.test.TestApp$1.<init>(TestApp.java:37)
      2. no.ic.crosswalk.test.TestApp.onCreate(TestApp.java:37)
      2 frames