Hi guys,
I am getting the error below when I upload my .aab file to Google Play Console.
Google Play Console - Error message
Your app currently targets API level 34 and must target at least API level 35 to ensure it is built on the latest APIs optimized for security and performance.
So I upgraded the following in (gradle.properties) file.
PROP_COMPILE_SDK_VERSION=35
PROP_TARGET_SDK_VERSION=35
I also upgraded (build.gradle) script
dependencies {
classpath "com.android.tools.build:gradle:8.7.0"
}
and finally, (gradle-wrapper.properties) file
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
I am using
- Android Studio Narwhal
- Cocos Creator 3.8.5
- JDK 17
But I am unable to build a .aab/apk file as I’m getting the error below.
[CXX1100] android.ndkVersion is [27.0.12077973] but android.ndkPath C:\Users\greg\AppData\Local\Android\Sdk\ndk\23.2.8568313 refers to a different version [23.2.8568313].
I know the recommended NDK version is 23.2.8568313 which my Coco Creator project is currently using. I just don’t know how to resolve this issue around API Level 35, as I have tried many solutions.
Can someone please help or point me in the right direction?
What’s the process for building a .aab/apk file using Android 15 API level 35?