Travis CI Could not find or load main class org.gradle.wrapper.GradleWrapperMain 错误

  1. 云栖社区>
  2. 博客>
  3. 正文

Travis CI Could not find or load main class org.gradle.wrapper.GradleWrapperMain 错误

honeymoose 2019-07-14 01:37:22 浏览172
展开阅读全文

问题

在 Travis CI 编译的时候出现

Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain

错误。

详细的错误日志为:

Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain
The command "eval ./gradlew assemble " failed. Retrying, 2 of 3.
Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain
The command "eval ./gradlew assemble " failed. Retrying, 3 of 3.
Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain
The command "eval ./gradlew assemble " failed 3 times.
The command "./gradlew assemble" failed and exited with 1 during .
Your build has been stopped.

Travis_CI_gradlew_error

解决方法

看看你提交的代码中 gradle 文件夹有没有提交上去。

如果没有提交这个文件夹的话,需要将源代码中的 gradle 提交到代码库上。

网友评论

登录后评论
0/500
评论
honeymoose
+ 关注