错误:INSTALL_PARSE_FAILED_MANIFEST_MALFORMED:(在二进制 XML 文件行 #125):<元数据>需要 android:value 或 android:resource 属性

Error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED: (at Binary XML file line #125): <meta-data> requires an android:value or android:resource attribute

提问人:karan kamath 提问时间:3/28/2022 最后编辑:Stefano Sansonekaran kamath 更新时间:3/30/2022 访问量:641

问:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.loginpage">
    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:testOnly="true"
        android:theme="@style/Theme.LoginPage" >

        <activity
            android:name=".MainActivity"
            android:exported="true" >
            <intent-filter android:exported="true">
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

        <activity
            android:name=".Entry"
            android:exported="true" >
        </activity>
      
        <activity
             android:name=".HousePref"
             android:exported="true" />
        <activity
             android:name=".Profile"
             android:exported="true" />
        <meta-data
            android:name="com.google.android.gms.version"
            android:value="@integer/google_play_services_version" />

    </application>

</manifest>

更改了 intent 过滤器的位置以更改我的第一页。 出现调试清单 xml 错误。我把意图过滤器放回原来的位置。从那时起就收到这些错误。

android xml 解析 google-play-services 元数据 android-manifest

评论

0赞 KotlinIsland 3/28/2022
请澄清您的具体问题或提供其他详细信息,以准确说明您的需求。正如目前所写的那样,很难确切地说出你在问什么。

答:

0赞 Stefano Sansone 3/28/2022 #1

你的标签似乎是正确的。
检查您的 .
也尝试和 .
meta-databuild.gradleBuild > Clean ProjectBuild > Rebuild Project

评论

0赞 karan kamath 3/28/2022
我检查了一下,我正在使用最新的 google play 服务。清理和重建项目后,我仍然遇到同样的错误。