Problem with API level 35/36

Hello community.
Need to up the target API level for Google Play, but I can’t.
Now API level is 34 and project builds fine, but when I change API level to 35 or 36, I have this problem:


Not sure what I need to do, maybe I need to reinstall something, can you help me please?)
Unity 2022.3.19f1

Please, update your project to any of the following versions to be able to build with those SDK versions:

  • SDK 35 support was added in 2022.3.44f1
  • SDK 36 support was added in 2022.3.62f1

Share what’s the actual error in the console, not only headers.

WARNING:The option setting ‘android.aapt2FromMavenOverride=/Applications/Unity/Hub/Editor/2022.3.62f1/PlaybackEngines/AndroidPlayer/SDK/build-tools/34.0.0/aapt2’ is experimental.

for past 2 weeks I am trying to make android builds for following reasons:

target SDK 35 and/or SDK 36
Memory page size 16 kb error on play console
Google Play Billing Library version 7.0.0

here are things I have tried
Installed Unity Editors
6000.0.53f1, 6000.1.12f1, 2022.3.62f1, 2021.3.45f1

Updated SDK build-tools from Android Studio to 35.0.0 and 36.0.0

Finally today I tested all combinations I could think off for testing each package differently in my test project (i made aab builds after adding each package in my project)
Here are all the results

  1. Blank project[just game play] (build 35 successful, build 36 successful)
  2. Unity Ads[4.12.0] (build 35 successful, build 36 successful)
  3. Unity IAP[4.13.0] (build 35 successful, build 36 successful)
  4. URP[14.0.12] (build 35 successful, build 36 successful)
  5. Google Mobile Ads[8.7.0] (build 35 successful, build 36 successful)
  6. Google sign in + google in app review (build 35 successful, build 36 successful)

7. Firebase[11.7.0] (build 35 un-successful, build 36 un-successful)
8. Firebase[12.10.1] (build 35 un-successful, build 36 un-successful)

Than I removed all packages and just used firebase (build fails with above error)
Also whatever I try build always fail on any firebase sdk used

build for target 34 is successful

So i wanted to ask for help from unity staff

It looks like the build-tools folder is missing in the new SDK, which causes a Gradle error with the Unity API Level 36 update. Here’s how to fix it—there are two methods:

  1. Using Android Studio
  2. Using the Command Prompt

Unity API Level 36 Update & Gradle Error Fix (2 Methods) – 2025

update unity it will work it did not work for me in unity version 2022.3.3f than i updated version and updated api level unity asked to change sdk update i did it and it worked

its been 3 months from this post. yet nobody replied here with a solution.

I have tried everything and failed each time on same error related to aapt2

i am on macos m1 macbook air 2020

Share the conplete error log and if possible a sample project to reproduce the issue. Also share the unity version.