Message Boards

Extension of type 'LiferayExtension' does not exist.

Scarletake Bwi, modified 2 Years ago.

Extension of type 'LiferayExtension' does not exist.

Expert Posts: 326 Join Date: 12/20/10 Recent Posts

hi

i hit exception about gradle after i just create a service-builder module

Could not run phased build action using Gradle distribution 'https://services.gradle.org/distributions/gradle-6.6.1-bin.zip'.
A problem occurred configuring project ':modules:SC-Persistence'.
Extension of type 'LiferayExtension' does not exist. Currently registered extension types: [ExtraPropertiesExtension, EclipseModel, BundleExtension]

before that, i try create SC-Persistence, but i pick up wrong module type, so i delete it, and i create a same name modue, gradle failed.

not only this module, all Gradle Tasks cannot work.

the only way is delete SC-Persistence, and i cannot use this name anymore. i can use another name to crate service-builder module, and it work fine.

can any one know how to fix it?

thanks in advance

Marc Endtricht, modified 2 Years ago.

RE: Extension of type 'LiferayExtension' does not exist. (Answer)

New Member Posts: 3 Join Date: 11/2/20 Recent Posts

Had the same problem today.

I solved it by clearing the gradle cache folder.

Scarletake Bwi, modified 2 Years ago.

RE: RE: Extension of type 'LiferayExtension' does not exist.

Expert Posts: 326 Join Date: 12/20/10 Recent Posts

hi Marc

thank you. 

could you please shere where it is and how to delete it?

 

Marc Endtricht, modified 2 Years ago.

RE: RE: Extension of type 'LiferayExtension' does not exist.

New Member Posts: 3 Join Date: 11/2/20 Recent Posts

I can only speak for Windows, but other OSs should be similar. I describe the steps i made, some things may vary.

  1. Close Eclipse and stop any Java process that could be possibly locking files.
  2. There's a ".gradle" directory in the home folder (so hidden on Linux or Unix systems)
  3. Delete the content in the "caches" subfolder inside ".gradle" (haven't tried to identify the culprit).
  4. Start IDE and try again

At least for me, it worked more than once.

Scarletake Bwi, modified 2 Years ago.

RE: RE: Extension of type 'LiferayExtension' does not exist.

Expert Posts: 326 Join Date: 12/20/10 Recent Posts

thank you very much for sharing, Marc