Android Manifest error, @string/app_name error,Unable to merge android manifests @string/app_name error?
ERROR IN CONSOLE... what should i do? please help me C:\Users\Blaire\Desktop\RollTheBall_v1.0\Temp\StagingArea\AndroidManifest-main.xml:4:90-122 Error: Attribute application@label value=(@string/app_name) from AndroidManifest-main.xml:4:90-122 is also present at AndroidManifest.xml:13:9-37 value=(Native Popup). Suggestion: add 'tools:replace="android:label"' to element at AndroidManifest-main.xml:4:3-12:17 to override.
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
ANDROID MANIFEST - MAIN . XML
<activity android:name="com.unity3d.player.UnityPlayerActivity" android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<meta-data android:name="unityplayer.UnityActivity" android:value="true" />
</activity>
,I tired of searching and reading about the error of " unable to merge android manifest" for so long, can anyone help me with this one?
Error in console:
C:\Users\Blaire\Desktop\RollTheBall\Temp\StagingArea\AndroidManifest-main.xml:4:90-122 Error: Attribute application@label value=(@string/app_name) from AndroidManifest-main.xml:4:90-122 is also present at AndroidManifest.xml:13:9-37 value=(Native Popup). Suggestion: add 'tools:replace="android:label"' to element at AndroidManifest-main.xml:4:3-12:17 to override.
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Android manifest- main . xml
<activity android:name="com.unity3d.player.UnityPlayerActivity" android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<meta-data android:name="unityplayer.UnityActivity" android:value="true" />
</activity>
Answer by Haytham_Kenway · Mar 04, 2021 at 10:11 AM
I am posting this late, but probably will help someone..
Find the manifest.xml file described by error in the temp folder, copy it and past in the assets->plugins->android directory and rename it to AndroidManifest.xml
Then edit it and find the and inside it paste the suggested solution.
For example, I had to paste tools:replace="android:label" so it would look like
ps: I spent a whole day on this, if this worked for you, upvote so others can find it. If it didn't please comment.