in my project as far as i'm using more library i have to use tools:replace for overriding some features such as supportsRtl, when i add tools name space and use tools:replace="android:supportsRtl,android:allowBackup" on application tag i get this error:
Error:Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed with multiple errors, see logs
manifest content:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.myapp.androidapp">
<uses-permission android:name="android.permission.INTERNET"/>
<application
android:name=".APP"
android:allowBackup="false"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:largeHeap="true"
android:roundIcon="#mipmap/ic_launcher_round"
android:theme="#style/AppTheme"
tools:replace="android:supportsRtl,android:allowBackup">
<activity android:name=".Ui.ActivityStartUpApplication">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<activity
android:name=".Ui.ApplicationRobot.view.ActivityRegisterRobot"
android:configChanges="screenSize|orientation"/>
<activity
android:name=".Ui.ActivityChannelContent.view.ActivityChannelContent"
android:configChanges="screenSize|orientation">
</activity>
<activity
android:name=".Ui.ActivityMain.view.ActivityMain"
android:configChanges="screenSize|orientation"/>
</application>
</manifest>
problem resolved by adding
android:supportsRtl="false"
before
tools:replace="android:supportsRtl,android:allowBackup"
Related
I've checked the merged manifest to find these errors
(Note that I'm a beginner android developer so every problem in android studio seems like the end of the world to me. Please help me solve this error, thanks in advance)
ERROR: tools:replace specified at line:6 for attribute android:appComponentFactory, but no new value specified App_Name.app main manifest (this file), line 5
ERROR: Validation failed, exiting App_Name.app main manifest (this file)
My Manifest.xml file
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.syddhoo.bookapp">
<application
android:allowBackup="true"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:roundIcon="#mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="#style/Theme.BookApp"
tools:replace="android:appComponentFactory">
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
I am running android 3.4.1 and all I did was invalidate caches and restart now I get the error gradle sync issues and this
ERROR: Failed to parse XML in C:\Users\J.Robinson\AndroidStudioProjects\App\app\src\main\AndroidManifest.xml
ParseError at [row,col]:[17,64]
Message: expected start or end tag
I've google stack for an hour and a half now and nothing seems to work. How do I solve this?
Image of error in question
Manifest.XML
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.jstudios.curbyourmeme">
<application
android:allowBackup="true"
android:icon="#mipmap/ic_launcher"
android:label="App"
android:roundIcon="#mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="#style/AppTheme">
<activity
android:name=".MainActivity"
android:label="app"
android:theme="#style/AppTheme.NoActionBar">
android:screenOrientation="portrait"
android:configChanges="orientation|keyboardHidden">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
Remove the > symbol in the line
android:theme="#style/AppTheme.NoActionBar">
It was causing the error
I get this error when I select my android device. I'm using it for game testing with libgdx.
Android resource linking failed
C:\Users\oguzh\AndroidStudioProjects\Flying Smurfs\android\build\intermediates\ınstant_run_merged_manıfests\debug\processDebugManifest\instant-run\AndroidManifest.xml:11: error: attribute android:appCategory not found.
error: failed processing manifest.
And here is my manifest xml:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.oguzhanaygun.flyingsmurfs" >
<application
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:isGame="true"
android:appCategory="game"
android:label="#string/app_name"
android:theme="#style/GdxTheme" >
<activity
android:name="com.oguzhanaygun.flyingsmurfs.AndroidLauncher"
android:label="#string/app_name"
android:screenOrientation="landscape"
android:configChanges="keyboard|keyboardHidden|navigation|orientation|screenSize|screenLayout">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
add tools:targetApi="o" to the application node and target an API level >= 26
... or remove the android:appCategory="game", when targetting an API level < 26.
I have some problems with manifest in android java programming. I do not know how to fix it. Any help is appreciated.
It says The processing instructions goal match........ is not allowed. And in the beginning: Serious: null = SERIOUS : null – .
And: Error:Cannot read packageName from C:\Users\arnpet\AndroidStudioProjects\UltimateHogskoleprovet\app\src\main\AndroidManifest.xml
Here is the manifext file:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.arnpet.ultimatehogskoleprovet" >
<application
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<activity
android:name=".MainActivity"
android:label="#string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".pageBeforeAction"
android:label="#string/title_activity_page_before_action" >
</activity>
<activity
android:name=".toppLista"
android:label="#string/title_activity_topp_lista" >
</activity>
<activity
android:name=".information"
android:label="#string/title_activity_information" >
</activity>
<activity
android:name=".GameAction"
android:label="#string/title_activity_game_action" >
</activity>
<activity
android:name=".QuestionBox"
android:label="#string/title_activity_question_box" >
</activity>
</application>
It seems like your AndroidManifest.xml is malformed. Its missing the opening & closing tags.
Try to create a new project and look at its AndroidManifest.xml.
The beginning of an Android Manifest usually looks like:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.xyz"
android:versionCode="229"
android:versionName="2.2.9" >
<uses-sdk
android:minSdkVersion="12"
android:targetSdkVersion="15" />
<uses-permission ... />
<application>...</application>
</manifest>
Inside your <manifest> tag set attribute package = "[your package]".
First of all: Is this the whole AndroidManifest.xml? Because you missing the manifest tag. In this tag, there is a attribute package defining the packagename of your app.
See the documentation for more information and example of a complete manifest file.
I am trying to integrate this Material Drawer to my project, however i am facing a Manifest error. I have tried changing the minSdk and targetSdk as it is suggested on some similar questions but with no success.
Here is the error i get:
Error:Execution failed for task ':app:processDebugManifest'.
> Error: [project_path\build\intermediates\exploded-aar\it.neokree\MaterialNavigationDrawer\1.2.9\AndroidManifest.xml:8] Invalid instruction 'overrideLibrary', valid instructions are : REMOVE,REPLACE,STRICT
Here is my app manifest:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="my.package.name">
<application
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme">
<activity
android:name=".activities.SplashScreenActivity"
android:configChanges="orientation"
android:label="#string/app_name"
android:theme="#android:style/Theme.NoTitleBar.Fullscreen">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".MainActivity"
android:theme="#style/NavigationDrawer" />
</application>
</manifest>
I am using Android Studio (Beta) 0.8.0.
What is causing this error?
I solved the error by going to the MaterialDrawer library Manifest and removing the uses-sdk:
<uses-sdk
android:minSdkVersion="10"
android:targetSdkVersion="21"
tools:overrideLibrary="at.markushi.ui" >
</uses-sdk>
I am not sure if that will bring up any error later on but at least it solve the problem i had