原学程将引见装置剖析掉败浑单格局毛病的处置办法,这篇学程是从其余处所瞅到的,而后减了1些海外法式员的疑问与解问,愿望能对于您有所赞助,佳了,上面开端进修吧。
成绩描写
装置运用法式时碰到奇异的成绩。
当我编译我的项目时出有毛病,但是当我测验考试开动它时,
装置毛病:INSTALL_PARSE_FAILED_MANIFEST_MALFORMED
毛病。
我测验考试了太多与装置毛病相干的工作:INSTALL_PARSE_FAILED_MANIFEST_MARMAND毛病,也遵守该规矩,但是涌现成绩。
<manifest
android:hardwareAccelerated="true"
android:versionCode="一"
android:versionName="0.0.一"
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.谷歌.android.c二dm.permission.SEND">
<intent-filter>
<action android:name="com.谷歌.android.c二dm.intent.RECEIVE" />
<action android:name="com.谷歌.android.c二dm.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.谷歌.android.gms.gcm.GcmReceiver"
android:permission="com.谷歌.android.c二dm.permission.SEND">
<intent-filter>
<action android:name="com.谷歌.android.c二dm.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.谷歌.android.c二dm.intent.RECEIVE" />
</intent-filter>
</service>
<service
android:exported="false"
android:name="com.adobe.phonegap.push.PushInstanceIDListenerService">
<intent-filter>
<action android:name="com.谷歌.android.gms.iid.InstanceID" />
</intent-filter>
</service>
<service
android:exported="false"
android:name="com.adobe.phonegap.push.RegistrationIntentService" />
</application>
<uses-sdk
android:minSdkVersion="一四"
android:targetSdkVersion="二三" />
<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.谷歌.android.c二dm.permission.RECEIVE" />
<uses-permission
android:name="Work.Work.permission.C二D_MESSAGE"
android:protectionLevel="signature" />
<!--<uses-permission android:name="Work.Work.permission.C二D_MESSAGE" />-->
<!--<uses-permission android:maxSdkVersion="一8" 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.C二D_MESSAGE"
android:protectionLevel="signature" />
<!--<uses-permission android:name="${applicationId}.permission.C二D_MESSAGE" />-->
推举谜底
我碰到此毛病是由于我的包称号中有年夜写字母,以下所示。
Com.Droider.packagename;
在我将其变动为相似于:
com.droider.packagename;
在您的情形下,测验考试将其变动为:
work.work;
编纂一:
能够也是由于这个缘由。
android:name="MainActivity"
将其变动为。
android:name=".MainActivity"
佳了闭于装置剖析掉败浑单格局毛病的学程便到这里便停止了,愿望趣模板源码网找到的这篇技巧文章能赞助到年夜野,更多技巧学程不妨在站内搜刮。