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
  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
  3. 0

    华为荣耀6在选中图片,点击确定后出现bug

    GitHub | 3 months ago | zhuzhaolin
    java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=66544, result=-1, data=Intent { (has extras) }} to activity {com.jph.simple/com.jph.simple.SimpleFragmentActivity}: java.lang.reflect.UndeclaredThrowableException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    When I long press on a file which is on the external sd card, the cm filemanager app immediately crashes (when selecting multiple files from the sd card and then pressing the overflow menu it says "An error was detected. The operation was unsuccessful."). I've set the last known good to 4.12.16 because this hasn't worked right from the start. The following error message pops up: java.lang.IllegalArgumentException: Failed to find configured root that contains /storage/70CA-AD8F/TWRP/gapps-config.txt at android.support.v4.content.FileProvider$SimplePathStrategy.getUriForFile(FileProvider.java:711) at android.support.v4.content.FileProvider.getUriForFile(FileProvider.java:400) at com.cyanogenmod.filemanager.ui.policy.IntentsActionPolicy.getUriFromFile(IntentsActionPolicy.java:670) at com.cyanogenmod.filemanager.ui.policy.IntentsActionPolicy.getFsoSendIntent(IntentsActionPolicy.java:221) at com.cyanogenmod.filemanager.ui.policy.IntentsActionPolicy.getFsoSendIntent(IntentsActionPolicy.java:193) at com.cyanogenmod.filemanager.ui.policy.IntentsActionPolicy.sendHandledByAnyActivity(IntentsActionPolicy.java:185) at com.cyanogenmod.filemanager.ui.dialogs.ActionsDialog.configureMenu(ActionsDialog.java:666) at com.cyanogenmod.filemanager.ui.dialogs.ActionsDialog.show(ActionsDialog.java:197) at com.cyanogenmod.filemanager.activities.NavigationActivity.openActionsDialog(NavigationActivity.java:2711) at com.cyanogenmod.filemanager.activities.NavigationActivity.onRequestMenu(NavigationActivity.java:2350) at com.cyanogenmod.filemanager.ui.widgets.NavigationView.onRequestMenu(NavigationView.java:1358) at com.cyanogenmod.filemanager.ui.widgets.NavigationView.onItemLongClick(NavigationView.java:1205) at android.widget.AbsListView.performLongPress(AbsListView.java:3238) at android.widget.AbsListView$CheckForLongPress.run(AbsListView.java:3155) at android.os.Handler.handleCallback(Handler.java:751) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6126) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)

    JIRA | 1 month ago | Sebastian Haderecker
    java.lang.IllegalArgumentException: Failed to find configured root that contains /storage/70CA-AD8F/TWRP/gapps-config.txt
  6. 0

    how to set FileProvider for file in External Cache dir

    Stack Overflow | 1 year ago | Qi Xingchen
    java.lang.IllegalArgumentException: Failed to find configured root that contains /storage/emulated/0/Android/data/com.tizi.quanzi/cache/image/o9xygODHtdP6HXqsuUZghVCsBKTtY4FJgO1MpnmX.jpg
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.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