Trying to update my little android game I released last winter to comply with Google Play Store's version requirements.
And I'm running into trouble
Every time I try to export I get a warning that my Gradle Plugin is out-of-date, then the build fails.
I updated and then reinstalled Android studio. I updated my gradle plugin in Android Studio to 8.6 but that seems to be project-specific? Is there somewhere else to update the gradle Fusion uses?
In my Fusion android settings my minimum version requirement is 6 and my target is 35, I installed SDK 35 and the SDK 35 tools in Android Studio, and checked my SDK and JDK targets in Fusion preferences.
Full Error Report:
WARNING:We recommend using a newer Android Gradle plugin to use compileSdk = 35
This Android Gradle plugin (7.4.2) was tested up to compileSdk = 33
This warning can be suppressed by adding
android.suppressUnsupportedCompileSdk=35
to this project's gradle.properties
The build will continue, but you are strongly encouraged to update your project to
use a newer Android Gradle Plugin that has been tested with compileSdk = 35
> Task :app:preBuild UP-TO-DATE
> Task :app:preReleaseBuild UP-TO-DATE
> Task :app:compileReleaseRenderscript NO-SOURCE
> Task :app:generateReleaseResValues
> Task :app:mapReleaseSourceSetPaths
> Task :app:generateReleaseResources
> Task :app:createReleaseCompatibleScreenManifests
> Task :app:extractDeepLinksRelease
> Task :app:processReleaseMainManifest
> Task :app:processReleaseManifest
> Task :app:processApplicationManifestReleaseForBundle
> Task :app:checkReleaseDuplicateClasses
> Task :app:compileReleaseAidl NO-SOURCE
> Task :app:generateReleaseBuildConfig
> Task :app:javaPreCompileRelease
> Task :app:checkReleaseAarMetadata
> Task :app:mergeReleaseResources
> Task :app:mergeReleaseShaders
> Task :app:compileReleaseShaders NO-SOURCE
> Task :app:generateReleaseAssets UP-TO-DATE
> Task :app:mergeReleaseAssets
> Task :app:processReleaseJavaRes NO-SOURCE
> Task :app:processReleaseManifestForPackage
> Task :app:desugarReleaseFileDependencies
> Task :app:mergeReleaseJniLibFolders
> Task :app:mergeReleaseJavaResource
> Task :app:bundleReleaseResources FAILED
> Task :app:processReleaseResources FAILED
> Task :app:mergeExtDexRelease
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:bundleReleaseResources'.
> A failure occurred while executing com.android.build.gradle.internal.res.Aapt2ProcessResourcesRunnable
> Android resource linking failed
aapt2.exe E 08-28 12:13:49 1240 13052 LoadedArsc.cpp:94] RES_TABLE_TYPE_TYPE entry offsets overlap actual entry data.
aapt2.exe E 08-28 12:13:49 1240 13052 ApkAssets.cpp:149] Failed to load resources table in APK 'C:\Users\default.DESKTOP-K2GDCM3\AppData\Local\Android\Sdk\platforms\android-35\android.jar'.
error: failed to load include path C:\Users\default.DESKTOP-K2GDCM3\AppData\Local\Android\Sdk\platforms\android-35\android.jar.
* 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.
==============================================================================
2: Task 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
aapt2.exe E 08-28 12:13:49 5680 4900 LoadedArsc.cpp:94] RES_TABLE_TYPE_TYPE entry offsets overlap actual entry data.
aapt2.exe E 08-28 12:13:49 5680 4900 ApkAssets.cpp:149] Failed to load resources table in APK 'C:\Users\default.DESKTOP-K2GDCM3\AppData\Local\Android\Sdk\platforms\android-35\android.jar'.
error: failed to load include path C:\Users\default.DESKTOP-K2GDCM3\AppData\Local\Android\Sdk\platforms\android-35\android.jar.
* 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.
==============================================================================
* Get more help at Please login to see this link.
BUILD FAILED in 5s
21 actionable tasks: 21 executed