Dear Maintainer,
I'm trying to compile an Android project on asahi Linux. Build fails
because of licences:
```
./gradlew assemble debug
Observed package id 'build-tools;29.0.3' in inconsistent location '/usr/lib/android-sdk/build-tools/debian' (Expected '/usr/lib/android-sdk/build-tools/29.0.3')
Already observed package id 'build-tools;29.0.3' in '/usr/lib/android-sdk/build-tools/29.0.3'. Skipping duplicate at '/usr/lib/android-sdk/build-tools/debian'
Warning: Observed package id 'build-tools;29.0.3' in inconsistent location '/usr/lib/android-sdk/build-tools/debian' (Expected '/usr/lib/android-sdk/build-tools/29.0.3')
Warning: Already observed package id 'build-tools;29.0.3' in '/usr/lib/android-sdk/build-tools/29.0.3'. Skipping duplicate at '/usr/lib/android-sdk/build-tools/debian'
Warning: Observed package id 'build-tools;29.0.3' in inconsistent location '/usr/lib/android-sdk/build-tools/debian' (Expected '/usr/lib/android-sdk/build-tools/29.0.3')
Warning: Already observed package id 'build-tools;29.0.3' in '/usr/lib/android-sdk/build-tools/29.0.3'. Skipping duplicate at '/usr/lib/android-sdk/build-tools/debian'
Warning: Errors during XML parse:
Warning: Additionally, the fallback loader failed to parse the XML.
Checking the license for package NDK (Side by side) 25.2.9519653 in /usr/lib/android-sdk/licenses
Warning: License for package NDK (Side by side) 25.2.9519653 not accepted.
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':secrets'.
ndk;25.2.9519653 NDK (Side by side) 25.2.9519653
To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager.
All licenses can be accepted using the sdkmanager command line tool:
sdkmanager.bat --licenses
Or, to transfer the license agreements from one workstation to another, see https://developer.android.com/studio/intro/update.html#download-with-gradle
Using Android SDK: /usr/lib/android-sdk
* Try:
```
Trying to accept licences as the use fails:
```
sdkmanager --licenses
Downloading https://raw.githubusercontent.com/f-droid/android-sdk-transparency-log/master/signed/checksums.json.asc into /home/xav/.cache/sdkmanager/checksums.json.asc
5 of 6 SDK package licenses not accepted.
Review licenses that have not been accepted (y/N)? y
Traceback (most recent call last):
File "/usr/bin/sdkmanager", line 33, in <module>
sys.exit(load_entry_point('sdkmanager==0.6.10', 'console_scripts', 'sdkmanager')())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/sdkmanager.py", line 1240, in main
method()
File "/usr/lib/python3/dist-packages/sdkmanager.py", line 1011, in licenses
with (licenses_dir / license_file).open('w') as fp:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/pathlib.py", line 1015, in open
return io.open(self, mode, buffering, encoding, errors, newline)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: '/usr/lib/android-sdk/licenses/android-sdk-preview-license-old'
```
Doing it with sudo seems to do nothing.
TBH I don't know if I'm handling it wrong or if there's a real problem with the package.
Regards,
Xav