gpt4 book ai didi

Android 项目缺少 CMake 许可证

转载 作者:行者123 更新时间:2023-11-29 17:09:22 25 4
gpt4 key购买 nike

我已经通过命令行在我的 CI 机器上安装了以下 SDK 组件:

  • tools_r25.2.3-macosx
  • android-ndk-r13b-darwin-x86_64
  • 平台工具、工具、extra-google-m2repository、extra-google-google_play_services、extra-android-m2repository、extra-android-support、build-tools-25.0.1、android-25

我还将许可证从我的开发机器复制到 /Users/Shared/Jenkins/Home/jobs/My_App_Android_Gradle/workspace/android-sdk-macosx/licenses

但是,当我尝试构建我的 NDK 项目时,出现此错误:

Checking the license for package CMake 3.6.3155560 in /Users/Shared/Jenkins/Home/jobs/My_App_Android_Gradle/workspace/android-sdk-macosx/licenses

Warning: License for package CMake 3.6.3155560 not accepted. FAILURE: Build failed with an exception.

  • What went wrong: A problem occurred configuring project ':app'. Could not resolve all dependencies for configuration ':app:_ProductionDebugApk'. A problem occurred configuring project ':jni-code'. You have not accepted the license agreements of the following SDK components: [CMake 3.6.3155560]. Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager.

Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html

这个错误对我来说意义不大,而且上面的链接已经过时了。此外,/android-sdk-macos/license 目录中没有 CMake 的许可证。那么我可以从哪里获得 CMake 许可证呢?

最佳答案

我遇到了同样的问题,我通过直接安装 CMake 解决了这个问题(我无法将许可证从 Windows 转移到 UNIX 构建机器)。

这是使用 sdkmanager 安装的命令:

sdkmanager "cmake;3.6.3155560"

通过以下方式获取可用包的列表:

sdkmanager --list

关于Android 项目缺少 CMake 许可证,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40872219/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com