qrcode_scanner icon indicating copy to clipboard operation
qrcode_scanner copied to clipboard

Error in AndroidManifest

Open sivatharan opened this issue 4 years ago • 4 comments

/home/sivatharan/Desktop/Ondemand/ondemand_customer/android/app/src/debug/AndroidManifest.xml:19:9-36 Error: Attribute application@icon value=(@mipmap/logo) from AndroidManifest.xml:19:9-36 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:7:6-9:24 to override. Gradle task assembleDebug failed with exit code 1

sivatharan avatar Mar 26 '20 09:03 sivatharan

hello, to resolve that you have to go, to the path: /home/sivatharan/Desktop/Ondemand/ondemand_customer/android/app/src/debug/AndroidManifest.xm and delete this line. AndroidManifest.xml:22:9-43 value=(@mipmap/ic_launcher).

jjimenezr23 avatar Mar 29 '20 10:03 jjimenezr23

@jjimenezr23 in android/app/src/debug/AndroidManifest.xml does not exists at line the flag "value=(@mipmap/ic_launcher)". Any suggestion?

hello, to resolve that you have to go, to the path: /home/sivatharan/Desktop/Ondemand/ondemand_customer/android/app/src/debug/AndroidManifest.xm and delete this line. AndroidManifest.xml:22:9-43 value=(@mipmap/ic_launcher).

gabrielrodrigodesbesell avatar Apr 08 '20 14:04 gabrielrodrigodesbesell

In app's AndroidManifest.xml add this line tools:replace="android:allowBackup,android:icon,android:theme"

<application android:name=".MyApplication" android:allowBackup="false" android:icon="@mipmap/ic_launcher_business" android:label="@string/app_name" android:largeHeap="true" android:roundIcon="@mipmap/ic_launcher_business_round" android:supportsRtl="true" android:theme="@style/AppTheme" android:usesCleartextTraffic="true" tools:replace="android:allowBackup,android:icon,android:theme" tools:ignore="GoogleAppIndexingWarning">

ashbin avatar Sep 15 '20 13:09 ashbin

In app's AndroidManifest.xml add this line tools:replace="android:allowBackup,android:icon,android:theme"

<application android:name=".MyApplication" android:allowBackup="false" android:icon="@mipmap/ic_launcher_business" android:label="@string/app_name" android:largeHeap="true" android:roundIcon="@mipmap/ic_launcher_business_round" android:supportsRtl="true" android:theme="@style/AppTheme" android:usesCleartextTraffic="true" tools:replace="android:allowBackup,android:icon,android:theme" tools:ignore="GoogleAppIndexingWarning">

also check this link so that the "tools" prefix is ​​recognized

gbmarcos avatar Sep 01 '21 17:09 gbmarcos