Blankj / Blankj/AndroidUtilCode

独立进程下会闪退

Open
#1,721 0 comments 0 reactions 1 assignee Claimed by @Blankj View on GitHub
bug
Dominant language
Java
Stars
33.6k
Forks
10.6k
PR merge metrics
No merged PRs in 30d

Description

## 独立进程下会闪退

新开启了一个独立进程的Activity,然后启动这个Activity,就闪退了

- AndroidUtilCode 的版本:1.30.0
- 出现 Bug 的设备型号:所有设备
- 设备的 Android 版本:所有版本

## 相关代码

## 异常堆栈

This is not main thread, and the caller should invoke Looper.prepare() and Looper.loop()called byandroid.os.Handler.:122 android.app.Activity.:930 com.blankj.utilcode.util.UtilsActivityLifecycleImpl.:41 com.blankj.utilcode.util.UtilsBridge.getApplicationByReflect:101 com.blankj.utilcode.util.Utils.getApp:71 com.cretin.lib.base.module.constant.HeaderConstantHelper.getDeviceName:59 com.cretin.lib.base.module.ModuleApplication$updateDevice$1.invokeSuspend:92 com.cretin.lib.base.module.ModuleApplication$updateDevice$1.invoke:8

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.