【问题标题】:android:supportsRtl="true" exist, but notandroid:supportsRtl="true" 存在,但不存在
【发布时间】:2022-07-06 15:45:28
【问题描述】:

我在清单中有这个应用程序标签,但设计器总是提示我添加 android:supportsRtl="true",该应用程序在我测试的任何设备上都能完美运行,但我仍然有这些错误并且看不到设计. 在我点击帮助链接(图 2)后,什么也没发生。 我在Android Studio Electric Eel | 2022.1.1 Canary 3Android Studio Chipmunk | 2021.2.1 Patch 1 上测试过

    <application
    android:name=".infrastructure.App"
    android:allowBackup="true"
    android:dataExtractionRules="@xml/data_extraction_rules"
    android:fullBackupContent="@xml/backup_rules"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:roundIcon="@mipmap/ic_launcher_round"
    android:theme="@style/Theme....."
    tools:targetApi="31"
    android:supportsRtl="true">

compose true (even before using compose, I have this problem)
minSdk 21
targetSdk 32
compileSdk 32

Image 1 - The Error In Desing

Image 2 - The Error Details

【问题讨论】:

    标签: android android-layout android-manifest manifest


    【解决方案1】:

    你可以添加

    tools:replace="android:supportsRtl"
    

    终于

    <application
        android:name=".infrastructure.App"
        android:allowBackup="true"
        android:dataExtractionRules="@xml/data_extraction_rules"
        android:fullBackupContent="@xml/backup_rules"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:theme="@style/Theme....."
        tools:targetApi="31"
        android:supportsRtl="true"
        tools:replace="android:supportsRtl"/>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-09-03
      • 2018-03-26
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多