Problem with Liferay Developer Studio tutorial

Michael Chang, modified 5 Years ago. New Member Posts: 2 Join Date: 9/24/20 Recent Posts
Hello,
I'm new to Liferay and I just want to evaluate if it's good for our purposes. So I'm trying to just finish this
https://help.liferay.com/hc/en-us/articles/360018157351-Introduction-to-Developing-a-Web-Application
tutorial.
First I used IntelliJ and now I try it with Liferay Developer Studio on macOS Catalina Version 10.15.6After following exactly the steps in the tutorial, unfortunately after clicking 'Finish' for creating a Liferay Workspace, I get the following error message:

FAILURE: Build failed with an exception.* What went wrong:
Could not open cp_init remapped class cache for 7uuzbwnecjh22mgbnvpuixugp (/Users/michaelchang/.gradle/caches/5.6.4/scripts-remapped/eclipsePlugin_3mkhnpwfmqfxy7gk19r0yf63t/7uuzbwnecjh22mgbnvpuixugp/cp_initb88fbed980d87867994e661e74c75e1f).
> Could not open cp_init generic class cache for initialization script '/Users/michaelchang/liferay-workspace/.metadata/.plugins/org.eclipse.buildship.core/init.d/eclipsePlugin.gradle' (/Users/michaelchang/.gradle/caches/5.6.4/scripts/7uuzbwnecjh22mgbnvpuixugp/cp_init/cp_initb88fbed980d87867994e661e74c75e1f).
   > Could not initialize class org.codehaus.groovy.classgen.Verifier* 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.orgBUILD FAILED in 1sFAILURE: Build failed with an exception.
I cleaned the gradle cache, but the same error comes again and again, but when i execute 

./gradlew build 

from the terminal it builds fine.
When I run  

./gradlew --version 

The output is: 

------------------------------------------------------------
Gradle 5.6.4
------------------------------------------------------------
Build time:   2019-11-01 20:42:00 UTC
Revision:     dd870424f9bd8e195d614dc14bb140f43c22da98Kotlin:       1.3.41
Groovy:       2.5.4
Ant:          Apache Ant(TM) version 1.9.14 compiled on March 12 2019
JVM:          1.8.0_121 (Oracle Corporation 25.121-b13)
OS:           Mac OS X 10.15.6 x86_64

In the Markers view of Liferay Developer Studio it shows: 

Description    Resource    Path    Location    Type
Could not run phased build action using Gradle distribution 'https://services.gradle.org/distributions/gradle-5.6.4-bin.zip'.
Could not open cp_init remapped class cache for 7uuzbwnecjh22mgbnvpuixugp (/Users/michaelchang/.gradle/caches/5.6.4/scripts-remapped/eclipsePlugin_3mkhnpwfmqfxy7gk19r0yf63t/7uuzbwnecjh22mgbnvpuixugp/cp_initb88fbed980d87867994e661e74c75e1f).
Could not open cp_init generic class cache for initialization script '/Users/michaelchang/liferay-workspace/.metadata/.plugins/org.eclipse.buildship.core/init.d/eclipsePlugin.gradle' (/Users/michaelchang/.gradle/caches/5.6.4/scripts/7uuzbwnecjh22mgbnvpuixugp/cp_init/cp_initb88fbed980d87867994e661e74c75e1f).
Could not initialize class org.codehaus.groovy.classgen.Verifier    com-liferay-docs-guestbook        line 0    Gradle Error Marker


I changed the jdk version in Liferay Developer studio->Preferences from jdk14 to jdk11 and now jdk8
and I also the tried different gradle settings like using my locally installed gradle instead of the gradle wrapper, but the issue is still the same.I did not change any of the generated project files and i realized that the build.gradle file is empty.
Maybe this is more a gradle or Liferay Developer Studio issue, but I hope someone here can help me!

Please ask, when you need more information!
Thanks, Michael