gradle-spoon-plugin
gradle-spoon-plugin copied to clipboard
[STRL.testFailed] failed java.lang.RuntimeException: Unable to create output dir: /storage/emulated/0/app_spoon-screenshots
I have provided permissions in my Manifest file and have granted it as well on my test class
@Rule public GrantPermissionRule mRuntimePermissionRule = GrantPermissionRule.grant( Manifest.permission.WRITE_EXTERNAL_STORAGE, Manifest.permission.READ_EXTERNAL_STORAGE );
But still getting error
[STRL.testFailed] failed java.lang.RuntimeException: Unable to create output dir: /storage/emulated/0/app_spoon-screenshots at com.squareup.spoon.SpoonRule.createDir(SpoonRule.java:167) at com.squareup.spoon.SpoonRule.createDir(SpoonRule.java:164) at com.squareup.spoon.SpoonRule.createDir(SpoonRule.java:164) at com.squareup.spoon.SpoonRule.obtainDirectory(SpoonRule.java:108) at com.squareup.spoon.SpoonRule.screenshot(SpoonRule.java:66) at com.jraska.falcon.FalconSpoonRule.screenshot(FalconSpoonRule.java:39)
What's the possible solution for this?