Flutter Android - android.jar SDK 35 corrupted 27MB instead of 100MB - Windows - RES_TABLE_TYPE_TYPE error

14 hours ago 1
ARTICLE AD BOX

Problem

Building a Flutter app on Windows always fails with this error:

aapt2.exe E LoadedArsc.cpp:94] RES_TABLE_TYPE_TYPE entry offsets overlap actual entry data.

Failed to load resources table in APK android-35/android.jar.

error: failed to load include path android-35/android.jar.

Environment

OS: Windows 10/11

Flutter 3.x

google_mobile_ads 3.1.0 (forces SDK 35)

Gradle 8.3 / AGP 8.3.2

What I tried

Deleted android-35 and reinstalled via sdkmanager - still 27MB

Installed via Android Studio SDK Manager - still 27MB

Downloaded platform-35_r02.zip manually - still 27MB

Cleared entire .gradle/caches - same error

Copied android.jar from android-34 to android-35 - new JdkImageTransform error

Changed compileSdk to 34 - google_mobile_ads still pulls android-35

Changed compileSdk to 36 - same error

Key observation

The android.jar is always 27MB:

Get-Item "...\platforms\android-35\android.jar" | Select-Object Length

Result: 27092450

Is 27MB the correct size for platform-35_r02 or is something corrupting every download on Windows?

Question

Is there a working solution or alternative install method for SDK 35 on Windows when every download comes corrupted?

Read Entire Article