Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question]: Couldn't run tasks #1737

Open
binx6 opened this issue Feb 23, 2024 · 5 comments
Open

[Question]: Couldn't run tasks #1737

binx6 opened this issue Feb 23, 2024 · 5 comments
Labels
agp-support Issue related to support for older or newer versions of Android Gradle Plugin.

Comments

@binx6
Copy link

binx6 commented Feb 23, 2024

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 binx6 changed the title [Question] Couldn't run tasks [Question]: Couldn't run tasks Feb 23, 2024
@binx6
Copy link
Author

binx6 commented Feb 23, 2024

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

@itsaky
Copy link
Member

itsaky commented Feb 23, 2024

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 itsaky added the agp-support Issue related to support for older or newer versions of Android Gradle Plugin. label Feb 23, 2024
@binx6
Copy link
Author

binx6 commented Feb 23, 2024

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 binx6 mentioned this issue Mar 1, 2024
5 tasks
@itsaky
Copy link
Member

itsaky commented Mar 2, 2024

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

@binx6
Copy link
Author

binx6 commented Mar 2, 2024

Good job.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
agp-support Issue related to support for older or newer versions of Android Gradle Plugin.
Projects
None yet
Development

No branches or pull requests

2 participants