java.lang.NoClassDefFoundError: com.example.AndroidLib.R$layout

Xamarin Bugzilla | brendan.zagaeski | 2 years ago
  1. 0

    Capital letters in Java package names cause java.lang.NoClassDefFoundError for resources

    Xamarin Bugzilla | 2 years ago | brendan.zagaeski
    java.lang.NoClassDefFoundError: com.example.AndroidLib.R$layout
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Android - GreenDroid and googleapis

    Stack Overflow | 4 years ago | Sampath Kumar
    java.lang.NoClassDefFoundError: com.cyrilmottier.android.greendroid.R$layout
  4. 0

    java.lang.NoClassDefFoundError: com.facebook.android.R$layout

    GitHub | 3 years ago | somentelucas
    java.lang.NoClassDefFoundError: com.facebook.android.R$layout

    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

      com.example.AndroidLib.R$layout

      at com.example.AndroidLib.MyLayout.<init>()
    2. com.example.AndroidLib
      MyLayout.<init>
      1. com.example.AndroidLib.MyLayout.<init>(MyLayout.java:14)
      1 frame
    3. xamarinapp
      MainActivity.onCreate
      1. xamarinapp.MainActivity.n_onCreate(Native Method)
      2. xamarinapp.MainActivity.onCreate(MainActivity.java:28)
      2 frames
    4. Android Platform
      ActivityThread.main
      1. android.app.Activity.performCreate(Activity.java:5244)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1082)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2034)
      4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2095)
      5. android.app.ActivityThread.access$600(ActivityThread.java:135)
      6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1201)
      7. android.os.Handler.dispatchMessage(Handler.java:99)
      8. android.os.Looper.loop(Looper.java:137)
      9. android.app.ActivityThread.main(ActivityThread.java:4849)
      9 frames
    5. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:511)
      2 frames
    6. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:795)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:562)
      2 frames
    7. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame