Message Boards
Extension of type 'LiferayExtension' does not exist.
Extension of type 'LiferayExtension' does not exist.
Expert Posts: 326 Join Date: 12/20/10 Recent Postshi
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
RE: Extension of type 'LiferayExtension' does not exist. (Answer)
New Member Posts: 3 Join Date: 11/2/20 Recent PostsHad the same problem today.
I solved it by clearing the gradle cache folder.
RE: RE: Extension of type 'LiferayExtension' does not exist.
Expert Posts: 326 Join Date: 12/20/10 Recent Postshi Marc
thank you.
could you please shere where it is and how to delete it?
RE: RE: Extension of type 'LiferayExtension' does not exist.
New Member Posts: 3 Join Date: 11/2/20 Recent PostsI can only speak for Windows, but other OSs should be similar. I describe the steps i made, some things may vary.
- Close Eclipse and stop any Java process that could be possibly locking files.
- There's a ".gradle" directory in the home folder (so hidden on Linux or Unix systems)
- Delete the content in the "caches" subfolder inside ".gradle" (haven't tried to identify the culprit).
- Start IDE and try again
At least for me, it worked more than once.
RE: RE: Extension of type 'LiferayExtension' does not exist.
Expert Posts: 326 Join Date: 12/20/10 Recent Poststhank you very much for sharing, Marc