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

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

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

Velkumar
19-Tanzanite

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

ACCEPTED SOLUTION

Accepted Solutions
TonyZhang
15-Moonstone
(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.

Tony

View solution in original post

3 REPLIES 3
TonyZhang
15-Moonstone
(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.

Tony
Velkumar
19-Tanzanite
(To:TonyZhang)

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

 

Announcements


Top Tags