Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Android - Exception on mapReady - black map

未关闭
#19 6 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
android, typescript
领域
mobile

调研方向

首先,在运行 Android 11 的 Pixel 3 上复现黑色地图行为,并检查 MapboxTelemetry 和 okhttp3 失败附近的 adb logcat 输出。检查 manifest XML service tag 和 access token 配置,然后将设备行为与正常工作的模拟器情况进行比较。当调用 mapReady 且地图在没有报告的异常的情况下完成渲染时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

6.1.0 and 6.2.0

Android 11, tns-android 6.5.3
On the emulator it works fine. But on my Pixel 3, it never calls the mapReady function.
Looking at the adb logcat I see this..

01-30 15:19:24.206 13443 13597 W CrashReporter: Root directory doesn't exist
01-30 15:19:24.348 13443 13443 E TelemetryUtils: java.lang.SecurityException: getDataNetworkTypeForSubscriber
01-30 15:19:24.380 13443 13597 W eroInInstaller: Accessing hidden method Lcom/android/org/conscrypt/OpenSSLSocketImpl;->setUseSessionTickets(Z)V (greylist-max-q,core-platform-api, reflection, denied)
01-30 15:19:24.381 13443 13597 E MapboxTelemetry: java.lang.ExceptionInInitializerError
01-30 15:19:24.389 13443 13475 W LocationController: Location permissions are not granted
01-30 15:19:24.411 13443 13599 I Mbgl-EGLConfigChooser: In emulator: false
01-30 15:19:24.426 13443 13613 I Mbgl : {GLThread 12942}[General]: GPU Identifier: Adreno (TM) 615
01-30 15:19:24.466 13443 13601 I eroInInstaller: Rejecting re-init on previously-failed class java.lang.Class<okhttp3.internal.platform.Platform>: java.lang.ExceptionInInitializerError:
01-30 15:19:24.466 13443 13601 I eroInInstaller: at okhttp3.internal.platform.Platform okhttp3.internal.platform.Platform.get() (Platform.java:85)
01-30 15:19:24.466 13443 13601 I eroInInstaller: at javax.net.ssl.SSLSocketFactory okhttp3.OkHttpClient.newSslSocketFactory(javax.net.ssl.X509TrustManager) (OkHttpClient.java:263)
01-30 15:19:24.466 13443 13601 I eroInInstaller: at void okhttp3.OkHttpClient.(okhttp3.OkHttpClient$Builder) (OkHttpClient.java:229)
01-30 15:19:24.466 13443 13601 I eroInInstaller: at void okhttp3.OkHttpClient.() (OkHttpClient.java:202)
01-30 15:19:24.466 13443 13601 I eroInInstaller: at void com.mapbox.android.telemetry.MapboxTelemetry.initializeTelemetryClient() (MapboxTelemetry.java:235)
01-30 15:19:24.466 13443 13601 I eroInInstaller: at boolean com.mapbox.android.telemetry.MapboxTelemetry.checkRequiredParameters(java.lang.String, java.lang.String) (MapboxTelemetry.java:191)
01-30 15:19:24.466 13443 13601 I eroInInstaller: at void com.mapbox.android.telemetry.MapboxTelemetry.sendEvents(java.util.List, boolean) (MapboxTelemetry.java:316)
01-30 15:19:24.466 13443 13601 I eroInInstaller: at void com.mapbox.android.telemetry.MapboxTelemetry.access$200(com.mapbox.android.telemetry.MapboxTelemetry, java.util.List, boolean) (MapboxTelemetry.java:37)
01-30 15:19:24.466 13443 13601 I eroInInstaller: at void com.mapbox.android.telemetry.MapboxTelemetry$4.run() (MapboxTelemetry.java:351)
01-30 15:19:24.466 13443 13601 I eroInInstaller: at void java.util.concurrent.ThreadPoolExecutor.runWorker(java.util.concurrent.ThreadPoolExecutor$Worker) (ThreadPoolExecutor.java:1167)
01-30 15:19:24.466 13443 13601 I eroInInstaller: at void java.util.concurrent.ThreadPoolExecutor$Worker.run() (ThreadPoolExecutor.java:641)
01-30 15:19:24.466 13443 13601 I eroInInstaller: at void java.lang.Thread.run() (Thread.java:923)
01-30 15:19:24.473 13443 13601 E libc++abi: terminating with uncaught exception of type jni::PendingJavaException
01-30 15:19:24.711 13443 13601 E libc++abi: terminate_handler unexpectedly threw an exception

Yes I have the tag in the manifest xml
Yes there is a accessToken set.

主要语言
TypeScript
星标
38
派生
26
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

nativescript-community/ui-mapbox 的其他 Issue

查看 nativescript-community/ui-mapbox 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。