Gradle问题,在我构建到Android之后,[ionic]
尝试: 使用-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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有同样的问题。
我将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.