AndroidIDE icon indicating copy to clipboard operation
AndroidIDE copied to clipboard

[Question]: Couldn't run tasks

Open binx6 opened this issue 2 years ago • 5 comments

I attempted to use AndroidIDE to build the latest Gradle 8.7-rc-1 with Gradle plugin 8.4.0-alpha10 version, although the build succeeded, but can't run tasks, it seems that there is no support to it? I also saw a similar issue #1681 (though the similarity is not much). IMG_20240223_132608.jpg

binx6 avatar Feb 23 '24 05:02 binx6

I hope the next version can support it as soon as possible.

binx6 avatar Feb 23 '24 05:02 binx6

Android Gradle Plugin v8.4.x is not supported yet.

Relevant logs for reference
ToolingApiErrorStream     E   SEVERE: Internal error: org.gradle.tooling.model.UnsupportedMethodException: Unsupported method: AndroidProject.getModelSyncFiles(). 
ToolingApiErrorStream     E   The version of Gradle you connect to does not support that method. 
ToolingApiErrorStream     E   To resolve the problem you can change/upgrade the target version of Gradle you connect to. 
ToolingApiErrorStream     E   Alternatively, you can ignore this exception and read other information from the model. 
ToolingApiErrorStream     E   java.util.concurrent.CompletionException: org.gradle.tooling.model.UnsupportedMethodException: Unsupported method: AndroidProject.getModelSyncFiles(). 
ToolingApiErrorStream     E   The version of Gradle you connect to does not support that method. 
ToolingApiErrorStream     E   To resolve the problem you can change/upgrade the target version of Gradle you connect to. 
ToolingApiErrorStream     E   Alternatively, you can ignore this exception and read other information from the model. 
ToolingApiErrorStream     E   	at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315) 
ToolingApiErrorStream     E   	at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320) 
ToolingApiErrorStream     E   	at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1770) 
ToolingApiErrorStream     E   	at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1760) 
ToolingApiErrorStream     E   	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) 
ToolingApiErrorStream     E   	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) 
ToolingApiErrorStream     E   	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) 
ToolingApiErrorStream     E   	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) 
ToolingApiErrorStream     E   	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) 
ToolingApiErrorStream     E   Caused by: org.gradle.tooling.model.UnsupportedMethodException: Unsupported method: AndroidProject.getModelSyncFiles(). 
ToolingApiErrorStream     E   The version of Gradle you connect to does not support that method. 
ToolingApiErrorStream     E   To resolve the problem you can change/upgrade the target version of Gradle you connect to. 
ToolingApiErrorStream     E   Alternatively, you can ignore this exception and read other information from the model. 
ToolingApiErrorStream     E   	at org.gradle.tooling.model.internal.Exceptions.unsupportedMethod(Exceptions.java:33) 
ToolingApiErrorStream     E   	at org.gradle.tooling.internal.adapter.ProtocolToModelAdapter$InvocationHandlerImpl.invoke(ProtocolToModelAdapter.java:468) 
ToolingApiErrorStream     E   	at jdk.proxy2/jdk.proxy2.$Proxy32.getModelSyncFiles(Unknown Source) 
ToolingApiErrorStream     E   	at com.itsaky.androidide.tooling.impl.internal.AndroidProjectImpl.getModelSyncFiles$lambda$9(AndroidProjectImpl.kt:155) 
ToolingApiErrorStream     E   	at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) 
ToolingApiErrorStream     E   	... 6 more 
ToolingApiErrorStream     E    

itsaky avatar Feb 23 '24 14:02 itsaky

Currently, I've go back to the Gradle plugin v8.2.0 and it works fine. I'll use it for the time being.

binx6 avatar Feb 23 '24 14:02 binx6

Commit d5762bddb84996aa1f8929de253004e8a26b516b adds support for AGP 8.3.0. Support for AGP 8.4.0 will be added when it is stable.

itsaky avatar Mar 02 '24 14:03 itsaky

Good job.

binx6 avatar Mar 02 '24 15:03 binx6