Fix INSTALL_PARSE_FAILED_MANIFEST_MALFORMED - android

After searching three hours on the web I couldn't find a solution for my app , I'm having an error that says : INSTALL_PARSE_FAILED_MANIFEST_MALFORMED .. Any Help ! by the way I tried to test it before and it works great !! Any suggestions ?
This is the Manifest file :
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="19" />
<application
android:allowBackup="true"
android:icon="#drawable/icon"
android:label="#string/app_name"
android:theme="#style/AppTheme" android:name="">
<activity
android:name="com.abdullahadhaim.itc.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="com.google.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" />
<activity
android:name="com.abdullahadhaim.itc.Two"
android:label="#string/title_activity_two" >
</activity>
<activity
android:name="com.abdullahadhaim.itc.Three"
android:label="#string/title_activity_three" >
</activity>
<activity
android:name="com.abdullahadhaim.itc.Four"
android:label="#string/title_activity_four" >
</activity>
<activity
android:name="com.abdullahadhaim.itc.Five"
android:label="#string/title_activity_five" >
</activity>
<activity
android:name="com.abdullahadhaim.itc.Six"
android:label="#string/title_activity_six" >
</activity>
<activity
android:name="com.abdullahadhaim.itc.Seven"
android:label="#string/title_activity_seven" >
</activity>
<activity
android:name="com.abdullahadhaim.itc.Eight"
android:label="#string/title_activity_eight" >
</activity>
<activity
android:name="com.abdullahadhaim.itc.End"
android:label="#string/title_activity_end" >
</activity>
</application>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

Looks like your manifest file is missing those lines :
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.abdullahadhaim.itc"
android:versionCode="1"
android:versionName="1.0">
Try to add them, then clean-up the project and build it

Related

No supported device for my Android app in Google Play

I am aware this question is asked multiple times on stackoverflow, but the answers given in those posts don't help me out...
This is my manifest
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="be.gps.android"
android:versionCode="2"
android:versionName="0.0.2" >
<uses-sdk
android:minSdkVersion="16"
android:targetSdkVersion="19"/>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/TRL004451"
android:theme="#style/AppTheme" >
<activity
android:name=".StartUpActivity" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".activities.login.LoginActivity"
android:windowSoftInputMode="stateVisible|adjustResize|stateHidden" >
</activity>
<activity
android:name=".activities.useraccount.resetpassword.RequestResetPasswordActivity"
android:windowSoftInputMode="stateVisible|adjustResize|stateHidden" >
</activity>
<activity
android:name=".activities.useraccount.resetpassword.VerifyResetPasswordActivity"
android:windowSoftInputMode="stateVisible|adjustResize|stateHidden" >
</activity>
<activity
android:name=".activities.settings.ServerSettingsActivity"
android:windowSoftInputMode="stateVisible|adjustResize|stateHidden" >
</activity>
<activity
android:name=".activities.settings.FilterActivity"
android:windowSoftInputMode="stateVisible|adjustResize|stateHidden" >
</activity>
<activity
android:name=".activities.main.MainActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:windowSoftInputMode="stateVisible|adjustResize|stateHidden" >
</activity>
<activity
android:name=".activities.settings.DatePickerActivity"
android:windowSoftInputMode="stateVisible|adjustResize|stateHidden" >
</activity>
</application>
</manifest>
Seems to be a problem with a library I was using (signalR).
This post had the exact same issue : Supported devices 0 on Google play
I just replaced the signalR jars with these https://github.com/eak65/FixedSignalRJar and now I have 9000 supported devices.

Installation error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED any suggestions

** everyone with the same question has specific problems none of the have worked for me i've had more problems making this project than any other i've had.**
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.BinaryRelics"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="16"
android:targetSdkVersion="20" />
im pretty sure that the problem is somewhere between here and my last intent filter line
<application
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<activity
android:name=".Homescreen"
android:label="#string/app_name" >
</activity>
<activity
android:name="com.BinaryRelics.Arcademode"
android:label="#string/title_activity_arcademode"
android:parentActivityName="com.BinaryRelics.Homescreen" >
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="com.BinaryRelics.Homescreen" />
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<meta-data>
</meta-data>
</activity>
</application>
</manifest>

Android XML File

I am trying to build a real estate app. I am having the following problem. I am trying to run this in the Android Studio but i seem to get error that I am missing a required attribute height and width. Could someone please tell me what I am doing wrong? I will be very thankful.
This is my manifest:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.estate"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="17" />
<application
android:allowBackup="true"
android:configChanges="keyboardHidden|orientation"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name" >
<activity
android:name="com.example.estate.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>
<!-- Registration Activity -->
<activity
android:name=".RegActivity"
android:label="User Registration" >
</activity>
<activity
android:name=".ScreenActivity"
android:label="Welcome::" >
</activity>
<activity
android:name=".NewPropertyActivity"
android:label="Post a property/holding" >
</activity>
<activity
android:name=".AllProductsActivity"
android:label="Available Properties" >
</activity>
<activity
android:name=".EditProductActivity"
android:label="Property Details" >
</activity>
<activity
android:name=".MessageActivity"
android:label="Talk to the Admin" >
</activity>
<activity
android:name=".ReadComments"
android:label="Property" >
</activity>
<activity
android:name=".AddComment"
android:label="Property" >
</activity>
</application>
<!-- Internet Permissions -->
<uses-permission android:name="android.permission.INTERNET" />
</manifest>

Android || Error parsing XML, not well formed || Manifest.xml file

I am having trouble finding why my syntax is wrong in the manfest.xml file. It is probably something simple so it would be appreciated it you guys helped real quick. I must be missing a key syntax issue, as I have tried to fiddle with it and got nowhere so far. I had these xml files working earlier but randomly they deleted themselves.
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.androidassignment2"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="17" />
<application
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<activity
android:name="com.example.androidassignment2.Startup"
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="com.example.androidassignment2.MainActivity"
android:label="#string/title_activity_android_assignment2_1"
</activity>
<activity
android:name="com.example.androidassignment2.AndroidAssignment2_1"
android:label="#string/title_activity_android_assignment2_1"
</activity>
<activity
android:name="com.example.androidassignment2.AndroidAssignment2_2"
android:label="#string/title_activity_android_assignment2_1"
</activity>
<activity
android:name="com.example.androidassignment2.AndroidAssignment2_3"
android:label="#string/title_activity_android_assignment2_1"
</activity>
<activity
android:name="com.example.androidassignment2.AndroidAssignment2_4"
android:label="#string/title_activity_android_assignment2_1"
</activity>
<Activity
android:name="com.example.androidassignment2.AndroidAssignment2_5"
android:label="#string/title_activity_android_assignment2_1"
</Activity>
</application>
</manifest>
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.androidassignment2"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="17"/>
<application
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme">
<activity
android:name="com.example.androidassignment2.Startup"
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="com.example.androidassignment2.MainActivity"
android:label="#string/title_activity_android_assignment2_1">
</activity>
<activity
android:name="com.example.androidassignment2.AndroidAssignment2_1"
android:label="#string/title_activity_android_assignment2_1">
</activity>
<activity
android:name="com.example.androidassignment2.AndroidAssignment2_2"
android:label="#string/title_activity_android_assignment2_1">
</activity>
<activity
android:name="com.example.androidassignment2.AndroidAssignment2_3"
android:label="#string/title_activity_android_assignment2_1">
</activity>
<activity
android:name="com.example.androidassignment2.AndroidAssignment2_4"
android:label="#string/title_activity_android_assignment2_1">
</activity>
<activity
android:name="com.example.androidassignment2.AndroidAssignment2_5"
android:label="#string/title_activity_android_assignment2_1">
</activity>
</application>
</manifest>
You are missing a ">" in all your activity declarations after the first one.
One of the activity tags is written wrongly as <Activity>, thats why you were facing the error. It should be <activity>

launch errors fail to install

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.bpi.mygears"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="17" />
<application
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<activity
android:name="com.bpi.gears.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="com.bpi.gears.home"
android:label="#string/title_activity_home" >
</activity>
<activity
android:name="com.bpi.gears.profile"
android:label="#string/title_activity_profile" >
</activity>
</application>
</manifest>
this is my manifest feel free to check it and tell me where im wrong i would help a lot if you need to see all i can show you all my project has no error so im having a difficult time finding where im wrong...
I think you have some problems with your naming. Your package name is "com.bpi.mygears" and you are looking for activities that are com.bpi.gears. Your activities can just be named relative to the package. It should probably be more like this:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.bpi.mygears"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="17" />
<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=".home"
android:label="#string/title_activity_home" >
</activity>
<activity
android:name=".profile"
android:label="#string/title_activity_profile" >
</activity>
</application>
</manifest>
Assuming your stuff is in com.bpi.mygears. Otherwise, make that first line
package="com.bpi.gears" if your stuff is in gears.

Categories

Resources