Я запускаю эту команду в Android Studio для создания apk, но я получаю эту ошибку «Возможно, ошибка Gradle произошла из-за несовместимости AndroidX в этом приложении Flutter».Я пробую несколько вещей, но проблема все еще существует, как я могу решить эту проблему
C:\Users\Waqas\AndroidStudioProjects\gtvsports>flutter build apk
You are building a fat APK that includes binaries for android-arm, android-arm64.
If you are deploying the app to the Play Store, it's recommended to use app bundles or split the APK to reduce the APK size.
To generate an app bundle, run:
flutter build appbundle --target-platform android-arm,android-arm64
Learn more on: https://developer.android.com/guide/app-bundle
To split the APKs per ABI, run:
flutter build apk --target-platform android-arm,android-arm64 --split-per-abi
Learn more on: https://developer.android.com/studio/build/configure-apk-splits#configure-abi-split
Initializing gradle... 1.4s
Resolving dependencies... 4.7s
Running Gradle task 'assembleRelease'...
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:mergeReleaseResources'.
> java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-3.3.1-5013011-windows Daemon #0: Unexpected error during compile 'C:\U
sers\Waqas\AndroidStudioProjects\gtvsports\android\app\src\main\res\drawable\bg.png', attempting to stop daemon.
This should not happen under normal circumstances, please file an issue if it does.
* 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 https://help.gradle.org
BUILD FAILED in 56s
Running Gradle task 'assembleRelease'... 57.1s
*******************************************************************************************
The Gradle failure may have been because of AndroidX incompatibilities in this Flutter app.
See <link here > for more information on the problem and how to fix it.
*******************************************************************************************
Gradle task assembleRelease failed with exit code 1