繁体   English   中英

清单给我错误

[英]Manifest giving me errors

我的应用程序运行良好。 我将清单值更改为“false”以进行导出,现在没有任何效果。 当我运行该应用程序时,boolean vale 切换到“假”甚至不是“假”!!!

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.cepsa"
    android:versionCode="1"
    android:versionName="1.0" >

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

    <uses-permission android:name="android.permission.INTERNET" />

    <application
        android:allowBackup="true"
        android:appComponentFactory="androidx.core.app.CoreComponentFactory"
        android:debuggable="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.Cepsa" >
        <activity
            android:name="com.example.cepsa.Citernes"
            android:exported="fasle" />
        <activity
            android:name="com.example.cepsa.MainActivity"
            android:exported="true" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>

</manifest>

android:exported="fasle"有一个错字 - 它应该是android:exported="false"

我认为您需要从 android 工作室菜单而不是手动创建活动,以避免在AndroidManifest.xml. 看这一步

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM