Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Got An Error When Build on imin printer 0.6.1 version #8

Open
silvesterrexy opened this issue Feb 1, 2024 · 3 comments
Open

Got An Error When Build on imin printer 0.6.1 version #8

silvesterrexy opened this issue Feb 1, 2024 · 3 comments

Comments

@silvesterrexy
Copy link

silvesterrexy commented Feb 1, 2024

this the error log
Manifest merger failed : Attribute application@name value=(android.app.Application) from (unknown)
is also present at [:imin_printer] AndroidManifest.xml:12:9-69 value=(com.imin.printer.imin_printer.BaseApplication).
Suggestion: add 'tools:replace="android:name"' to element at AndroidManifest.xml:2:5-32:19 to override.

@silvesterrexy silvesterrexy changed the title How to get IMIN serial number Got An Error When Build on imin printer 0.6.1 version Feb 1, 2024
@chairulf
Copy link

chairulf commented Feb 3, 2024

my advice, while waiting for it to be fixed,
git clone https://github.com/iminsoftware/imin_printer.git
in the example replace with your project, and in the pubspec imin_printer do not change

@movieator
Copy link

Same problem here. Is there any chance to fix it?

@archiesong
Copy link
Collaborator

archiesong commented Mar 11, 2024

The solution:
In the AndroidManifest. Under the root tag of XML and XMLNS: tools = "http://schemas.android.com/tools", Under the application TAB, add tools:replace="android:name".

It looks like this
<manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" package="com.**"> <application android:name="com.**.App" android:allowBackup="true" android:icon="@mipmap/app_icon" android:label="@string/app_name" android:supportsRtl="true" android:theme="@style/AppTheme" tools:replace="android:name"> </application> </manifest>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants