

























Any clues on the following errors?
error: failed to commit transaction (conflicting files)
android-sdk-cmdline-tools-latest: /opt/android-sdk/cmdline-tools/latest/bin/d8 exists in filesystem
android-sdk-cmdline-tools-latest: /opt/android-sdk/cmdline-tools/latest/bin/r8 exists in filesystem
android-sdk-cmdline-tools-latest: /opt/android-sdk/cmdline-tools/latest/lib/d8-classpath.jar exists in filesystem
android-sdk-cmdline-tools-latest: /opt/android-sdk/cmdline-tools/latest/lib/external/org/bouncycastle/bcpkix-jdk18on/1.77/bcpkix-jdk18on-1.77.jar exists in filesystem
android-sdk-cmdline-tools-latest: /opt/android-sdk/cmdline-tools/latest/lib/external/org/bouncycastle/bcprov-jdk18on/1.77/bcprov-jdk18on-1.77.jar exists in filesystem
android-sdk-cmdline-tools-latest: /opt/android-sdk/cmdline-tools/latest/lib/external/org/bouncycastle/bcutil-jdk18on/1.77/bcutil-jdk18on-1.77.jar exists in filesystem
android-sdk-cmdline-tools-latest: /opt/android-sdk/cmdline-tools/latest/lib/r8-classpath.jar exists in filesystem
Errors occurred, no packages were upgraded.
Did I probably updated through android-studio before AUR update? Not sure if it was a mistake on my side.
Does this really need java-environment to be used? Is java-runtime not sufficing?
Regards!
@Jal-JAP package.xml location should be fixed now.
Also for the errors about /opt/android-sdk being not writeable, it can be fixed by
chmod g+w /opt/android-sdk chown root:users /opt/android-sdk sdkmanager gives the following warning currently.
Warning: Observed package id 'cmdline-tools;latest' in inconsistent location '/opt/android-sdk/cmdline-tools' (Expected '/opt/android-sdk/cmdline-tools/latest')
Warning: Observed package id 'cmdline-tools;latest' in inconsistent location '/opt/android-sdk/cmdline-tools' (Expected '/opt/android-sdk/cmdline-tools/latest')
this can be fixed by simply moving package.xml from /opt/android-sdk/cmdline-tools to /opt/android-sdk/cmdline-tools/latest
Please fix this to remove this ugly warning
IntelliJ doesn't like this package because of
Failed to install the following SDK components:
platforms;android-31 Android SDK Platform 31
build-tools;33.0.1 Android SDK Build-Tools 33.0.1
The SDK directory is not writable (/opt/android-sdk)
Nitpick: Why the -latest part in the name? android-sdk-cmdline-tools seems like it would be adequate, especially since none of the related packages (android-sdk-build-tools, android-sdk-platform-tools, or android-emulator) use the -latest convention.
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。
Regarding the comment - https://aur.archlinux.org/packages/android-sdk-cmdline-tools-latest#comment-995433
To fix this, just go into Android Studio, Gear Icon > SDK Manager. And then, under the
SDK Toolstab, uninstall the Android SDK Command Line Tools by unchecking it and hitting apply. That's what I had to do to fix updating the AUR package properly. :) You can then update after closing Android Studio. Hope this helps others!