【问题标题】:Android Studio displays two drawable with the same nameAndroid Studio 显示两个同名的drawable
【发布时间】:2020-08-07 15:47:19
【问题描述】:

Androis Studio 显示两个同名的可绘制对象,其中一个包含与另一个不同的图片。

标有v24 的一张包含不正确的图片(默认Android 图标),另一张包含正确的图片,这是我用Image Asset Studio 生成的。

如何清除不正确的图片或使其正确?

【问题讨论】:

    标签: android android-studio launcher-icon


    【解决方案1】:

    您不需要删除它,但您可以右键单击然后删除。图片有什么问题?

    【讨论】:

    • 如果我删除它,它会说它在ic_launcer.xmlic_launcher_round.xml 中使用,而在这些文件中它写的是<foreground android:drawable="@drawable/ic_launcher_foreground"/>,即w/o v24。
    【解决方案2】:

    这是 API 级别。 Android 7.0(API 级别 24)意味着 minSdkVersion 24,您可以在 gradle 文件中看到您的 minSdkVersion。

    您也可以删除 ic_launcher_foreground.xml (v24)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-03-09
      • 2019-02-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-03-24
      • 1970-01-01
      相关资源
      最近更新 更多