Manifest error while implementing MaterialNavigationDrawer - android

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

Related

Paypal android INSTALL_PARSE_FAILED_MANIFEST_MALFORMED

I am trying to implement paypal sandbox into my application, i've followed every steps from the https://developer.paypal.com/sdk/in-app/android/ , however after importing everything and when i am trying to start my application i get the following error:
Installation did not succeed.
The application could not be installed: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED
List of apks:
[0] '/Users/xxx/Desktop/Work/shop_java/app/build/outputs/apk/debug/app-debug.apk'
Installation failed due to: 'INSTALL_PARSE_FAILED_MANIFEST_MALFORMED: Failed parse during installPackageLI: /data/app/vmdl695433300.tmp/base.apk (at Binary XML file line #63): com.paypal.pyplcheckout.home.view.activities.PYPLInitiateCheckoutActivity: Targeting S+ (version 31 and above) requires that an explicit value for android:exported be defined when intent filters are present'
And i don't quite understand why it is,
my Android manifest is:
<?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.example.xxx">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application
android:allowBackup="true"
android:fullBackupContent="true"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:networkSecurityConfig="#xml/network_security_config"
android:roundIcon="#mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="#style/AppTheme"
android:dataExtractionRules="#xml/data_extraction_rules">
<activity android:name=".ProductActivity"/>
<activity android:name=".promotion.PromotionItemActivity"
/>
<activity
android:name=".MainActivity"
android:exported="true"
android:launchMode="singleTask"
android:hardwareAccelerated="true"
tools:node="merge">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
However it fails, i tried to rebuild, tried to clean, invalidate caches, gradle runs ok, but when i try to run it says this, any solutions?
Try to update the Library in build.gradle now the last version is 0.6.1.
implementation 'com.paypal.checkout:android-sdk:0.6.1'

Manifestation merger failed with multiple errors, see logs

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>

Android get Manifest merger failed Error on using tools:replace

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"

Unable to instantiate activity componentinfo classnotfoundexception

I've developed an app but when I run it, it crashes and shows the error: android unable to instantiate activity componentinfo classnotfoundexception.
I've read a lot about this error. I've tried Project -> Properties -> Java Build Path -> Order & Export and ensure Android Private Libraries and all other library projects are checked.
I've also noticed that when I press ctrl and pass the mouse over, for example, .MainActivity in my Android Manifest file, it doesn't display or link me to the Activity, don't know why.
Any ideas about this problem? Thank you so much.
EDIT: Manifest added
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.isa.mememe"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="13"
android:targetSdkVersion="16" />
<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"
android:screenOrientation="portrait" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
</manifest>

Error in Android Manifest (sdk version)

I am getting an error in my manifest and I don't know why, please could you help
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.kaoticravers.djimmenze"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="8" />
<uses-permission android:name="android.permission.INTERNET" />
<application
android:icon="#drawable/ic_launcher"
android:label="#string/app_name" android:testOnly="false" android:debuggable="false">
<activity
android:name=".startingmain"
android:screenOrientation="portrait"
android:label="#string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
And in the console when I try run my app in my emulator I get this error:
[2012-04-03 23:10:31 - com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper] Parser exception for C:\Users\mark\workspace\KR Radio app\AndroidManifest.xml: Element type "manifest" must be followed by either attribute specifications, ">" or "/>".
[2012-04-03 23:10:31 - KR Radio app] Error in an XML file: aborting build.
I also had the same issue, there was previous error logs under Problems so I deleted those logs sorted the issue

Categories

Resources