无法看到“字体” Android Studio中的资源类型 [英] Cannot see "font" resource type in Android studio

查看:392
本文介绍了无法看到“字体” Android Studio中的资源类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在浏览新的Android O功能,现在的应用程序可以直接将字体添加到 res 文件夹中。根据使用字体的android



我不能在下拉菜单中看到font选项,因此我无法创建字体的android资源目录。



我的Android工作室详细信息:

Android Studio 2.3
Build#AI-162.3764568,构建于2017年2月24日
JRE:1.8.0_112-release-b06 x86_64
JVM:由JetBrains sro开发的OpenJDK 64位服务器VM

正如Mike在评论中所说,目前Android Studio 2.4包含了对Android O提供的所有新开发者功能的支持。



我使用了加拿大海峡的Android Studio 2.4 Preview,&在选择Android资源目录时,我可以看到font的选项。



以下是相同的图片。




I was going through the new Android O features, and one of the new thing is now app can add fonts directly into res folder. As per the android documentation for working with fonts, one of the 1st step is to create a new resource type named "font" using Right-click the res folder and go to New > Android resource directory.

But I could not see "font" option available for resource type in the drop down in android studio.

Below is the image attached.

I am not able to see "font" option in the drop down, and hence I am unable to create font android resource directory.

My Android studio details:

Android Studio 2.3 Build #AI-162.3764568, built on February 24, 2017 JRE: 1.8.0_112-release-b06 x86_64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o

解决方案

As said by Mike in comments, currently Android Studio 2.4 includes support for all the new developer features available with Android O.

I used Android Studio 2.4 Preview from Canary Channel, & I could see the option for "font" when choosing the Android resource directory.

Below is the image for the same.

这篇关于无法看到“字体” Android Studio中的资源类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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