Hello guys,
I get the error under after I add my .aab file to Google Play Console.
Google Play Console – Error messageYour app presently targets API stage 34 and should goal not less than API stage 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 at last, (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 under.
[CXX1100] android.ndkVersion is [27.0.12077973] however android.ndkPath C:UsersgregAppDataLocalAndroidSdkndk23.2.8568313 refers to a unique model [23.2.8568313].
I do know the advisable NDK model is 23.2.8568313 which my Coco Creator mission is presently utilizing. I simply don’t know tips on how to resolve this situation round API Stage 35, as I’ve tried many options.
Can somebody please assist or level me in the fitting route?
What’s the method for constructing a .aab/apk file utilizing Android 15 API stage 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 trying 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 understand how the Play Console will react.
1 Like
Hi there, thanks for the workaround.
Can you construct .apk immediately from Cocos Creator or do you make .apk with Android Studio solely?
Thanks.
I take advantage of Android Studio.
Then there’s a workaround on the 16kb pagesize situation so you’ll be able to publish it to the PlayStore.
Open native/engine/android/CMakeLists.txt and add the next line. Labored for my final mission.
set(CMAKE_SHARED_LINKER_FLAGS “${CMAKE_SHARED_LINKER_FLAGS} -Wl,-z,max-page-size=16384”)

