gpt4 book ai didi

java - 无法建立 ionic

转载 作者:行者123 更新时间:2023-12-03 06:33:15 24 4
gpt4 key购买 nike

sudo cordova run android (Used for making android build)

但是每次我遇到以下错误

检测到Android Studio项目
ANDROID_HOME = / usr / lib / android-sdk
JAVA_HOME = / usr / lib / jvm / java-8-openjdk-amd64
工作室
子项目路径:CordovaLib
子项目路径:app
publishNonDefault已弃用,不再起作用。所有变体现已发布。
警告:指定的Android SDK Build Tools版本(23.0.2)被忽略,因为它低于Android Gradle Plugin 3.0.1的最低支持版本(26.0.2)。
将使用Android SDK Build Tools 26.0.2。
要取消显示此警告,请从build.gradle文件中删除“buildToolsVersion '23 .0.2'”,因为每个版本的Android Gradle插件现在都具有默认版本的构建工具。
在/ usr / lib / android-sdk / licenses中检查软件包Android SDK Build-Tools 26.0.2的许可证
警告:不接受Android SDK Build-Tools 26.0.2软件包的许可证。
在/ usr / lib / android-sdk / licenses中检查Android SDK Platform 27软件包的许可证
警告:不接受Android SDK Platform 27软件包的许可证。

失败:生成失败,发生异常。
  • 出了什么问题:
    配置项目':CordovaLib'时发生问题。

    You have not accepted the license agreements of the following SDK components: [Android SDK Platform 27, Android SDK Build-Tools 26.0.2]. 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选项运行,以获取更多日志输出。
  • https://help.gradle.org上获得更多帮助

  • 4秒内失败
    / home / user / projectname / myNewProject / platforms / android / gradlew:命令失败,退出代码为1错误输出:
    失败:生成失败,发生异常。
  • 出了什么问题:
    配置项目':CordovaLib'时发生问题。

    You have not accepted the license agreements of the following SDK components: [Android SDK Platform 27, Android SDK Build-Tools 26.0.2]. 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选项运行,以获取更多日志输出。
  • https://help.gradle.org上获得更多帮助

  • 4秒内失败

    尝试了许多事情并访问了许多站点,但没有一个对我有用。
    如果你认识家伙,请告诉我
    提前致谢!

    最佳答案

    异常消息有您的答案。该消息表明您正在使用Android Gradle插件3.0.1,它需要Android SDK Build Tools 26.0.2,但安装的版本是23.0.2。更新SDK,然后重试。

    要更新,请遵循here指示。

    关于java - 无法建立 ionic ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53481502/

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