Execution failed for task ‘:bootRepackage‘. > Unable to find main class
1、错误:
执行gradle bootRepackage报class错误;
* What went wrong:
Execution failed for task ':bootRepackage'.
> Unable to find main class* Try:
Run with --stacktrace option to get the stack trace.
Run with --debug option to get more log output.
执行dubug时,报port错误
Unable to open debugger port (127.0.0.1:50222):
java.net.SocketException "socket closed"
2、解决办法
- 失败方法:尝试修改port的方式未解决
- 成功方法:指定class路径,在gradle配置文件中添加下面两行代码
apply plugin: ‘application’
mainClassName = ‘ccsah.avatar.web.Application’
configure(allprojects) { project ->if (project.name in denyProject) {return}apply plugin: 'java'apply plugin: 'application'mainClassName = 'ccsah.avatar.web.Application'sourceCompatibility = 1.8compileJava.options.encoding = 'UTF-8'repositories {mavenLocal()//maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }mavenCentral()}....
Execution failed for task ‘:bootRepackage‘. > Unable to find main class相关推荐
- 解决Execution failed for task ':app:clean'. Unable to delete directory问题
今天,打开自己的项目,发现昨天原本正常的项目今天在变异时出现了以下问题,真是叫人难受好久,经过本人的认证分析,终于找到了解决方法. 先看一下报错信息: Error:Execution failed f ...
- 【错误记录】Groovy 报错 ( Execution failed for task ‘:compileGroovy‘. > org/apache/tools/ant/taskdefs/Java )
文章目录 一.报错信息 二.问题分析 三.解决方案 一.报错信息 编译 Groovy 代码时 , 报如下错误 , 该错误不是代码错误 , 而是 Groovy 工程的环境配置错误 ; 相同的环境 , 昨 ...
- 解决方案:Error:Execution failed for task ‘:app:compileDebugAidl‘. > aidl is missing
解决方案:Error:Execution failed for task ':app:compileDebugAidl'. > aidl is missing 参考文章: (1)解决方案:Err ...
- Execution failed for task ‘:app:kaptDebugKotlin‘. > A failure occurred while executing org.jetbrains
报错代码 Execution failed for task ':app:kaptDebugKotlin'. > A failure occurred while executing org.j ...
- 解决React Native安装应用到真机(红米3S)报Execution failed for task ':app:installDebug'的错误...
报错信息如下: :app:installDebug Installing APK 'app-debug.apk' on 'Redmi 3S - 6.0.1' Unable to install D:\ ...
- 完美解决Error:Execution failed for task ':APP:transformClassesWithDexForDebug'...问题
今天下载一个demo运行出现问题,错误如下图 我的问题是JDK 1.8 版本问题问题,我吧1.8改成1.7运行成功 这个实在app下面的build.gradle 相信大伙在Android开发过程中都避 ...
- 安卓中运行报错Error:Execution failed for task ':app:transformClassesWithDexForDebug'解决
在androidstuio中运行我的未完项目,报错: Error:Execution failed for task ':app:transformClassesWithDexForDebug'. & ...
- Execution failed for task ':app:mergeDebugResources'.
这个问题就是资源文件重名了, 它下面有提示的路径,根据路径找到位置, 最后把自己不小心帖进去的删除掉即可 大致如下 Execution failed for task ':app:mergeDebug ...
- Error:Execution failed for task ':app:dexDebug'. com.android.ide.common.process.ProcessException
异常Log: Error:Execution failed for task ':app:dexDebug'. > com.android.ide.common.process.Process ...
最新文章
- Uva 3767 Dynamic len(set(a[L:R])) 树套树
- 零代码入门GitHub,图形化交互让你轻松存代码 | 附Git GUI推荐
- 笔记:前端与后台交互
- IDEA微服务项目的application.yml没有绿色叶子的解决办法
- 苏格拉底的“灵魂”的哲学意味
- 关于消息推送,你可以知道这个
- 拓端tecdat|R语言指数平滑法holt-winters分析谷歌Google Analytics博客用户访问时间序列数据
- 扩展欧几里得算法求逆元c语言,利用扩展欧几里得算法编程求逆元
- 拼多多无货源商家一键上传同行店铺宝贝软件?
- 中国oracle ace名单
- 阿里P9:程序员的“青春饭”,从什么时候开始结束?
- 子平格局——从旺格/从强格
- docker制作镜像的方法
- vue+ elementui合并单元格后 checkbox多选单选取值问题
- Kotlin Sealed Class
- FRP (高性能反向代理应用)
- short 在JAVA_short在java中是什么类型的
- HTML5+css+jquery网页设计+加静态网页部署到服务器上
- 一个可以绑定多个天翼云网盘的目录列表程序,支持视频播放
- Installing, this may take a few minutes... WslRegisterDistribution failed with error: 0x8007019e