加载凭据时更新到 SDK 4.1.0 后 MapBox Android 应用程序崩溃
MapBox Android application crashes after update to SDK 4.1.0 when loading credentials
更新到 Android DropBox SDK 4.1.0 后,我的应用程序大部分时间都崩溃了:
MapboxEventManager: Error Trying to load Staging Credentials:
java.lang.NullPointerException: Attempt to invoke virtual method
'java.lang.String android.os.Bundle.getString(java.lang.String)' on a
null object reference
并且没有堆栈跟踪。
https://github.com/mapbox/mapbox-android-demo 上的 MapBox 示例崩溃并出现相同的错误(本地编译和从 Google Play 下载)。
这是已知问题吗?有什么办法可以避免这个错误吗?
这是一个已知问题,现在您可以尝试 clearing the apps cache. Switching the map style url to a different one will potentially fix the issue as well. A bug fix will be out later today for iOS and Android, you can follow the Android release here。
编辑:
4.1.1
现已发布,您可以在成绩档中升级。更多信息可以found here。
我有同样的错误,除此之外,我还有:
OfflineManager:读取存储密钥失败:null
所以这两条错误消息指的是同一个问题。解决方案是清除应用程序缓存。正如cammace所说,它解决了我的问题。
更新到 Android DropBox SDK 4.1.0 后,我的应用程序大部分时间都崩溃了:
MapboxEventManager: Error Trying to load Staging Credentials: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.os.Bundle.getString(java.lang.String)' on a null object reference
并且没有堆栈跟踪。
https://github.com/mapbox/mapbox-android-demo 上的 MapBox 示例崩溃并出现相同的错误(本地编译和从 Google Play 下载)。
这是已知问题吗?有什么办法可以避免这个错误吗?
这是一个已知问题,现在您可以尝试 clearing the apps cache. Switching the map style url to a different one will potentially fix the issue as well. A bug fix will be out later today for iOS and Android, you can follow the Android release here。
编辑:
4.1.1
现已发布,您可以在成绩档中升级。更多信息可以found here。
我有同样的错误,除此之外,我还有: OfflineManager:读取存储密钥失败:null
所以这两条错误消息指的是同一个问题。解决方案是清除应用程序缓存。正如cammace所说,它解决了我的问题。