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相关推荐

  1. 解决Execution failed for task ':app:clean'. Unable to delete directory问题

    今天,打开自己的项目,发现昨天原本正常的项目今天在变异时出现了以下问题,真是叫人难受好久,经过本人的认证分析,终于找到了解决方法. 先看一下报错信息: Error:Execution failed f ...

  2. 【错误记录】Groovy 报错 ( Execution failed for task ‘:compileGroovy‘. > org/apache/tools/ant/taskdefs/Java )

    文章目录 一.报错信息 二.问题分析 三.解决方案 一.报错信息 编译 Groovy 代码时 , 报如下错误 , 该错误不是代码错误 , 而是 Groovy 工程的环境配置错误 ; 相同的环境 , 昨 ...

  3. 解决方案:Error:Execution failed for task ‘:app:compileDebugAidl‘. > aidl is missing

    解决方案:Error:Execution failed for task ':app:compileDebugAidl'. > aidl is missing 参考文章: (1)解决方案:Err ...

  4. 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 ...

  5. 解决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:\ ...

  6. 完美解决Error:Execution failed for task ':APP:transformClassesWithDexForDebug'...问题

    今天下载一个demo运行出现问题,错误如下图 我的问题是JDK 1.8 版本问题问题,我吧1.8改成1.7运行成功 这个实在app下面的build.gradle 相信大伙在Android开发过程中都避 ...

  7. 安卓中运行报错Error:Execution failed for task ':app:transformClassesWithDexForDebug'解决

    在androidstuio中运行我的未完项目,报错: Error:Execution failed for task ':app:transformClassesWithDexForDebug'. & ...

  8. Execution failed for task ':app:mergeDebugResources'.

    这个问题就是资源文件重名了, 它下面有提示的路径,根据路径找到位置, 最后把自己不小心帖进去的删除掉即可 大致如下 Execution failed for task ':app:mergeDebug ...

  9. 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 ...

最新文章

  1. Uva 3767 Dynamic len(set(a[L:R])) 树套树
  2. 零代码入门GitHub,图形化交互让你轻松存代码 | 附Git GUI推荐
  3. 笔记:前端与后台交互
  4. IDEA微服务项目的application.yml没有绿色叶子的解决办法
  5. 苏格拉底的“灵魂”的哲学意味
  6. 关于消息推送,你可以知道这个
  7. 拓端tecdat|R语言指数平滑法holt-winters分析谷歌Google Analytics博客用户访问时间序列数据
  8. 扩展欧几里得算法求逆元c语言,利用扩展欧几里得算法编程求逆元
  9. 拼多多无货源商家一键上传同行店铺宝贝软件?
  10. 中国oracle ace名单
  11. 阿里P9:程序员的“青春饭”,从什么时候开始结束?
  12. 子平格局——从旺格/从强格
  13. docker制作镜像的方法
  14. vue+ elementui合并单元格后 checkbox多选单选取值问题
  15. Kotlin Sealed Class
  16. FRP (高性能反向代理应用)
  17. short 在JAVA_short在java中是什么类型的
  18. HTML5+css+jquery网页设计+加静态网页部署到服务器上
  19. 一个可以绑定多个天翼云网盘的目录列表程序,支持视频播放
  20. Installing, this may take a few minutes... WslRegisterDistribution failed with error: 0x8007019e

热门文章

  1. 物联平台纷争,能否拯救智能硬件?
  2. stm32f103 时钟系统
  3. 零跑汽车股价再创数据新高
  4. x must be 1d
  5. 国网大数据中心是如何进行数据治理的?
  6. 7-238 整数转换为字符串7-242 母牛问题7-243 快速幂
  7. pyplot画图技巧
  8. Android Studio 使用记录
  9. 【CV学习笔记】图像预处理warpaffine
  10. Angular Img标签自定义请求header Authorization