如何创建Android Studio中新res文件夹 [英] How to create new res folder in Android Studio

查看:546
本文介绍了如何创建Android Studio中新res文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要添加本地化字符串为我的Andr​​oid应用程序。因此,我需要一个值-XX文件夹在我的res文件夹。

I want to add localized strings for my android app. Therefore I need a values-xx folder in my Res folder.

原始值文件夹中有一个蓝点,所以我尝试创建一个新的包,但包不能包含一个连字符所以这一定是错的。相反,我试着右击资源并选择新建 - > Android的资源目录,但这次没有任何反应。无对话或任何类型的我所看到的反应。

The original values folder has a blue dot, so I tried creating a new Package, but a package can't contain a hyphen so this must be wrong. Instead I tried right-clicking res and choosing New -> Android resource directory, but this time nothing happens. No dialog or reaction of any sort as I can see.

如何创建一个值-XX文件夹?

How do I create a values-xx folder?

编辑:我可以创建文件浏览器中的文件夹,这一切工作良好。它只是刺激不能够从Android Studio中做到这一点。

I can create the folder from file explorer and it all works good. It is just irritating to not be able to do it from inside Android Studio.

EDIT2:此错误是固定的Andr​​oid Studio中的较新版本

This bug is fixed in newer versions of Android Studio.

推荐答案

此错误是固定的Andr​​oid Studio中的新版本。

This bug is fixed in newer versions of Android Studio.

这篇关于如何创建Android Studio中新res文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆