Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[STRL.testFailed] failed java.lang.RuntimeException: Unable to create output dir: /storage/emulated/0/app_spoon-screenshots #125

Open
shanays opened this issue Jan 5, 2023 · 0 comments

Comments

@shanays
Copy link

shanays commented Jan 5, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant