java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.settings/com.android.settings.SubSettings}: java.lang.IllegalArgumentException: Failed to find storage device at /storage/sdcard1

JIRA | OldNightlyBug | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Report error Informing BUG of formatting: Settings -> Back up and reset -> Factory data reset java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.settings/com.android.settings.SubSettings}: java.lang.IllegalArgumentException: Failed to find storage device at /storage/sdcard1 at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2356) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2418) at android.app.ActivityThread.access$900(ActivityThread.java:154) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1321) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5289) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699) Caused by: java.lang.IllegalArgumentException: Failed to find storage device at /storage/sdcard1 at android.os.Environment.isExternalStorageRemovable(Environment.java:831) at com.android.settings.MasterClear.establishInitialState(MasterClear.java:183) at com.android.settings.MasterClear.onCreateView(MasterClear.java:225) at android.app.Fragment.performCreateView(Fragment.java:2053) at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:894) at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1067) at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1049) at android.app.FragmentManagerImpl.dispatchActivityCreated(FragmentManager.java:1869) at android.app.Activity.performCreateCommon(Activity.java:5985) at android.app.Activity.performCreate(Activity.java:5992) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2309) ... 10 more

    JIRA | 2 years ago | OldNightlyBug
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.settings/com.android.settings.SubSettings}: java.lang.IllegalArgumentException: Failed to find storage device at /storage/sdcard1
  2. 0

    Report error Informing BUG of formatting: Settings -> Back up and reset -> Factory data reset java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.settings/com.android.settings.SubSettings}: java.lang.IllegalArgumentException: Failed to find storage device at /storage/sdcard1 at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2356) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2418) at android.app.ActivityThread.access$900(ActivityThread.java:154) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1321) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5289) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699) Caused by: java.lang.IllegalArgumentException: Failed to find storage device at /storage/sdcard1 at android.os.Environment.isExternalStorageRemovable(Environment.java:831) at com.android.settings.MasterClear.establishInitialState(MasterClear.java:183) at com.android.settings.MasterClear.onCreateView(MasterClear.java:225) at android.app.Fragment.performCreateView(Fragment.java:2053) at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:894) at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1067) at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1049) at android.app.FragmentManagerImpl.dispatchActivityCreated(FragmentManager.java:1869) at android.app.Activity.performCreateCommon(Activity.java:5985) at android.app.Activity.performCreate(Activity.java:5992) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2309) ... 10 more

    JIRA | 2 years ago | OldNightlyBug
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.settings/com.android.settings.SubSettings}: java.lang.IllegalArgumentException: Failed to find storage device at /storage/sdcard1

Root Cause Analysis

  1. java.lang.IllegalArgumentException

    Failed to find storage device at /storage/sdcard1

    at android.os.Environment.isExternalStorageRemovable()
  2. Android Platform
    Environment.isExternalStorageRemovable
    1. android.os.Environment.isExternalStorageRemovable(Environment.java:831)
    1 frame
  3. com.android.settings
    MasterClear.onCreateView
    1. com.android.settings.MasterClear.establishInitialState(MasterClear.java:183)
    2. com.android.settings.MasterClear.onCreateView(MasterClear.java:225)
    2 frames
  4. Android Platform
    ActivityThread.main
    1. android.app.Fragment.performCreateView(Fragment.java:2053)
    2. android.app.FragmentManagerImpl.moveToState(FragmentManager.java:894)
    3. android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1067)
    4. android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1049)
    5. android.app.FragmentManagerImpl.dispatchActivityCreated(FragmentManager.java:1869)
    6. android.app.Activity.performCreateCommon(Activity.java:5985)
    7. android.app.Activity.performCreate(Activity.java:5992)
    8. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
    9. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2309)
    10. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2418)
    11. android.app.ActivityThread.access$900(ActivityThread.java:154)
    12. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1321)
    13. android.os.Handler.dispatchMessage(Handler.java:102)
    14. android.os.Looper.loop(Looper.java:135)
    15. android.app.ActivityThread.main(ActivityThread.java:5289)
    15 frames
  5. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:372)
    2 frames
  6. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699)
    2 frames