Код: Выделить всё
cdxgen -t kotlin -o android-bom.json --deep
< /code>
Тогда он вызывает следующую ошибку. < /p>
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* What went wrong:
A problem occurred configuring project ':iscsdk'.
> java.lang.IllegalStateException: DefaultSdkLoader already created using /opt/homebrew/Caskroom/android-sdk/4333796; cannot also use /Users/ansible-pipeline/Library/Android/sdk. If this is a Gradle composite build, it could be that you have set "sdk.dir" to multiple values across builds. Make sure that "sdk.dir" is the same in all .properties files of the composite build
* 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.
==============================================================================
2: Task failed with an exception.
-----------
* What went wrong:
Failed to query the value of property 'buildFlowServiceProperty'.
> Could not isolate value org.jetbrains.kotlin.gradle.plugin.statistics.BuildFlowService$Parameters_Decorated@7b52280b of type BuildFlowService.Parameters
> A problem occurred configuring project ':iscsdk'.
> java.lang.IllegalStateException: DefaultSdkLoader already created using /opt/homebrew/Caskroom/android-sdk/4333796; cannot also use /Users/ansible-pipeline/Library/Android/sdk. If this is a Gradle composite build, it could be that you have set "sdk.dir" to multiple values across builds. Make sure that "sdk.dir" is the same in all .properties files of the composite build
* 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 488ms
1. Check if the correct version of java and gradle are installed and available in PATH. For example, some project might require Java 11 with gradle 7.
cdxgen container image bundles Java 23 with gradle 8 which might be incompatible.
2. Try running cdxgen with the custom JDK11-based image `ghcr.io/cyclonedx/cdxgen-java11:v11`.
Executing gradle --build-cache --console plain --no-parallel dependencies in .
No packages found. Set the environment variable 'CDXGEN_DEBUG_MODE=debug' to troubleshoot any gradle related errors.
About to identify class names for all jars in the path /Users/ansible-pipeline/.gradle/caches/modules-2/files-2.1
< /code>
Жаловается, что [b]DefaultSdkLoader./sdkmanager "platform-tools" "platforms;android-34" --sdk_root=/Users/ansible-pipeline/Library/Android/sdk
< /code>
, когда я запускаю команду < /p>
cdxgen -t kotlin -o android-bom.json --deep
< /code>
Опять же, приведенная выше ошибка происходит. < /p>
Вот некоторая информация, которая может быть полезно. /> [*] Неправильный путь (/opt/homebrew/caskroom/android-sdk/4333796) больше не существует.
[*] Установите местоположение Android SDK от Android Studio:/users/ansible-pipeline/librade/android/sdk
Подробнее здесь: https://stackoverflow.com/questions/794 ... androidsdk
Мобильная версия