在Android Studio中进行调试时,有人遇到过类似的OOM错误吗?
我认为它必须对TextView中的字体做些什么?
只有当我从一种活动变为另一种活动时,它才会发生,并且它的行为使某些人感到奇怪,有时甚至崩溃了……
2019-01-10 08:42:17.436 20608-20608/com.lanna.apk
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.lanna.apk, PID: 20608
java.lang.OutOfMemoryError: EnsureLocalCapacity
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:200)
at java.io.FileInputStream.<init>(FileInputStream.java:150)
at android.graphics.Typeface.getFullFlipFont(Typeface.java:1275)
at android.graphics.Typeface.getFontPathFlipFont(Typeface.java:1220)
at android.graphics.Typeface.SetFlipFonts(Typeface.java:1413)
at android.graphics.Typeface.SetAppTypeFace(Typeface.java:1549)
at android.app.Activity.onCreate(Activity.java:1020)
at android.support.v4.app.SupportActivity.onCreate(Compo
at android.support.v4.app.FragmentActivity.onCreate(Fragment
at android.support.v7.app.AppCompatActivity.onCreate(AppCompatActivit
at com.lanna.jurcicapp.MainActivity.onCreate(MainActivity.java:1063)
at android.app.Activity.performCreate(Activity.java:7183)
at android.app.Instrumentation.callActivityOnCreate(Instrument
at android.app.ActivityThread.performLaunchActivity(ActivityThrea
at android.app.ActivityThread.handleLaunchActivity(ActivityThr
at android.app.ActivityThread.-wrap11(Unknown Source:0)
at
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6944)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)