Describe the bug
Crash when compiling with Android-R
To Reproduce
targetSdk and compileSdk to Android R (doc)./gradlew assembleExpected behavior
The build should pass
Ubuntu-latest
File /home/runner/.android/repositories.cfg could not be loaded.
Checking the license for package Android SDK Platform R in /usr/local/lib/android/sdk/licenses
License for package Android SDK Platform R accepted.
Preparing "Install Android SDK Platform R (revision: 4)".
Warning: Failed to read or create install properties file.
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:compile***Kotlin'.
> Failed to install the following SDK components:
platforms;android-R Android SDK Platform R
The SDK directory is not writable (/usr/local/lib/android/sdk)
Looks like an environment issue with the Hosted runner image, I am going to transfer the issue to the repo that manages the hosted runner setup.
Hi @vincent-paing!
Sorry for delayed response, fix is prepared and soon be delivered. In a meantime you can use sudo ./gradlew assemble as a temporary workaround.
@vincent-paing could you check the behavior, please? It is supposed to work now.
My workflow is now succeeding @miketimofeev, thank you for adding the Android SDK Platform 30.
I can also confirm my Android 30 builds work out of the box now, this issue can be closed.