java.lang.IllegalStateException: AssetManager has been finalized

独自空忆成欢 提交于 2019-12-05 04:23:47

Your stacktrace links to this class in the AOSP.

I think this crash has nothing to do with your app, but as an error in the Launcher class. Try installing from USB debugging and see if that works.

But there are still some details that are blurry. These lines are (from bottom of the stacktrace to the top) the lines that cause problems in com.android.launcher2 package:

https://android.googlesource.com/platform/packages/apps/Launcher2/+/android-4.2.2_r1/src/com/android/launcher2/AppsCustomizePagedView.java#584

https://android.googlesource.com/platform/packages/apps/Launcher2/+/master/src/com/android/launcher2/Launcher.java#2469

https://android.googlesource.com/platform/packages/apps/Launcher2/+/master/src/com/android/launcher2/Launcher.java#2442

From this error, I assume you are using a Nexus or Pixel (or any device with the unaltered source code, meaning stock android.).

From what I can tell from this error, this is not an error related to your app. It appears to be an issue with the launcher you are using. Try installing from USB debugging, or change launcher, and see if that works. Try rebooting your device as well.

Further, from what I see of your code, there are no parcelable classes in use

This error can also be caused when Instant Run loses connection with the Android Emulator as a result of which new app changes are not persisted in the emulator.

Running the app again will solve the issue.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!