Android 可绘制资源在调试文件夹中创建?

标签 android android-studio android-resources

我正在使用 Android Studio 和 Kotlin 构建 Android 应用。从历史上看,当我添加新的图像绘制时:

enter image description here

它们被保存到以下文件夹:\app\src\main\res

但是,最近(可能是在 Android Studio 更新之后?)新的图像可绘制对象现在出现在此处:\app\src\debug\res。我并不是故意要发生这种事。现在我的绘图被分配在两个位置之间。是什么导致了这种变化?如何切换回来?

最佳答案

添加drawable时需要选择正确的“Res Directory”、“main”:

enter image description here

关于Android 可绘制资源在调试文件夹中创建?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/74966798/

相关文章:

java - 单击不同按钮时如何在 Fragment 的 Textview 中设置不同的字符串?

android-studio - 除了枚举注释外,kotlin Android还可以替代枚举吗?

Android使用ImageResource和Drawable的区别

android - 动画文件夹没有出现

android - 在 Android 中,如何平滑地将背景从一种颜色淡化为另一种颜色? (如何使用线程)

具有 Internet 连接的 VirtualBox 上的 Android ICS x86

android - 关注listview的第一条记录

java - 如何在 Android Studio 中创建项目特定的文件模板?

安卓 gradle 构建 : Share library between parent and child

android - 从android中的xml文件读取数组