Android – Google Maps V2 connection problem

I've received some crash reports. I'm not sure what caused it

This has only started to happen in recent updates. This may mean that it hasn't happened before or I'll introduce it. The only thing related to the network is to register the permission to check the network in Android manifest

Anyway, I hope you can point out my direction. This is the crash report

java.lang.RuntimeException: Error receiving broadcast Intent { act=android.net.conn.CONNECTIVITY_CHANGE flg=0x10000000 (has extras) } in maps.z.bz@405d7d40
at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:722)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:3691)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:847)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:605)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.IllegalArgumentException: Receiver not registered: maps.z.bz@405d7d40
at android.app.LoadedApk.forgetReceiverDispatcher(LoadedApk.java:610)
at android.app.ContextImpl.unregisterReceiver(ContextImpl.java:853)
at android.content.Contextwrapper.unregisterReceiver(Contextwrapper.java:331)
at maps.z.bz.onReceive(UnkNown Source)
at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:709)
... 9 more

resolvent:

This happens if you use the maps V2 API with the old (revision 4) and new (3.0.25) versions of Google play services

Google seems to have broken backward compatibility, so if people upgrade their Google play service, the applications released with the old library will be destroyed

At this point, you have two possibilities:

>Publish new version of app and update to New Library > restore old map

I've put forward a ticket, and Google has admitted it:

Please mark it with a star to get a higher priority from Google

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>