java.lang.UnsupportedOperationException: Could not create leak directory /storage/emulated/0/Download/leakcanary-app

GitHub | Draffodx | 9 months ago
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

    Could not create leak directory on Android 6.0.1

    GitHub | 9 months ago | Draffodx
    java.lang.UnsupportedOperationException: Could not create leak directory /storage/emulated/0/Download/leakcanary-app

    Root Cause Analysis

    1. java.lang.UnsupportedOperationException

      Could not create leak directory /storage/emulated/0/Download/leakcanary-app

      at com.squareup.leakcanary.DefaultLeakDirectoryProvider.leakDirectory()
    2. com.squareup.leakcanary
      DisplayLeakActivity.onResume
      1. com.squareup.leakcanary.DefaultLeakDirectoryProvider.leakDirectory(DefaultLeakDirectoryProvider.java:45)
      2. com.squareup.leakcanary.internal.DisplayLeakActivity.getLeakDirectory(DisplayLeakActivity.java:94)
      3. com.squareup.leakcanary.internal.DisplayLeakActivity$LoadLeaks.<init>(DisplayLeakActivity.java:444)
      4. com.squareup.leakcanary.internal.DisplayLeakActivity$LoadLeaks.load(DisplayLeakActivity.java:426)
      5. com.squareup.leakcanary.internal.DisplayLeakActivity.onResume(DisplayLeakActivity.java:142)
      5 frames
    3. Android Platform
      ActivityThread.handleLaunchActivity
      1. android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1258)
      2. android.app.Activity.performResume(Activity.java:6327)
      3. android.app.ActivityThread.performResumeActivity(ActivityThread.java:3092)
      4. android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3134)
      5. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2481)
      5 frames