使用Android原始的定位模块异常,complieSdkVersion=30, targetSdkVersion=28, 测试工具android9/10的华为真机(mate 9/10)。错误信息如下:
HUAWEI BLA-AL00 Android 10, API 29
2020-11-05 09:56:04.604 20871-20962/net.mlike.hlb E/LocationManager: thread not runable, ignore msg, state:TERMINATED, pkg:net.mlike.hlb
2020-11-05 09:56:05.557 20871-20962/net.mlike.hlb W/MessageQueue: Handler (android.location.LocationManager$GnssStatusListenerTransport$GnssHandler) {7881de6} sending message to a Handler on a dead thread
java.lang.IllegalStateException: Handler (android.location.LocationManager$GnssStatusListenerTransport$GnssHandler) {7881de6} sending message to a Handler on a dead thread
at android.os.MessageQueue.enqueueMessage(MessageQueue.java:618)
at android.os.Handler.enqueueMessage(Handler.java:759)
at android.os.Handler.sendMessageAtTime(Handler.java:708)
at android.os.Handler.sendMessageDelayed(Handler.java:678)
at android.os.Handler.sendMessage(Handler.java:615)
at android.os.Message.sendToTarget(Message.java:477)
at android.location.LocationManager$GnssStatusListenerTransport.onSvStatusChanged(LocationManager.java:1784)
at android.location.IGnssStatusListener$Stub.onTransact(IGnssStatusListener.java:142)
at android.os.Binder.execTransactInternal(Binder.java:1028)
at android.os.Binder.execTransact(Binder.java:1001)
希望大牛帮助