[SOLVED] Building APK Error

Hi guys, I need help. So basically I was trying to update my game, but then building the APK failed. Please help. It says this :

Error: Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:app:processReleaseResources’.

A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction
Android resource linking failed
ERROR:/worker/app-2d91236b-ddd8-4468-93a4-3c212dd99d9d/platforms/android/app/build/intermediates/incremental/release/mergeReleaseResources/merged.dir/values/values.xml:1763: AAPT: error: resource drawable/ic_cdv_splashscreen_branding (aka com.playtimerepublic.nutsaboutdoughnuts:drawable/ic_cdv_splashscreen_branding) not found.

 ERROR:/worker/app-2d91236b-ddd8-4468-93a4-3c212dd99d9d/platforms/android/app/build/intermediates/incremental/release/mergeReleaseResources/merged.dir/values/values.xml:1763: AAPT: error: style attribute 'attr/windowSplashScreenBrandingImage (aka com.playtimerepublic.nutsaboutdoughnuts:attr/windowSplashScreenBrandingImage)' not found.
  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

BUILD FAILED in 1m 16s
Command failed with exit code 1: /worker/app-2d91236b-ddd8-4468-93a4-3c212dd99d9d/platforms/android/gradlew cdvBuildRelease -b /worker/app-2d91236b-ddd8-4468-93a4-3c212dd99d9d/platforms/android/build.gradle

Hey there,
I’ve never built for Android, but it might be saying your splash screen / loading screen logo is missing.
If you’ve set it to your custom logo, could you try making sure everything in here appears correctly?

You might also want to check the Icons and Thumbnails section of your project.

I Checked, they’re all there. Icons and Thumbnails as well. It runs perfect in Preview…

Okay, that’s good to know.
Is this a cloud project? If yes, I’m guessing the icon files in the cloud got corrupted somehow.
You could try copying the icon in your computer with a different name and upload it again.

Not sure what else after that…

No, it’s not a cloud project. Publishing to gd is fine. But building for APK gave me error.
I replaced all the icons and thumbnails with new ones. All files in .PNG.

Worked fine before, I had my game up on Google Play Store. Trying to update, they gave me error.
I can’t build an APK.
Any other suggestions please?

Thanks

  • This came up now :

Error: Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:app:processReleaseResources’.

A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction
Android resource linking failed
ERROR:/worker/app-7fe6b7c1-f961-4fae-8485-417e2f640d18/platforms/android/app/build/intermediates/incremental/release/mergeReleaseResources/merged.dir/values/values.xml:1763: AAPT: error: resource drawable/ic_cdv_splashscreen_branding (aka com.playtimerepublic.nutsaboutdoughnuts:drawable/ic_cdv_splashscreen_branding) not found.

 ERROR:/worker/app-7fe6b7c1-f961-4fae-8485-417e2f640d18/platforms/android/app/build/intermediates/incremental/release/mergeReleaseResources/merged.dir/values/values.xml:1763: AAPT: error: style attribute 'attr/windowSplashScreenBrandingImage (aka com.playtimerepublic.nutsaboutdoughnuts:attr/windowSplashScreenBrandingImage)' not found.
  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

BUILD FAILED in 1m 6s
Command failed with exit code 1: /worker/app-7fe6b7c1-f961-4fae-8485-417e2f640d18/platforms/android/gradlew cdvBuildRelease -b /worker/app-7fe6b7c1-f961-4fae-8485-417e2f640d18/platforms/android/build.gradle

Built for Web & MacOS, successful flawlessly. Only having problem with building APK