-
Notifications
You must be signed in to change notification settings - Fork 319
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
Exception with using TestStorage
#1141
Comments
Are you installing the apks with --force-queryable ? |
ah! No, was installing via shell scripts that didn't include that, but just found your comment about that. but even with |
Compose has a Could be useful if |
My understanding is should not be necessary if the services apk is installed with --force-queryable. 'No parent directory' might be a separate problem? @adazh |
The "No parent directory" error looks like the test storage failed to create the folder on the device, likely due to permission issues. Can you try granting the "MANAGE_EXTERNAL_STORAGE" permission to the androidx.test services via: |
AGP runs
|
Ada, Yuki and I chatted offline. I was able to repro this problem, but resolved it via the config Yuki gives above and using Studio bumblebee canary 13 + com.android.tools.build:gradle:7.1.0-alpha13 |
Thanks for all the info. :) This worked on API 30, 31 emulators:
but on API 26, I got this:
but
Closing this, but opened this to add docs: https://issuetracker.google.com/issues/201652738 |
I'm facing the same problem on API 29 and is really confused. And I solved it by this command |
@ZSmallX it should also work if you have the |
I have
test-services-1.4.1-alpha02.apk
installed for all the experiments below,and from
adb shell pm dump androidx.test.services
looks like theTestOutputFilesContentProvider
is installed with authorityandroidx.test.services.storage.outputfiles
.But I get the errors listed below.
(I copied the impl of
writeToTestStorage
into my test to work around #1139)I think you need to add this to the manifest of the
TestStorage
artifact, to support targetSdk 30, 31On API 26 emulator with I get
No parent directory
(Same on API 31 device with targetSdk 28) ( or if I add the<queries>
block with targetSdk 30, 31)On API 31 device with targetSdk 31, I get this different error: (this is solved by adding the
<queries>
block)The text was updated successfully, but these errors were encountered: