2016-04-04 59 views
0

我正在開發一個實現三星myknox基本功能的應用程序。但是當我試圖運行代碼時,我得到了下面的錯誤。應用程序安裝失敗錯誤[INSTALL_PARSE_FAILED_MANIFEST_MALFORMED]

安裝錯誤:INSTALL_PARSE_FAILED_MANIFEST_MALFORMED

我嘗試這些鏈接:

Installation error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED?

How to fix INSTALL_PARSE_FAILED_MANIFEST_MALFORMED in my android application

Android Studio : INSTALL_PARSE_FAILED_MANIFEST_MALFORMED

Screen shot of error which i'm getting at time of run the application.

AndroidManifest.xml中

<?xml version="1.0" encoding="utf-8"?> 

<uses-permission android:name="android.permission.sec.MDM_HW_CONTROL" /> 
<uses-permission android:name="android.permission.sec.MDM_APP_MGMT" /> 

<application 
    android:icon="@mipmap/ic_launcher" 
    android:label="@string/app_name"> 
    <activity 
     android:name="com.signity.myknox.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> 

    <receiver 
     android:name="com.signity.myknox.SampleAdmin" 
     android:permission="android.permission.BIND_DEVICE_ADMIN"> 
     <meta-data android:name="android.app.device_admin" /> 
     <intent-filter> 
      <action android:name="android.app.action.DEVICE_ADMIN_ENABLED" /> 
     </intent-filter> 
    </receiver> 
    <receiver 
     android:name="com.signity.myknox.SampleLicenseReceiver" 
     android:enabled="true"> 
     <intent-filter> 
      <action android:name="edm.intent.action.license.status" /> 
     </intent-filter> 
    </receiver> 
</application> 

回答

0
<meta-data android:name="android.app.device_admin" /> 

meta-data元素也必須有一個valueresource屬性,而不僅僅是name

相關問題