首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >INSTALL_PARSE_FAILED_MANIFEST_MALFORMED

INSTALL_PARSE_FAILED_MANIFEST_MALFORMED
EN

Stack Overflow用户
提问于 2014-11-03 19:49:40
回答 6查看 38.8K关注 0票数 24

我尝试了所有的方法,重新命名包,更改权限等等,但是我仍然在我的控制台上看到了错误INSTALL_PARSE_FAILED_MANIFEST_MALFORMED。

我尝试从logcat登录,这就是它所说的“installPackageLI期间的失败解析”和installPackageLI /data/app/vmdl170122893.tmp/base.apk (在二进制XML文件行#33):没有有效的android:name“,active说"Debugger不再激活”

我正在尝试在em21 ie Lollipop上运行这个程序。

代码语言:javascript
复制
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="Ca.Rushabh.Mobileproject"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk
    android:minSdkVersion="8"
    android:targetSdkVersion="21" />

<uses-feature
    android:glEsVersion="0x00020000"
    android:required="true" />

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />

<permission
    android:name="com.example.mymapsv2.permission.MAPS_RECEIVE"
    android:protectionLevel="signature" />

<uses-permission android:name="com.example.mymapsv2.permission.MAPS_RECEIVE" />

<application
    android:allowBackup="true"
    android:icon="@drawable/blue_droid"
    android:label="@string/app_name"
    android:theme="@style/AppTheme" >
    <activity
        android:name="Ca.Rushabh.Mobileproject.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="Ca.Rushabh.Mobileproject.About"
        android:label="@string/title_activity_about"
        android:theme="@android:style/Theme.Dialog" >
    </activity>
    <activity
        android:name="Ca.Rushabh.Mobileproject.ToDoList"
        android:label="abcd" />
    <activity
        android:name="Ca.Rushabh.Mobileproject.ToDoDetailActivity"
        android:windowSoftInputMode="stateVisible|adjustResize" />

    <provider
        android:name="Ca.Rushabh.Mobileproject.MyToDoContentProvider"
        android:exported="false"
        android:authorities="com.example.mobileproject.todos.contentprovider" />

    <activity
        android:name="Ca.Rushabh.Mobileproject.ViewAnimationActivity"
        android:label="@string/title_animation" >
    </activity>
    <activity
        android:name="Ca.Rushabh.Mobileproject.ViewAnimation2"
        android:label="@string/title_animation" >
    </activity>
    <activity
        android:name="Ca.Rushabh.Mobileproject.ContactUs"
        android:label="@string/title_activity_contact_us"
        android:theme="@android:style/Theme.Dialog" >
    </activity>
    <activity
        android:name="Ca.Rushabh.Mobileproject.GoogleMapV2"
        android:label="@string/title_activity_google_map_v2" >
    </activity>
    <meta-data
        android:name="com.google.android.gms.version" />
    <meta-data
        android:name="com.google.android.maps.v2.API_KEY"
        android:value="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" />
</application>

</manifest>
EN

回答 6

Stack Overflow用户

回答已采纳

发布于 2014-11-03 20:46:17

正如我和RC。发现的那样,有不止一个问题。

  • 将所有包名更改为小写。
  • 更新<meta-data>属性以具有有效值。

元数据的正确代码:

代码语言:javascript
复制
<meta-data
    android:name="com.google.android.gms.version"
    android:value="@integer/google_play_services_version" />

资料来源:

票数 15
EN

Stack Overflow用户

发布于 2021-06-10 06:51:58

如果有人在Android 12 (Android )预览版上发现这个错误。将所有依赖项更新为最新的,请添加-

代码语言:javascript
复制
android:exported="true"

对于在应用程序的<activity>文件中声明了<intent-filter>的任何<receiver><activity-alias><service><receiver>组件。

请参阅此链接Android 12 API 31的行为更改

票数 41
EN

Stack Overflow用户

发布于 2022-04-01 10:41:52

我得到了这个问题

代码语言:javascript
复制
failed to install c:\users\nisha jain\documents\grayopus 
project\rxsmile\build\app\outputs\flutter-apk\app.apk: failure 
[install_parse_failed_manifest_malformed: failed parse during 
installpackageli: /data/app/vmdl914617141.tmp/base.apk (at binary xml file 
line #27): com.grayopus.rxsmile.mainactivity: targeting s+ (version 31 and 
above) requires that an explicit value for android:exported be defined when 
intent filters are present] error launching application on sm e625f.

但是通过在AndroidManifest.xml中添加这一行来解决这个问题。

代码语言:javascript
复制
android:exported="true"
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/26721951

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档