Tuesday, March 17, 2026

Android construct fails when focusing on API degree 35 (Android 15) – Cocos Creator


Hello, Google not too long ago warned builders to replace their apps/video games to focus on SDK 35 (Android 15), or else their apps could also be faraway from the Google Play Retailer.

Once I tried constructing my sport utilizing Cocos Creator 3.7.4 with the Goal API Degree set to "android-35", the construct course of failed (within the make stage).

I additionally tried creating a brand new empty undertaking with Cocos Creator 3.8.6, however it resulted in the identical error. Listed below are the error logs:

2: Job failed with an exception.

-----------

* What went mistaken:

Execution failed for process ':TestProject:bundleReleaseResources'.

> A failure occurred whereas executing com.android.construct.gradle.inner.res.Aapt2ProcessResourcesRunnable

   > Android useful resource linking failed
     aapt2.exe E 07-06 04:38:24 16452  4856 LoadedArsc.cpp:94] RES_TABLE_TYPE_TYPE entry offsets overlap precise entry knowledge.
     aapt2.exe E 07-06 04:38:24 16452  4856 ApkAssets.cpp:152] Didn't load assets desk in APK 'C:UsersMortezaAppDataLocalAndroidSdkplatformsandroid-35android.jar'.
     error: didn't load embody path C:UsersMortezaAppDataLocalAndroidSdkplatformsandroid-35android.jar.

I’m utilizing JDK 17.0.15+6 and NDK model 23.2.8568313.

I additionally tried utilizing a more moderen model of Gradle (at the least 8.6.0, as required for SDK 35), however the construct nonetheless fails with the identical error. Right here’s my construct.gradle file:

// Prime-level construct file the place you possibly can add configuration choices widespread to all sub-projects/modules.

buildscript {

    repositories {
        google()
        mavenCentral()
        // jcenter() // keeped as anchor, will likely be eliminated quickly
    }
    dependencies {
        classpath 'com.android.instruments.construct:gradle:8.11.0'

        // NOTE: Don't place your utility dependencies right here; they belong
        // within the particular person module construct.gradle information
    }
}

allprojects {
    repositories {
        google()
        mavenCentral()
        // jcenter() // keeped as anchor, will likely be eliminated quickly
    }
}

process clear(kind: Delete) {
    delete rootProject.buildDir
}

Query:
How can I construct a sport that targets Android API degree 35? Is it not supported but?

Does this subject must be resolved so I can goal Android 15?

this due to Android studio, Replace android studio resolve the issue. You may strive the newest secure model

I’m already utilizing the newest model of Android Studio so this may’t be the difficulty.
Have been you in a position to construct for Android efficiently whereas focusing on SDK 35? Which model of Cocos Creator and NDK are you utilizing? Additionally, did you modify some other config just like the gradle plugin model?

Thanks.

Sorry, i’m busy these day, so i simply verify the boards now.
i utilizing cocos 2.x, however i feel the issue could be the similar.
i exploit gradle plugin 8.4.1 and gradle model 8.6.
and android studio 2025.1.1
You may tried with that configs, or share the your android undertaking, i’ll strive with you to search out the answer.
i’m really feel unhealthy when ecounter this issues earlier than, the boards appear to slient.



1 Like

Thanks in your response. I used to be in a position to resolve this subject by correctly updating the Gradle model. The issue was that I assumed if I modified the Gradle plugin model contained in the file at native/engine/google-play/construct.gradle, it might replace the Gradle plugin model of the particular construct initiatives. Apparently, it doesn’t. So, I modified them manually, and the construct course of accomplished efficiently.

I’m glad that you just discover the answer

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisement -spot_img

Latest Articles