cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

Error building extension : Could not find method compile() for arguments [directory 'twx-lib']

Velkumar
18-Opal

Error building extension : Could not find method compile() for arguments [directory 'twx-lib']

Hello,

 

I'm trying to create custom extension. When I try to build extension using gradle I'm getting below error 

 

> Could not find method compile() for arguments [directory 'twx-lib'] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

 

Gradle Version : 7.1.1

Java Version : JDK 11

 

Could any one help me to solve this issue

 

Regards,
VR

1 ACCEPTED SOLUTION

Accepted Solutions
TonyZhang
13-Aquamarine
(To:Velkumar)

Hi @Velkumar,

 

Try using an older Gradle Version prior to 6.9 like 6.9.1, 6.8.3... to see if it resolves the issue.

View solution in original post

3 REPLIES 3
TonyZhang
13-Aquamarine
(To:Velkumar)

Hi @Velkumar,

 

Try using an older Gradle Version prior to 6.9 like 6.9.1, 6.8.3... to see if it resolves the issue.

Thanks @TonyZhang 

 

It works with Gradle 6.9.1 with JDK 11

Maybe verify that the Gradle Java home is pointing to a Java SDK.

 

smainente_0-1635155554885.png

 

Top Tags