Virtual-environments: Android workflow crash for Android 11

Created on 6 Jun 2020  路  5Comments  路  Source: actions/virtual-environments

Describe the bug
Crash when compiling with Android-R

To Reproduce

  1. Setup An android project
  2. Change your targetSdk and compileSdk to Android R (doc)
  3. In workflow, set runner to ubuntu-latest
  4. Compile the app with ./gradlew assemble

Expected behavior
The build should pass

Runner Version and Platform

Ubuntu-latest

Job Log Output

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)
Ubuntu awaiting-deployment bug

All 5 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zackijack picture zackijack  路  3Comments

ethomson picture ethomson  路  4Comments

ydnar picture ydnar  路  3Comments

MSP-Greg picture MSP-Greg  路  3Comments

damccorm picture damccorm  路  3Comments