qrcode_scanner
qrcode_scanner copied to clipboard
Conflict with Launch icon
I having this issue:
my_project/android/app/src/debug/AndroidManifest.xml:12:9-45 Error: Attribute application@icon value=(@mipmap/launcher_icon) from AndroidManifest.xml:12:9-45 is also present at [:qrscan] AndroidManifest.xml:22:9-43 value=(@mipmap/ic_launcher). Suggestion: add 'tools:replace="android:icon"' to
element at AndroidManifest.xml:9:5-32:19 to override. FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':app:processDebugManifest'. Manifest merger failed : Attribute application@icon value=(@mipmap/launcher_icon) from AndroidManifest.xml:12:9-45 is also present at [:qrscan] AndroidManifest.xml:22:9-43 value=(@mipmap/ic_launcher). Suggestion: add 'tools:replace="android:icon"' to
element at AndroidManifest.xml:9:5-32:19 to override. 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 1s Finished with error: Gradle task assembleDebug failed with exit code 1
My Doctor:
**** % flutter doctor -v
[✓] Flutter (Channel stable, v1.9.1+hotfix.6, on Mac OS X 10.15.1 19B88, locale pt-BR)
• Flutter version 1.9.1+hotfix.6 at /Users/******/SDK/flutter
• Framework revision 68587a0916 (9 weeks ago), 2019-09-13 19:46:58 -0700
• Engine revision b863200c37
• Dart version 2.5.0
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at /Users/******/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.2
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.2.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.2.1, Build version 11B53
• CocoaPods version 1.8.4
[✓] Android Studio (version 3.5)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 41.0.2
• Dart plugin version 191.8593
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
[✓] Connected device (2 available)
• Moto G 5S • ZF5222W2L8 • android-arm • Android 8.1.0 (API 27)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.0.0 (API 26) (emulator)
! Doctor found issues in 1 category.
Please help me because I really need to use this plugin.
Under your project tree, open qrscan lib's manifest file (Flutter Plugins/qrscan-0.2.17/android/src.main/AndroidManifest.xml) change android:icon="@mipmap/ic_launcher" this line with your current icon name.
add tools:replace="android:icon in