> Could not create task ':app-global:enhance'. > Could not create task of type 'CubaEnhancing'

Hi there…
how to solve this problem below on CUBA studio

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.

  • Where:
    Build file ‘D:\SWDEVTEST\big-cubina-burger-back-end\build.gradle’ line: 72

  • What went wrong:
    A problem occurred evaluating root project ‘big-cubina-burger’.

Could not create task ‘:app-global:enhance’.
Could not create task of type ‘CubaEnhancing’.
A problem occurred configuring project ‘:app-global’.
Could not set unknown property ‘classesDir’ for main classes of type org.gradle.api.internal.tasks.DefaultSourceSetOutput.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    ==============================================================================

2: Task failed with an exception.

  • What went wrong:
    A problem occurred configuring root project ‘big-cubina-burger’.

A problem occurred configuring project ‘:app-core’.
Could not set unknown property ‘classesDir’ for main classes of type org.gradle.api.internal.tasks.DefaultSourceSetOutput.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    ==============================================================================

  • Get more help at https://help.gradle.org

BUILD FAILED in 340ms

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use ‘–warning-mode all’ to show the individual deprecation warnings.
See Command-Line Interface

Hi.
Could you please provide more information about your problem? Do you migrate the project to the latest platform version or just trying to open it using Studio? If so, which version of Studio do you use?

Regards,
Natalia

Hi,
Most likely you are using incompatible Gradle version.

Which versions of the software do you use in this project:

  • CUBA platform version?
  • Gradle version?

I just clone the project from GitHub - cuba-labs/big-cubina-burger-back-end but gradle failed to build. CUBA studio also not recognizing the project as CUBA project

eg.
image

My CUBA plaform version is 6.6.4
Gradle version is 6.5
and CUBA studio is 2020.2

Unfortunately, CUBA Studio as IDEA plugin support only platform version 6.10 or newer. For projects with platform version lower than 6.10 it is necessary to use old version of Studio - 6.10 or lower. You can download it here.

1 Like

owh…thanks for the reply…so then I have to install 2 cuba studio on a single computer.is this OK?..one is for the latest version and the other one for lower version.,…is there any other option instead of installing 2 CUBA studio ?

It’s ok to install two versions of the CUBA Studio.

its working…like what has instructed …download CUBA lower version…thanks.