Repository: flutter
Issue: Warning logs in Wonderous: ClassLoaderContext classpath size mismatch
Labels: P2,perf: startup,team-android,triaged-android,from: manual-qa

### Is there an existing issue for this?

- [X] I have searched the [existing issues](https://github.com/flutter/flutter/issues)
- [X] I have read the [guide to filing a bug](https://flutter.dev/docs/resources/bug-reports)

### Steps to reproduce

1. Get latest version of Wonderous app (This is the log when this issue was created - commit 8ac60d46a8bed6c54bcf2df44cccce90a182882f (HEAD -> main, origin/main, origin/HEAD)
Author: Shawn [shawn@gskinner.com](mailto:shawn@gskinner.com)
Date: Thu Oct 5 09:13:02 2023 -0600

Re-ran native_splash generator)

2. Run Wonderous in Android Studio (target: Samsung A03 + Android 11)
3. Navigate to the Great Wall (Navigate to: /wonder/greatWall?t=0)
4. Check the logs:
```
W/flutter.wonder( 7356): ClassLoaderContext classpath size mismatch. expected=9, found=4 (DLC[];PCL[base.apk*3992655331:base.apk!classes2.dex*2027517788:base.apk!classes3.dex*2144944393:base.apk!classes4.dex*3825067233:base.apk!classes5.dex*543646165:base.apk!classes6.dex*3631032038:base.apk!classes7.dex*4222516321:base.apk!classes8.dex*281258532:base.apk!classes9.dex*235254186]{PCL[/system/framework/org.apache.http.legacy.jar*181645345]#PCL[/system/framework/com.android.media.remotedisplay.jar*2596221954]#PCL[/system/framework/com.android.location.provider.jar*2383074192]#PCL[/system/framework/org.apache.http.legacy.jar*181645345]} | DLC[];PCL[/data/app/~~k2ZzOVnY77_uRoVuQmRyzA==/com.gskinner.flutter.wonders-PesFzMzkCho3Z179fD_0Bg==/base.apk*1311009514:/data/app/~~k2ZzOVnY77_uRoVuQmRyzA==/com.gskinner.flutter.wonders-PesFzMzkCho3Z179fD_0Bg==/base.apk!classes2.dex*3101469081:/data/app/~~k2ZzOVnY77_uRoVuQmRyzA==/com.gskinner.flutter.wonders-PesFzMzkCho3Z179fD_0Bg==/base.apk!classes3.dex*3095689258:/data/app/~~k2ZzOVnY77_uRoVuQmRyzA==/com.gskinner.flutter.wonders-PesFzMzkCho3Z179fD_0Bg==/base.apk!classes4.dex*124681216]{PCL[/system/framework/org.apache.http.legacy.jar*181645345]})
W/flutter.wonder( 7356): Found duplicate classes, falling back to extracting from APK : /data/app/~~YJ4U4xNlLS2iKhmyDzhUEA==/com.google.android.gms-0Wlee6u3AHVG5rl0tREx2w==/split_GoogleCertificates.apk
W/flutter.wonder( 7356): NOTE: This wastes RAM and hurts startup performance.
W/flutter.wonder( 7356): Found duplicated class when checking oat files: 'Landroid/support/v4/graphics/drawable/IconCompatParcelizer;' in /data/app/~~YJ4U4xNlLS2iKhmyDzhUEA==/com.google.android.gms-0Wlee6u3AHVG5rl0tREx2w==/split_GoogleCertificates.apk and /data/app/~~k2ZzOVnY77_uRoVuQmRyzA==/com.gskinner.flutter.wonders-PesFzMzkCho3Z179fD_0Bg==/base.apk
```

### Expected results

None warnings should be logged

### Actual results

Following warning is logged:
```
W/flutter.wonder( 7356): ClassLoaderContext classpath size mismatch. expected=9, found=4 (DLC[];PCL[base.apk*3992655331:base.apk!classes2.dex*2027517788:base.apk!classes3.dex*2144944393:base.apk!classes4.dex*3825067233:base.apk!classes5.dex*543646165:base.apk!classes6.dex*3631032038:base.apk!classes7.dex*4222516321:base.apk!classes8.dex*281258532:base.apk!classes9.dex*235254186]{PCL[/system/framework/org.apache.http.legacy.jar*181645345]#PCL[/system/framework/com.android.media.remotedisplay.jar*2596221954]#PCL[/system/framework/com.android.location.provider.jar*2383074192]#PCL[/system/framework/org.apache.http.legacy.jar*181645345]} | DLC[];PCL[/data/app/~~k2ZzOVnY77_uRoVuQmRyzA==/com.gskinner.flutter.wonders-PesFzMzkCho3Z179fD_0Bg==/base.apk*1311009514:/data/app/~~k2ZzOVnY77_uRoVuQmRyzA==/com.gskinner.flutter.wonders-PesFzMzkCho3Z179fD_0Bg==/base.apk!classes2.dex*3101469081:/data/app/~~k2ZzOVnY77_uRoVuQmRyzA==/com.gskinner.flutter.wonders-PesFzMzkCho3Z179fD_0Bg==/base.apk!classes3.dex*3095689258:/data/app/~~k2ZzOVnY77_uRoVuQmRyzA==/com.gskinner.flutter.wonders-PesFzMzkCho3Z179fD_0Bg==/base.apk!classes4.dex*124681216]{PCL[/system/framework/org.apache.http.legacy.jar*181645345]})
W/flutter.wonder( 7356): Found duplicate classes, falling back to extracting from APK : /data/app/~~YJ4U4xNlLS2iKhmyDzhUEA==/com.google.android.gms-0Wlee6u3AHVG5rl0tREx2w==/split_GoogleCertificates.apk
W/flutter.wonder( 7356): NOTE: This wastes RAM and hurts startup performance.
W/flutter.wonder( 7356): Found duplicated class when checking oat files: 'Landroid/support/v4/graphics/drawable/IconCompatParcelizer;' in /data/app/~~YJ4U4xNlLS2iKhmyDzhUEA==/com.google.android.gms-0Wlee6u3AHVG5rl0tREx2w==/split_GoogleCertificates.apk and /data/app/~~k2ZzOVnY77_uRoVuQmRyzA==/com.gskinner.flutter.wonders-PesFzMzkCho3Z179fD_0Bg==/base.apk
```


### Code sample

<details><summary>Code sample</summary>

```Wonderous
git clone https://github.com/gskinnerTeam/flutter-wonderous-app.git
```

</details>


### Screenshots or Video

<details>
<summary>Screenshots / Video demonstration</summary>

<img width="1377" alt="Screenshot 2023-10-10 at 5 15 34 PM" src="https://github.com/flutter/flutter/assets/11681325/d3d8c2b3-8ae6-4f6a-a43f-71b1d927d1be">

</details>



### Logs

<details><summary>Logs</summary>

```console
W/flutter.wonder( 7356): ClassLoaderContext classpath size mismatch. expected=9, found=4 (DLC[];PCL[base.apk*3992655331:base.apk!classes2.dex*2027517788:base.apk!classes3.dex*2144944393:base.apk!classes4.dex*3825067233:base.apk!classes5.dex*543646165:base.apk!classes6.dex*3631032038:base.apk!classes7.dex*4222516321:base.apk!classes8.dex*281258532:base.apk!classes9.dex*235254186]{PCL[/system/framework/org.apache.http.legacy.jar*181645345]#PCL[/system/framework/com.android.media.remotedisplay.jar*2596221954]#PCL[/system/framework/com.android.location.provider.jar*2383074192]#PCL[/system/framework/org.apache.http.legacy.jar*181645345]} | DLC[];PCL[/data/app/~~k2ZzOVnY77_uRoVuQmRyzA==/com.gskinner.flutter.wonders-PesFzMzkCho3Z179fD_0Bg==/base.apk*1311009514:/data/app/~~k2ZzOVnY77_uRoVuQmRyzA==/com.gskinner.flutter.wonders-PesFzMzkCho3Z179fD_0Bg==/base.apk!classes2.dex*3101469081:/data/app/~~k2ZzOVnY77_uRoVuQmRyzA==/com.gskinner.flutter.wonders-PesFzMzkCho3Z179fD_0Bg==/base.apk!classes3.dex*3095689258:/data/app/~~k2ZzOVnY77_uRoVuQmRyzA==/com.gskinner.flutter.wonders-PesFzMzkCho3Z179fD_0Bg==/base.apk!classes4.dex*124681216]{PCL[/system/framework/org.apache.http.legacy.jar*181645345]})
W/flutter.wonder( 7356): Found duplicate classes, falling back to extracting from APK : /data/app/~~YJ4U4xNlLS2iKhmyDzhUEA==/com.google.android.gms-0Wlee6u3AHVG5rl0tREx2w==/split_GoogleCertificates.apk
W/flutter.wonder( 7356): NOTE: This wastes RAM and hurts startup performance.
W/flutter.wonder( 7356): Found duplicated class when checking oat files: 'Landroid/support/v4/graphics/drawable/IconCompatParcelizer;' in /data/app/~~YJ4U4xNlLS2iKhmyDzhUEA==/com.google.android.gms-0Wlee6u3AHVG5rl0tREx2w==/split_GoogleCertificates.apk and /data/app/~~k2ZzOVnY77_uRoVuQmRyzA==/com.gskinner.flutter.wonders-PesFzMzkCho3Z179fD_0Bg==/base.apk
```

</details>


### Flutter Doctor output

<details><summary>Doctor output</summary>

```console
[✓] Flutter (Channel master, 3.16.0-8.0.pre, on macOS 13.5 22G74 darwin-arm64, locale en-US)
    • Flutter version 3.16.0-8.0.pre on channel master at /Users/diegogawenda/fvm/versions/master
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision e141d0a4de (24 hours ago), 2023-10-09 16:41:10 -0400
    • Engine revision 73da593bac
    • Dart version 3.3.0 (build 3.3.0-2.0.dev)
    • DevTools version 2.28.1

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/diegogawenda/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • ANDROID_HOME = /Users/diegogawenda/Library/Android/sdk
    • ANDROID_SDK_ROOT = /Users/diegogawenda/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.0)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15A240d
    • CocoaPods version 1.12.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)

[✓] VS Code (version 1.80.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.74.0

[✓] Connected device (3 available)
    • SM A032F (mobile) • R7AT900J3RP • android-arm    • Android 11 (API 30)
    • macOS (desktop)   • macos       • darwin-arm64   • macOS 13.5 22G74 darwin-arm64
    • Chrome (web)      • chrome      • web-javascript • Google Chrome 117.0.5938.149

[✓] Network resources
    • All expected network resources are available.
```

</details>