简体   繁体   English

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

[英]Android drawable resources getting created in a debug folder?

I'm building an Android app using Android Studio & Kotlin. Historically, when I've added new image drawbles:我正在使用 Android Studio 和 Kotlin 构建一个 Android 应用程序。历史上,当我添加新图像 drawbles 时:

在此处输入图像描述

they were saved to the following folder: \app\src\main\res它们被保存到以下文件夹: \app\src\main\res

However, recently (potentially after an Android Studio update?) new image drawables now wind up here: \app\src\debug\res .然而,最近(可能在 Android Studio 更新之后?)新的可绘制图像现在出现在此处: \app\src\debug\res I haven't intentionally meant for that to happen.我不是故意要让那发生的。 Now my drawables are split between the two locations.现在我的可绘制对象在两个位置之间分开。 What caused this change?是什么导致了这种变化? How do I switch it back?我如何将其切换回来?

You need to select the right "Res Directory", "main" when adding the drawable:添加drawable时需要select正确的“Res Directory”,“main”:

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Xamarin android drawable资源文件夹的图像大小? - Xamarin android drawable resources folder image size? 在调试文件夹中创建android studio新布局 - android studio new layouts getting created in debug folder 如何动态引用Android中R.drawable文件夹中的资源? - How to dynamically reference resources in the R.drawable folder in Android? Android 资源问题:如何获取 res/drawable-hdpi 文件夹的标识符? - Android resources problem: How to getIdentifier for a res/drawable-hdpi folder? android drawable识别资源 - android drawable recognise resources Android可绘制资源问题 - Android drawable resources issue 带有数字的Android可绘制资源 - Android drawable resources with numbers 如果已经有drawable,我们是否还需要Android资源中的drawable文件夹 - hpi,mdpi,xhdpi,xxhdpi,xxxhdpi - Do we still need drawable folder in Android Resources if already have drawable - hpi, mdpi, xhdpi,xxhdpi, xxxhdpi android-将图像从可绘制文件夹添加到创建的文件目录中 - android - add images from drawable folder into a created file directory 如何使用 android studio 4 将图像插入或加载到资源文件夹中的可绘制文件夹? - How do I insert or load images to the drawable folder in the resources folder, using android studio 4?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM