java.lang.NoSuchMethodError: No virtual method setDefaultDisplayHomeAsUpEnabled(Z)V in class Landroid/support/v7/app/ActionBar; or its super classes (declaration of 'android.support.v7.app.ActionBar' appears in /data/app/de.ErikZerbian.shiny-2/base.apk)

tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    No virtual method setDefaultDisplayHomeAsUpEnabled. What can I do?

    Stack Overflow | 6 months ago | Erik ShinyHunter
    java.lang.NoSuchMethodError: No virtual method setDefaultDisplayHomeAsUpEnabled(Z)V in class Landroid/support/v7/app/ActionBar; or its super classes (declaration of 'android.support.v7.app.ActionBar' appears in /data/app/de.ErikZerbian.shiny-2/base.apk)

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      No virtual method setDefaultDisplayHomeAsUpEnabled(Z)V in class Landroid/support/v7/app/ActionBar; or its super classes (declaration of 'android.support.v7.app.ActionBar' appears in /data/app/de.ErikZerbian.shiny-2/base.apk)

      at android.support.v7.app.AppCompatDelegateImplV7.initWindowDecorActionBar()
    2. Android v7
      AppCompatActivity.onPostResume
      1. android.support.v7.app.AppCompatDelegateImplV7.initWindowDecorActionBar(AppCompatDelegateImplV7.java:185)
      2. android.support.v7.app.AppCompatDelegateImplBase.getSupportActionBar(AppCompatDelegateImplBase.java:100)
      3. android.support.v7.app.AppCompatDelegateImplV7.onPostResume(AppCompatDelegateImplV7.java:260)
      4. android.support.v7.app.AppCompatActivity.onPostResume(AppCompatActivity.java:179)
      4 frames
    3. Android Platform
      ActivityThread.main
      1. android.app.Activity.performResume(Activity.java:6408)
      2. android.app.ActivityThread.performResumeActivity(ActivityThread.java:3299)
      3. android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3345)
      4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2659)
      5. android.app.ActivityThread.access$900(ActivityThread.java:175)
      6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1488)
      7. android.os.Handler.dispatchMessage(Handler.java:111)
      8. android.os.Looper.loop(Looper.java:207)
      9. android.app.ActivityThread.main(ActivityThread.java:5728)
      9 frames
    4. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    5. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:679)
      2 frames