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

Using GitHub Codespaces for documentation writing does not work due to: "The SDK directory is not writable (/opt/android)" error #2614

Closed
vorburger opened this issue Jul 10, 2024 · 7 comments · Fixed by akhildevelops/devcontainer-features#8 or #2640
Assignees

Comments

@vorburger
Copy link
Member

vorburger commented Jul 10, 2024

@jingtang10 raised that following https://google.github.io/android-fhir/contrib/docs/ doesn't entirely work for him, and causes the following error, when used from a GitHub Codespace:

Build file '/workspaces/android-fhir/workflow/benchmark/build.gradle.kts' line: 3
What went wrong:
An exception occurred applying plugin request [id: 'androidx.benchmark']
> Failed to apply plugin 'androidx.benchmark'.
   > Could not create task ':lockClocks'.
      > Failed to install the following SDK components:
            build-tools;33.0.1 Android SDK Build-Tools 33.0.1
        The SDK directory is not writable (/opt/android)

I'll figure out what's causing that.

@vorburger
Copy link
Member Author

This error actually sounds vaguely familiar... I think I had also run into this - but I forgot the why, and how I had solved this.

@vorburger
Copy link
Member Author

Oh! Right, so I had meant to one day contribute a fix for akhildevelops/devcontainer-features#7 - but never got around to it, yet. Will do, when I have a moment. If anyone else reading this wants to get to that before me, please do (and comment here); I don't mind at all!

@vorburger
Copy link
Member Author

@jingtang10 FYI you can temporarily work around this with sudo chown -R vscode:vscode /opt/android/.

@vorburger
Copy link
Member Author

@jingtang10 I've just created a new Codespace, and with the merge of akhildevelops/devcontainer-features#8, this problem has now been fixed. Anyone should now be able to easily and conveniently work on docs following https://google.github.io/android-fhir/contrib/docs/ (with the pipenv install which was missing that I'm adding in #2315).

@github-project-automation github-project-automation bot moved this from New to Complete in Android FHIR SDK Jul 12, 2024
@jingtang10
Copy link
Collaborator

Love this. Thanks Michael!!!

@vorburger
Copy link
Member Author

Actually, no hang on... while following https://google.github.io/android-fhir/contrib/docs/ does work (the Python mkdocs and all), running e.g. ./build-docs.bash STILL fails with this same problem; I'll look more closely into why now...

@vorburger vorburger reopened this Jul 12, 2024
@github-project-automation github-project-automation bot moved this from Complete to New in Android FHIR SDK Jul 12, 2024
@vorburger
Copy link
Member Author

akhildevelops/devcontainer-features#9 is still needed for this to really be fixed...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Complete
2 participants