-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Description
Is there an existing issue for this?
- I have searched the existing issues
- I have read the guide to filing a bug
Steps to reproduce
Hi,
As soon as I updated Flutter to the 3.16.0 version, I encountered an issue when trying to run flutter on Android (there was no problem with the previous version).
Notes : - In my project, I am using the amazon-chime-sdk plugin.
- There is no issue with IOS.
I tried a few trivial solutions like deleting the build folder, invalidating the cache, restart, flutter clean, but nothing worked.
Regards,
Actual results
Here is the complete error message:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:mergeDebugNativeLibs'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.MergeNativeLibsTask$MergeNativeLibsTaskWorkAction
> 2 files found with path 'lib/arm64-v8a/libc++_shared.so' from inputs:
- /Users/clem/.gradle/caches/transforms-3/26be7ce28f3e6cf4aca3c14325b3a90e/transformed/jetified-arm64_v8a_debug-1.0.0-74d16627b940bb15e50891f82cad6c3e3465bd6d/arm64-v8a/libc++_shared.so
- /Users/clem/.gradle/caches/transforms-3/f7efdcbaf768ceed50b2cc6951471fe2/transformed/jetified-amazon-chime-sdk-media-0.17.2/jni/arm64-v8a/libc++_shared.so
If you are using jniLibs and CMake IMPORTED targets, see
https://developer.android.com/r/tools/jniLibs-vs-imported-targets
* 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 47sLogs
Logs
<!-- Paste your logs here -->
Flutter Doctor output
[✓] Flutter (Channel stable, 3.16.0, on macOS 14.0 23A344 darwin-arm64, locale en-FR)
• Flutter version 3.16.0 on channel stable at /Users/clem/Development/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision db7ef5b (14 hours ago), 2023-11-15 11:25:44 -0800
• Engine revision 74d16627b9
• Dart version 3.2.0
• DevTools version 2.28.2
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
• Android SDK at /Users/clem/Library/Android/sdk/
• Platform android-33, build-tools 33.0.0
• ANDROID_HOME = /Users/clem/Library/Android/sdk/
• Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 15.0.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 15A507
• CocoaPods version 1.11.3
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2021.2)
• 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 11.0.12+0-b1504.28-7817840)
[✓] VS Code (version 1.84.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.76.0
[✓] Connected device (4 available)
• IN2013 (mobile) • 6f52fbb1 • android-arm64 • Android 13 (API 33)
• iPhone de Olivier (mobile) • 00008101-000D696901F8001E • ios • iOS 17.0.3 21A360
• macOS (desktop) • macos • darwin-arm64 • macOS 14.0 23A344 darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 119.0.6045.123
[✓] Network resources
• All expected network resources are available.
• No issues found!