乡下人产国偷v产偷v自拍,国产午夜片在线观看,婷婷成人亚洲综合国产麻豆,久久综合给合久久狠狠狠9

  • <output id="e9wm2"></output>
    <s id="e9wm2"><nobr id="e9wm2"><ins id="e9wm2"></ins></nobr></s>

    • 分享

      【錯誤記錄】Manifest 清單文件報錯 ( ..required to specify an explicit value for `android:exported` when the .. )

       hncdman 2022-08-04 發(fā)布于湖南
      •  一、報錯信息

      •  二、解決方案

      一、報錯信息


      修改 AndroidManifest.xml 清單文件時 , 發(fā)現(xiàn)合并清單文件時報錯 , 該報錯不影響程序運行 ;

      報錯信息 :

      Merging Errors:
      Error:
      Apps targeting Android 12 and higher are required to specify an explicit
      value for `android:exported` when the corresponding component has an
      intent filter defined.
      See https://developer./guide/topics/manifest/activity-element#exported
      for details. AD_ID_Test.app main manifest (this file)

      • 1.

      • 2.

      • 3.

      • 4.

      • 5.

      • 6.

      • 7.

      【錯誤記錄】Manifest 清單文件報錯 ( ..required to specify an explicit value for `android:exported` when the .. )_Manifest

      二、解決方案


      這是 Android 12 的行為變更中的一條 , 參考  行為變更:以 Android 12 為目標平臺的應用 官方文檔 ;

      【錯誤記錄】Manifest 清單文件報錯 ( ..required to specify an explicit value for `android:exported` when the .. )_android studio_02

      在每個組件上添加

      android:exported="false"1.

      約束屬性 ;

      修改前的清單文件 :

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

      <uses-permission android:name="com.google.android.gms.permission.AD_ID"/>

      <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/Theme.AD_ID_Test">

      <meta-data android:name="student" android:value="${name}" />

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

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

      </manifest>

      • 1.

      • 2.

      • 3.

      • 4.

      • 5.

      • 6.

      • 7.

      • 8.

      • 9.

      • 10.

      • 11.

      • 12.

      • 13.

      • 14.

      • 15.

      • 16.

      • 17.

      • 18.

      • 19.

      • 20.

      • 21.

      • 22.

      • 23.

      • 24.

      • 25.

      • 26.

      修改后的清單文件 :

      登錄后復制 

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

      <uses-permission android:name="com.google.android.gms.permission.AD_ID"/>

      <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/Theme.AD_ID_Test">

      <meta-data android:name="student" android:value="${name}" />

      <activity android:name=".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>

      • 1.

      • 2.

      • 3.

      • 4.

      • 5.

      • 6.

      • 7.

      • 8.

      • 9.

      • 10.

      • 11.

      • 12.

      • 13.

      • 14.

      • 15.

      • 16.

      • 17.

      • 18.

      • 19.

      • 20.

      • 21.

      • 22.

      • 23.

      • 24.

      • 25.

      • 26.

      • 27.

      修改點 :

      【錯誤記錄】Manifest 清單文件報錯 ( ..required to specify an explicit value for `android:exported` when the .. )_Manifest_03

      添加完畢之后 , 報錯消失 , Manifest 清單文件合并成功 ;

      【錯誤記錄】Manifest 清單文件報錯 ( ..required to specify an explicit value for `android:exported` when the .. )_android studio_04

        本站是提供個人知識管理的網(wǎng)絡存儲空間,所有內容均由用戶發(fā)布,不代表本站觀點。請注意甄別內容中的聯(lián)系方式、誘導購買等信息,謹防詐騙。如發(fā)現(xiàn)有害或侵權內容,請點擊一鍵舉報。
        轉藏 分享 獻花(0

        0條評論

        發(fā)表

        請遵守用戶 評論公約

        類似文章 更多