Package: android-sdk Version: 28.0.2+10+nmu1 Severity: important Dear Maintainer,
I'm trying to compile an Android project on asahi Linux. Build fails because of licences: ``` ./gradlew assemble debug > Configure project :secrets 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'. > com.android.builder.sdk.LicenceNotAcceptedException: Failed to install the > following Android SDK packages as some licences have not been accepted. 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: > Run with --stacktrace option to get the stack trace. > Run with --info or --debug option to get more log output. > Run with --scan to get full insights. > Get more help at https://help.gradle.org. BUILD FAILED in 1s ``` 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 -- System Information: Debian Release: trixie/sid APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: arm64 (aarch64) Kernel: Linux 6.11.6-asahi-2-cy8aer0 (SMP w/10 CPU threads) Kernel taint flags: TAINT_CPU_OUT_OF_SPEC Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages android-sdk depends on: ii android-sdk-build-tools 29.0.3+10+nmu1 ii android-sdk-common 28.0.2+10+nmu1 ii android-sdk-platform-tools 28.0.2+10+nmu1 ii proguard-cli 6.2.2-3 Versions of packages android-sdk recommends: ii default-jdk-headless 2:1.21-76 ii gradle 4.4.1-20 Versions of packages android-sdk suggests: pn android-sdk-platform-23 <none> pn maven <none> pn proguard-gui <none> -- no debconf information