Unable to build gradle

image

Hi Team,
When I try to build Gradle in Cuba-CLI giving the above error message. Could you please suggest me a solution for this.

Thanks,
Raj Kumar

Hi! Is project generated by CLI?

Try to make gradlew file executable (chmod +x gradlew).

image
Hi Alex,

Its showing above error.
Note: Its not generated by CLI

This project generated by cuba studio 10.3 standard version. I need to take build from Ec2 instance(AWS).
Thanks,
Raj Kumar

Could you share your build.gradle file?

Is your project builds if manually execute ./gradlew assemble?

build.gradle (8.3 KB)

Hi Alex,
Yes manually I tried but it’s not working,
I Uploaded the build.gradle file.

Thanks,
Rajkumar

Could you run gradle task with --stacktrace option and attach log?

./gradlew assemble --stacktrace

image

Hi Alex,

It’s Showing Unrecognized command

./gradlew assemble --stacktrace should be run in terminal, not in cuba-cli.