草庐IT

android - ionic 构建错误 : You have not accepted the license agreements of the following SDK components: [Android SDK Platform 24]

coder 2023-06-05 原文

我正在尝试运行命令 ionic build android --release 来构建 apk,但我收到此错误

Total time: 1.767 secs Error: cmd: Command failed with exit code 1 Error output: FAILURE: Build failed with an exception.

  • What went wrong: A problem occurred configuring root project 'android'.

    You have not accepted the license agreements of the following SDK components: [Android SDK Platform 24]. 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

  • 尝试:使用 --stacktrace 选项运行以获取堆栈跟踪。使用 --info 或 --debug 选项运行以获得更多日志输出。拿起_JAVA_OPTIONS:-Xmx512M

最佳答案

安装许可证:

mkdir "%ANDROID_HOME%\licenses"

echo |set /p="8933bad161af4178b1185d1a37fbf41ea5269c55" > "%ANDROID_HOME%\licenses\android-sdk-license"

关于android - ionic 构建错误 : You have not accepted the license agreements of the following SDK components: [Android SDK Platform 24],我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40392345/

有关android - ionic 构建错误 : You have not accepted the license agreements of the following SDK components: [Android SDK Platform 24]的更多相关文章

随机推荐