栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Java

ExecException of Gradle build Release Apk at jdk1.8.0

Java 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

ExecException of Gradle build Release Apk at jdk1.8.0

        某日, 上班后发现,项目Debug环境可以正常运行, 在构建Release发布包的时候出现以下报错:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app_mobilecare:transformClassesWithDesugarForRelease'.
> com.android.build.api.transform.TransformException: org.gradle.process.internal.ExecException: A problem occurred starting process 'command 'D:Program FilesJavajdk1.8.0_77binjava.exe''

* 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 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.4.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 2m 45s
1065 actionable tasks: 952 executed, 113 up-to-date
12:14:36: Task execution finished 'assembleRelease'.

解决方案:项目在电脑上的代码目录层级太深, 减少层级即可。

排错指令:gradlew assembleRelease --stacktrace --info

参考链接:CreateProcess error=206, 文件名或扩展名太长的问题 - 简书

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/685712.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号