Failure SET PARAM FAILURE MANIFEST

When installing the application there is a strange problem.

When I compile my project, there is no error, but when I try to run it, they show me

Installation Error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED Error.

I tried so many things related to the installation error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED error, and also follow this rule, but something is wrong.

 <manifest android:hardwareAccelerated="true" android:versionCode="1" android:versionName="0.0.1" package="Work.Work" xmlns:android="http://schemas.android.com/apk/res/android"> <supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" /> <uses-permission android:name="android.permission.INTERNET" /> <application android:hardwareAccelerated="true" android:icon="@drawable/icon" android:label="@string/app_name" android:supportsRtl="true"> <activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" android:label="@string/activity_name" android:launchMode="singleTop" android:name="MainActivity" android:screenOrientation="portrait" android:theme="@android:style/Theme.DeviceDefault.NoActionBar" android:windowSoftInputMode="adjustResize"> <intent-filter android:label="@string/launcher_name"> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <activity android:exported="true" android:name="com.plugin.gcm.PushHandlerActivity" /> <receiver android:name="com.plugin.gcm.CordovaGCMBroadcastReceiver" android:permission="com.google.android.c2dm.permission.SEND"> <intent-filter> <action android:name="com.google.android.c2dm.intent.RECEIVE" /> <action android:name="com.google.android.c2dm.intent.REGISTRATION" /> <category android:name="Work.Work" /> </intent-filter> </receiver> <service android:name="com.plugin.gcm.GCMIntentService" /> <activity android:exported="true" android:name="com.adobe.phonegap.push.PushHandlerActivity" /> <receiver android:name="com.adobe.phonegap.push.BackgroundActionButtonHandler" /> <receiver android:exported="true" android:name="com.google.android.gms.gcm.GcmReceiver" android:permission="com.google.android.c2dm.permission.SEND"> <intent-filter> <action android:name="com.google.android.c2dm.intent.RECEIVE" /> <category android:name="${applicationId}" /> </intent-filter> </receiver> <service android:exported="false" android:name="com.adobe.phonegap.push.GCMIntentService"> <intent-filter> <action android:name="com.google.android.c2dm.intent.RECEIVE" /> </intent-filter> </service> <service android:exported="false" android:name="com.adobe.phonegap.push.PushInstanceIDListenerService"> <intent-filter> <action android:name="com.google.android.gms.iid.InstanceID" /> </intent-filter> </service> <service android:exported="false" android:name="com.adobe.phonegap.push.RegistrationIntentService" /> </application> <uses-sdk android:minSdkVersion="14" android:targetSdkVersion="23" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.GET_ACCOUNTS" /> <uses-permission android:name="android.permission.WAKE_LOCK" /> <uses-permission android:name="android.permission.VIBRATE" /> <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" /> <uses-permission android:name="Work.Work.permission.C2D_MESSAGE" android:protectionLevel="signature" /> <!--<uses-permission android:name="Work.Work.permission.C2D_MESSAGE" />--> <!--<uses-permission android:maxSdkVersion="18" android:name="android.permission.WRITE_EXTERNAL_STORAGE" />--> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-permission android:name="${applicationId}.permission.C2D_MESSAGE" android:protectionLevel="signature" /> <!--<uses-permission android:name="${applicationId}.permission.C2D_MESSAGE" />--> 
+6
source share
9 answers

I had this error because I had capital letters in the name of my package like this.

 Com.Droider.packagename; 

After I changed it to something like:

 Com.Droider.packagename; 

In your case, try changing it to:

 work.work; 

EDIT 1:

Perhaps that also.

 android:name="MainActivity" 

Change it to.

 android:name=".MainActivity" 
+22
source

Just check everything

  android:name="..." 

in your manifest and see if you forgot to put a dot at the beginning of the name that should have it, basically the names of your classes.

+2
source
 package="Work" 

The characters of the APK manifest package must contain at least one delimiter . in them. For instance:

 package="work.work" 

You can read PackageParser to learn about the various installation methods that can complete with INSTALL_PARSE_FAILED_MANIFEST_MALFORMED .

+1
source

In my case, I will set the ':' value to android: process

 <service android:name=".Views.Views.services.MyService" android:process=":remote" /> 

It works for me

+1
source

The name of your package has a capital letter. Try refactoring your package so that all letters are lowercase. To do this, in the panel for your project, make sure that you are in Android viewing mode, then click the gear located a little to the right of the view indicator, and then make sure that the compact empty middle packages are not marked. Then right-click on your package with a capital letter in it and select refactor β†’ rename. Change it to lowercase, double check that your AndroidManifest.xml is now lowercase, if not, manually edit it.

0
source

I have the same problem. I had to create a new Start with a capital letter package. This leads to the same problem. Check all the folder names and make sure they are written in small letters .

it was my problem

Good coding

0
source

in my case, I placed the application class outside the main folder of the main package.

just move the application class to the root action folder.

0
source

in my case, if you changed your activity to a fragment then delete this activity name from the androidmanifest.xml file

 <activity android:name=".fragment_change_password" android:screenOrientation="portrait" /> 

remove this line type from manifest file

-1
source

In the manifest file, a metadata tag will be available for each XML resource file. If this metadata does not have android: resource location, this problem will occur.

Example:

  <meta-data android:name="com.google.android.actions" android:resource="@drawable/cellphone"/> 
-1
source

All Articles