Java 我的应用程序在启动时崩溃了?

Java 我的应用程序在启动时崩溃了?,java,android,android-studio,android-activity,Java,Android,Android Studio,Android Activity,在应用程序中的资产中添加AppleMyungjo.ttf,如下所示我认为您可以直接在资产文件夹中复制/粘贴字体AppleMyungjo.ttf。 尝试在资源中创建字体文件夹,然后将字体AppleMyungjo.ttf粘贴到其中。 希望这会有所帮助。它找不到名为AppleMyungio.ttf的字体。查找使用该字体的位置并替换它或正确定义字体。请将代码添加为文本,而不是图像。这使得这里的人更容易复制粘贴:)找不到字体字体/AppleMyungjo.ttf。检查是否在res-->font-->App

在应用程序中的资产中添加AppleMyungjo.ttf,如下所示

我认为您可以直接在资产文件夹中复制/粘贴字体AppleMyungjo.ttf。 尝试在资源中创建字体文件夹,然后将字体AppleMyungjo.ttf粘贴到其中。
希望这会有所帮助。

它找不到名为AppleMyungio.ttf的字体。查找使用该字体的位置并替换它或正确定义字体。请将代码添加为文本,而不是图像。这使得这里的人更容易复制粘贴:)找不到字体字体/AppleMyungjo.ttf。检查是否在res-->font-->AppleMyungjo.ttf未找到字体资源/AppleMyungjo.ttf>中添加了此字体,原因是:java.lang.RuntimeException:未找到字体资源/AppleMyungjo.ttf
2020-01-23 10:51:40.910 5891-5891/com.thomas.mirakle.crm_mirakle E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.thomas.mirakle.crm_mirakle, PID: 5891
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.thomas.mirakle.crm_mirakle/com.thomas.mirakle.crm_mirakle.MainActivity}: java.lang.RuntimeException: Font asset not found fonts/AppleMyungjo.ttf
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2825)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2886)
        at android.app.ActivityThread.-wrap12(ActivityThread.java)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1623)
        at android.os.Handler.dispatchMessage(Handler.java:102)
        at android.os.Looper.loop(Looper.java:186)
        at android.app.ActivityThread.main(ActivityThread.java:6509)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:914)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:804)
     Caused by: java.lang.RuntimeException: Font asset not found fonts/AppleMyungjo.ttf
        at android.graphics.Typeface.createFromAsset(Typeface.java:269)
        at com.thomas.mirakle.crm_mirakle.MainActivity.resource(MainActivity.java:435)
        at com.thomas.mirakle.crm_mirakle.MainActivity.onCreate(MainActivity.java:107)
        at android.app.Activity.performCreate(Activity.java:6992)
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2778)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2886) 
        at android.app.ActivityThread.-wrap12(ActivityThread.java) 
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1623) 
        at android.os.Handler.dispatchMessage(Handler.java:102) 
        at android.os.Looper.loop(Looper.java:186) 
        at android.app.ActivityThread.main(ActivityThread.java:6509) 
        at java.lang.reflect.Method.invoke(Native Method) 
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:914) 
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:804)