Git Product home page Git Product logo

Comments (9)

tayfunuyar avatar tayfunuyar commented on July 17, 2024 1

You can use https://pub.dev/packages/barcode_scan2

from qrcode_scanner.

chuck2098 avatar chuck2098 commented on July 17, 2024

Hi, I get the same error!

from qrcode_scanner.

viveeeeeek avatar viveeeeeek commented on July 17, 2024

Is this plugin abandoned? There is no update to plugin. Did you guys find any other solutions?

from qrcode_scanner.

rabihmb avatar rabihmb commented on July 17, 2024

I'm getting the same issue, any solution on this, please!

from qrcode_scanner.

HarryJhin avatar HarryJhin commented on July 17, 2024

i need solution!
😱😱😱

from qrcode_scanner.

imamhossain94 avatar imamhossain94 commented on July 17, 2024

place
tools:replace="android:icon"
in the AndroidManifest.xml tag

from qrcode_scanner.

rabihmb avatar rabihmb commented on July 17, 2024

from qrcode_scanner.

imamhossain94 avatar imamhossain94 commented on July 17, 2024

The android studio IDE suggested me to do that.

When I use drawable/ic_launcher.png
Instead of mipmap/ic_launcher.png

The IDE throws an error.

Launching lib\main.dart on SM A305F in debug mode...
Running Gradle task 'assembleDebug'...
D:\FlutterProjects\qr_code_scanner\android\app\src\debug\AndroidManifest.xml:14:9-45 Error:
	Attribute application@icon value=(@drawable/ic_launcher) from AndroidManifest.xml:14:9-45
	is also present at [:qrscan] AndroidManifest.xml:22:9-43 value=(@mipmap/ic_launcher).
	Suggestion: add 'tools:replace="android:icon"' to <application> element at AndroidManifest.xml:12:4-57:19 to override.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugMainManifest'.
> Manifest merger failed : Attribute application@icon value=(@drawable/ic_launcher) from AndroidManifest.xml:14:9-45
  	is also present at [:qrscan] AndroidManifest.xml:22:9-43 value=(@mipmap/ic_launcher).
  	Suggestion: add 'tools:replace="android:icon"' to <application> element at AndroidManifest.xml:12:4-57: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 4s
Exception: Gradle task assembleDebug failed with exit code 1

Here is my AndroidMenifest.xml file

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    package="com.newagedevs.qr_code_scanner.qr_code_scanner">

    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.CAMERA"/>
    <uses-permission android:name="android.permission.VIBRATE"/>
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"
        tools:ignore="ScopedStorage" />
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>

   <application
        android:label="@string/app_name"
        android:icon="@drawable/ic_launcher"
        android:roundIcon="@drawable/ic_launcher_round"
        android:allowBackup="true"
        tools:replace="android:icon"
        android:fullBackupContent="true">

        <!--Activities-->

        <meta-data
            android:name="flutterEmbedding"
            android:value="2" />
    </application>

</manifest>

Adding

tools:replace="android:icon"

this line inside tag fix this issue. Thank you!

from qrcode_scanner.

BraveEvidence avatar BraveEvidence commented on July 17, 2024

This will help https://www.youtube.com/watch?v=w-n0jUrUtPI&list=PLQhQEGkwKZUqZC2QAp_u4ZAzqpsCCRvmM&index=10 https://www.youtube.com/watch?v=QpnVENc9dIA&list=PLQhQEGkwKZUqZC2QAp_u4ZAzqpsCCRvmM&index=11

from qrcode_scanner.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.