Gradle问题,在我构建到Android之后,[ionic]

发布于 2025-02-12 19:14:56 字数 886 浏览 0 评论 0原文

  • 尝试: 使用-StackTrace选项运行以获取堆栈跟踪。使用-Info或 - debug选项运行,以获取更多日志输出。运行 - 扫描以获得完整的见解。

您可以使用“全部” - “全部模式”来显示单个折旧警告,并确定它们是否来自您自己的脚本或插件。

请参阅 https://docs.gradle.org/7.1.1/userguide/command_line_interface.html#sec:command_line_warnings

构建在2s中失败 命令因出口代码1:c:\ user \ user \ downloads \ ionicfix \ ioniclastest \ platforms \ android \ android \ gradlew cdvbuilddebug -b c:\ user \ user \ user \ user \ user \ ionicicfix \ ioniclastest \ ioniclastest \ ioniclastest \ indrod. [错误]在运行子过程Cordova时发生了错误。

    cordova.cmd build android exited with exit code 1.

    Re-running this command with the --verbose flag may provide more information.
  • 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

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.1.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 2s
Command failed with exit code 1: C:\Users\User\Downloads\ionicfix\ioniclastest\platforms\android\gradlew cdvBuildDebug -b C:\Users\User\Downloads\ionicfix\ioniclastest\platforms\android\build.gradle
[ERROR] An error occurred while running subprocess cordova.

    cordova.cmd build android exited with exit code 1.

    Re-running this command with the --verbose flag may provide more information.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

春风十里 2025-02-19 19:14:56

有同样的问题。
我将Gradle更改为7.0.3(也许与7.1.1一起使用),以及Android Studio中的Gradle JDK(首选项... - > build,excution,exployment,deployment-> build build Tools - > gradle)to版本11。
有时,您必须从VSCODE重新加载Android Studio才能使其正常工作。

Had the same problem..
I changed the gradle to 7.0.3 (maybe it works with 7.1.1) and also the gradle JDK in Android Studio (Preferences... -> Build, Execution, Deployment -> Build Tools -> Gradle) to version 11.
Sometimes you have to reload Android Studio from VSCode to get it work.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文