Skip to content

Commit 25657f1

Browse files
committed
Document accepting licenses for Android builds within makechrootpkg
1 parent bebf554 commit 25657f1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,16 @@ adb install "$BUILD_DIR/passwordmanager/arch-android-arm64-v8a/android-build//bu
314314

315315
---
316316

317+
If you run into an error because licenses are not accepted, you can accept them as described on
318+
[the official documentation](https://developer.android.com/studio/intro/update.html#download-with-gradle)
319+
via `sdkmanager --licenses`. To make the accepted licenses available in builds via `makechrootpkg`, do
320+
the copying as mentioned in step three of the documentation, e.g. a call like this:
321+
```
322+
sudo rsync -aHP --mkpath /opt/android-sdk/licenses/ "$PATH_CHROOT"/arch-x86_64/root/opt/android-sdk/licenses/
323+
```
324+
325+
---
326+
317327
To use a container, you can create a suitable image using the `imgbuild` script from the PKGBUILDs repo, see
318328
its [README](https://github.com/Martchus/PKGBUILDs/blob/master/README.md#container-image-building-packages-within-a-container).
319329

0 commit comments

Comments
 (0)