[Solved] Travis CI Could not find or load main class org.gradle.wrapper.GradleWrapperMain

Questions

Appears when Travis CI is compiled

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

Wrong

The detailed error log is as follows:

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.

Solutions

See if the gradle folder in your submitted code has been submitted

If you don’t submit this folder, you need to submit the gradle in the source code to the code base

Similar Posts: