我正在开发一个实现samsung myknox基本功能的应用程序。但是,当我试图运行代码时,我收到了以下错误。
安装错误: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 :(得分:0)
<meta-data android:name="android.app.device_admin" />
meta-data
元素必须还包含value
或resource
属性,而不仅仅是name
。