Android “font asset not found” error
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am developing for Android version 22. I am getting the runtime exception "Font asset not found" Here is the code: Typeface customFont = Typeface.createFromAsset(getAssets(), "fonts/norwester.otf"); And here is my file structure: I am guessing that my file structure is wrong because the "assets" folder does not show up in "Android" mode and only shows up in "Project Mode". What is the problem? 回答1: Assets folder should be under root directory of main folder which inner folder of src. For Reference Please find attached images of folder