Google Play API 36: fix "must target at least API level 36"
The message
The Play Console words it like this, with your app’s numbers:
Your app currently targets API level 35 and must target at least API level 36 to ensure it is built on the latest APIs optimized for security and performance.It is a policy check, not a build error. Nothing is wrong with your code: the number your build declares is below what Google accepts this year.
What Google requires
- New apps and app updates: API 36 (Android 16) or higher, since August 31, 2026.
- Apps already on Google Play: API 35 (Android 15) or higher to stay available to new users.
- Wear OS and Android Automotive OS apps need API 35; Android TV and Android XR apps need API 34.
- The bar rises every year, around the end of August, a year after each new Android release.
Google’s pages: target API level requirements for Google Play apps and meet Google Play’s target API level requirement.
Where your app's target comes from
- Capacitor (including Lovable, Bolt and v0 apps you wrapped yourself): the
targetSdkVersionline inandroid/variables.gradle. A new project gets the target of the Capacitor version that created it: Capacitor 6 targets 34, 7 targets 35, 8 targets 36. Upgrading the npm packages does not rewrite anandroid/folder you already committed, so read the file. - Expo: SDK 54 or later targets API 36.
- React Native without Expo: 0.81 or later targets API 36.
- Flutter:
flutter createwritestargetSdk = flutter.targetSdkVersion, so the Flutter you build with decides. Flutter 3.50 builds our test app for API 36. If yourandroid/app/build.gradle(or.kts) has a number there instead, that number is your target.
The fix
- Capacitor: the dependable route is upgrading to Capacitor 8 with Capacitor’s upgrade guide for that version, which brings the build tools that go with API 36. Raising the numbers alone also works in many projects:
// android/variables.gradle
compileSdkVersion = 36
targetSdkVersion = 36If Gradle then complains about the Android Gradle Plugin being too old for SDK 36, that is the sign to do the full upgrade instead.
- Expo: upgrade to SDK 54 or later (
npx expo install expo@^54.0.0, thennpx expo install --fix). - React Native: upgrade to 0.81 or later; the React Native Upgrade Helper shows the file changes between your version and the new one.
- Flutter: build with the current stable Flutter, or set
targetSdk = 36inandroid/app/build.gradle(or.kts).
Then build a new release .aab with a higher version code than the last upload, and upload that.
Check the file before you upload it
aapt2 comes with the Android SDK build tools, and bundletool is a single jar that Google publishes. For an .apk:
aapt2 dump badging app-release.apk | grep targetSdkVersion
# targetSdkVersion:'36'For an .aab:
java -jar bundletool.jar dump manifest --bundle app-release.aab \
--xpath /manifest/uses-sdk/@android:targetSdkVersion
# 36How Corenna handles it
- Before a build, it reads your repo the way the build will and warns you if the result would target below API 36.
- Every build log says which API the app targets and whether Google Play accepts it.
- A web app with no Capacitor of its own (a Lovable, Bolt or v0 app, for example) is wrapped with Capacitor 8 during the build, so it targets API 36.
- With Google Play connected, it can send the signed
.aabto a Play track for you.
Check your repo to see what your next build would target. Building your Android app is free. Downloading it needs a plan: $1 for your first month.