其他分享
首页 > 其他分享> > 新建安卓项目后,manifest.xml中会出现大段的黄色警告

新建安卓项目后,manifest.xml中会出现大段的黄色警告

作者:互联网

解决办法,在activity中加

<action android:name="android.intent.action.VIEW" />

修改后如下:

    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">
        <activity android:name=".view.B02DynamicReceiver"/>
        <activity android:name=".view.B01MyBroadcast" />
        <activity android:name=".MainActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <receiver
            android:name=".receiver.B01Receiver"
            android:enabled="true"
            android:exported="true">
            <intent-filter>
                <action android:name="com.zhenhunfan.broadcast.demo.view.B01MyBroadcast.MYBROADCAST" />
            </intent-filter>
        </receiver>
        <receiver
            android:name=".receiver.B03SmsReceiver"
            android:enabled="true"
            android:exported="true">
            <intent-filter>
                <action android:name="android.provider.Telephony.SMS_RECEIVED" />
            </intent-filter>
        </receiver>
    </application>

标签:xml,解决办法,大段,中加,manifest,activity
来源: https://www.cnblogs.com/zhenhunfan2/p/13995141.html