This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 250238 - org.gradle.tooling.model.UnsupportedMethodException: Unsupported method: Dependencies.getJavaLibraries(). The version of Gradle you connect to does not support that method. To resolve the problem you
Summary: org.gradle.tooling.model.UnsupportedMethodException: Unsupported method: Depe...
Status: NEW
Alias: None
Product: third-party
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: issues@third-party
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-05 12:54 UTC by alvarlaigna
Modified: 2015-02-05 13:32 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 211226


Attachments
stacktrace (2.20 KB, text/plain)
2015-02-05 12:54 UTC, alvarlaigna
Details

Note You need to log in before you can comment on or make changes to this bug.
Description alvarlaigna 2015-02-05 12:54:40 UTC
Build: NetBeans IDE 8.0.2 (Build 201411181905)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.5-b02, Java(TM) SE Runtime Environment, 1.8.0_05-b13
OS: Windows 8

User Comments:
GUEST: desktop project with libGDX 1.0.1

GUEST: Loading gradle project

GUEST: Running a gradle project

GUEST: .

alvarlaigna: Opened gradle project (new Cordova project just generated from command line)

GUEST: My does does not seem to be recompiling, every time I change something and run it the change does not seem to happen. Occasionally restarting netbeans works

GUEST: .

GUEST: I just created a new project with gradle and imported it to NetBeans.
Importing it reported me that some functions are unsupported like getJavaLibraries() and inside the project the main class launchers had unresolved symbol the import of main class.
I also noticed missing imports in build files.

GUEST: Setting up IDE for libgdx

GUEST: Loaded Netbeans.

GUEST: Trying to run in a debug Maven Java console application.

GUEST: FruitCatcher libgdx project

GUEST: Loading a gradle project built by libgdx

GUEST: Creatre a new project with libgdx and then open the project with glade in Netbeans

GUEST: Upon loading netbeans.




Stacktrace: 
org.gradle.tooling.model.UnsupportedMethodException: Unsupported method: Dependencies.getJavaLibraries().
The version of Gradle you connect to does not support that method.
To resolve the problem you can change/upgrade the target version of Gradle you connect to.
Alternatively, you can ignore this exception and read other information from the model.
   at org.gradle.tooling.model.internal.Exceptions.unsupportedMethod(Exceptions.java:33)
   at org.gradle.tooling.internal.adapter.ProtocolToModelAdapter$InvocationHandlerImpl.invoke(ProtocolToModelAdapter.java:240)
   at com.sun.proxy.$Proxy38.getJavaLibraries(.java:0)
   at org.nbandroid.netbeans.gradle.query.GradleAndroidClassPathProvider$CompilePathResources.getRoots(GradleAndroidClassPathProvider.java:220)
   at org.netbeans.api.java.classpath.ClassPath.entries(ClassPath.java:359)
   at org.netbeans.api.java.classpath.ClassPath.getRoots(ClassPath.java:263)
Comment 1 alvarlaigna 2015-02-05 12:54:42 UTC
Created attachment 151830 [details]
stacktrace
Comment 2 Tomas Zezula 2015-02-05 13:32:56 UTC
Gradle support