Android project fails to build (works fine in Android Studio) - Unsupported method: AndroidArtifact.getPrivacySandboxSdkInfo()
I'm trying to build an Android open source project (https://github.com/FossifyOrg/Calendar) in IntelliJ IDEA 2025.3.3 Ultimate / Windows 11 which builds fine in Android Studio, in IDEA however I get build errors:
Multiple build operations failed.
Unsupported method: AndroidArtifact.getPrivacySandboxSdkInfo().
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.
What does this mean and how do I fix it?
(Note: I'm a beginner in Android development, so I need step by step instructions. :))
I tried to run Tools > Android > AGP Upgrade Assistant but it's unuseable, it's showing the spinning wheel/ Loading forever.
Thanks.
请先登录再写评论。
Thanks for reporting this.
This is a known issue. IntelliJ IDEA's Android plugin does not yet support the newest versions of the Android Gradle Plugin (AGP). The project you are building uses a newer AGP than IDEA 2025.3.3 officially supports, which causes the "Unsupported method: AndroidArtifact.getPrivacySandboxSdkInfo()" error. Android Studio ships with its own AGP support and updates faster, which is why it works there.
This is tracked here:
You can vote for these issues to increase their priority.
Workaround
There is a hidden flag that lets IDEA sync with unsupported AGP versions. Here is how to enable it:
idea.is.internal=trueThis should allow the project to sync and build. Note that some Android-specific IDE features may not work perfectly with an unsupported AGP version, but basic building and running should work.
Regarding the AGP Upgrade Assistant loading forever, this is likely a side effect of the same AGP incompatibility. It should not be needed after applying the workaround above.
Let us know if this helps.
Thanks for the detailed reply, much appreciated.
Didn't help unfortunately, I get the same error after doing your described steps.
Please see screenshots attached (this is after restarting the IDE and running “Sync project with Gradle files”).
Unfortunately, it means you will have to wait until the more recent tooling is merged into IntelliJ IDEA.
Honestly, it surprises me that IDEA Ultimate as a commercial product is behind the free Android Studio.
Anyway, thanks again for your help and I'll stick with Android Studio (for this project at least) for the time being.
Sorry about that. I bumped the priority of the issue and requested a fix from the developers.
I am using IntelliJ IDEA 2025.3.4 and encounter the same issue.
Has it been resolved / when will it be resolved?
What is the latest AGP version which is fully supported?
Hi Mictiemix,
I’m sorry that you’ve encountered this issue.
The latest supported AGP version for IntelliJ IDEA 2026.1 with the Android plugin should be 9.0.0-alpha06.
Unfortunately, we cannot provide a specific ETA for fixing this issue. Please subscribe to issue IDEA-385007 in our bug tracker to stay updated on any progress.