Add support for com.android.tools.build:gradle:0.11.+

Issue #40 wontfix
deveth0 created an issue

Hi,

I just tried to setup a new android project with netbeans 8.0, java 1.7.0_55 and gradle 1.12.

If you are using the gradle build plugin in version 0.11.+ and open a project in Netbeans, the attached Exception is thrown.

org.gradle.tooling.model.UnsupportedMethodException: Unsupported method: Dependencies.getJars().
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.$Proxy73.getJars(Unknown Source)
    at org.nbandroid.netbeans.gradle.query.GradleAndroidClassPathProvider$CompilePathResources.getRoots(GradleAndroidClassPathProvider.java:219)
    at org.netbeans.api.java.classpath.ClassPath.entries(ClassPath.java:358)
    at org.netbeans.modules.parsing.impl.indexing.PathRegistry.createResources(PathRegistry.java:712)
    at org.netbeans.modules.parsing.impl.indexing.PathRegistry.getSources(PathRegistry.java:294)
    at org.netbeans.modules.parsing.impl.indexing.errors.Utilities.findIndexedRootsUnderDirectory(Utilities.java:94)
    at org.netbeans.modules.parsing.impl.indexing.errors.ErrorAnnotator$1.run(ErrorAnnotator.java:322)
    at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)

Comments (1)

  1. Log in to comment