java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/content/ContextCompat;

Stack Overflow | BIllJoe | 6 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Unable to launch my android apps. “Shutting down VM” Error

    Stack Overflow | 6 months ago | BIllJoe
    java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/content/ContextCompat;

    Root Cause Analysis

    1. java.lang.NoClassDefFoundError

      Failed resolution of: Landroid/support/v4/content/ContextCompat;

      at com.example.yusuf.bluetoothserver.MainActivity.requestPermission()
    2. com.example.yusuf
      MainActivity.onCreate
      1. com.example.yusuf.bluetoothserver.MainActivity.requestPermission(MainActivity.java:606)
      2. com.example.yusuf.bluetoothserver.MainActivity.onCreate(MainActivity.java:122)
      2 frames
    3. Android Platform
      ActivityThread.handleLaunchActivity
      1. android.app.Activity.performCreate(Activity.java:7125)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1108)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2415)
      4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2522)
      4 frames