Could not find or Load main class Org.gradle.wrapper.GradleWrapperMain workaround

Source: Internet
Author: User

Workaround:

gradlewis the Gradle wrapper executable-batch script on Windows and shell script elsewhere. If you include the following lines in your build.gradle ,

task wrapper(type: Wrapper) {    gradleVersion = ‘2.0‘}

A gradle wrapper script is added to your source folders. The wrapper script when invoked, downloads the defined Gradle version, and executes it. By distributing the wrapper with your project, anyone can work with it without needing to install Gradle beforehand. Even better, the users of the build is guaranteed to use the version of Gradle the build is designed to work with.

In your deletions, your deleted something that Gradlew depends upon. You can either pulling just the Gradlew files from your source repo, or if you have Gradle installed run to gradle wrapper restore it.

Original: Http://stackoverflow.com/questions/29805622/could-not-find-or-load-main-class-org-gradle-wrapper-gradlewrappermain

Could not find or Load main class Org.gradle.wrapper.GradleWrapperMain workaround

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.