Hello guys,
I get the error beneath once I add my .aab file to Google Play Console.
Google Play Console – Error messageYour app at present targets API degree 34 and should goal a minimum of API degree 35 to make sure it's constructed on the most recent APIs optimized for safety and efficiency.
So I upgraded the next in (gradle.properties) file.
PROP_COMPILE_SDK_VERSION=35
PROP_TARGET_SDK_VERSION=35
I additionally upgraded (construct.gradle) script
dependencies {
classpath "com.android.instruments.construct:gradle:8.7.0"
}
and eventually, (gradle-wrapper.properties) file
distributionUrl=https://providers.gradle.org/distributions/gradle-8.9-bin.zip
I’m utilizing
- Android Studio Narwhal
- Cocos Creator 3.8.5
- JDK 17
However I’m unable to construct a .aab/apk file as I’m getting the error beneath.
[CXX1100] android.ndkVersion is [27.0.12077973] however android.ndkPath C:UsersgregAppDataLocalAndroidSdkndk23.2.8568313 refers to a special model [23.2.8568313].
I do know the really useful NDK model is 23.2.8568313 which my Coco Creator challenge is at present utilizing. I simply don’t know methods to resolve this concern round API Stage 35, as I’ve tried many options.
Can somebody please assist or level me in the precise path?
What’s the method for constructing a .aab/apk file utilizing Android 15 API degree 35?
Test the PROP_NDK_PATH in gradle.properties.
I modified it from the ndk-bundle folder to the specified ndk folder.
It ended up wanting one thing like this:
#PROP_NDK_PATH=C:Customers[your user]AppDataLocalAndroidSdkndk-bundle
PROP_NDK_PATH=C:Customers[your user]AppDataLocalAndroidSdkndk26.1.10909125
Right here it labored for that final error, however I don’t know the way the Play Console will react.
1 Like
Good day, thanks for the workaround.
Can you construct .apk straight from Cocos Creator or do you make .apk with Android Studio solely?
Thanks.
I exploit Android Studio.
Then there’s a workaround on the 16kb pagesize concern so you possibly can publish it to the PlayStore.
Open native/engine/android/CMakeLists.txt and add the next line. Labored for my final challenge.
set(CMAKE_SHARED_LINKER_FLAGS “${CMAKE_SHARED_LINKER_FLAGS} -Wl,-z,max-page-size=16384”)


