Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Error occurred while initializing telemetry

オープン
#83 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
android
領域
mobile

調査の方向性

mapboxTelemetryVersion が定義されている platforms/android/include.gradle から始め、現在の依存関係を報告されている 8.0.0 の回避策と比較してください。Android Emulator API 33 上の新しい NativeScript アプリで再現し、マップの初期化時に PendingIntent エラーが発生しなくなり、他の Mapbox 依存関係との互換性も維持されていることを確認してください。

索引モデルが issue の本文から書いたものです。

説明

2022-07-08 04:14:05.775 21921-21921/org.nativescript.testApp E/Mbgl-Mapbox: Error occurred while initializing telemetry
    java.lang.IllegalArgumentException: org.nativescript.testApp: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
    Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.
        at android.app.PendingIntent.checkFlags(PendingIntent.java:401)
        at android.app.PendingIntent.getBroadcastAsUser(PendingIntent.java:671)
        at android.app.PendingIntent.getBroadcast(PendingIntent.java:658)
        at com.mapbox.android.telemetry.AlarmSchedulerFlusher.register(AlarmSchedulerFlusher.java:31)
        at com.mapbox.android.telemetry.MapboxTelemetry.startAlarm(MapboxTelemetry.java:380)
        at com.mapbox.android.telemetry.MapboxTelemetry.startTelemetry(MapboxTelemetry.java:374)
        at com.mapbox.android.telemetry.MapboxTelemetry.enable(MapboxTelemetry.java:114)
        at com.mapbox.mapboxsdk.module.telemetry.TelemetryImpl.<init>(TelemetryImpl.java:33)
        at com.mapbox.mapboxsdk.ModuleProviderImpl.obtainTelemetry(ModuleProviderImpl.java:22)
        at com.mapbox.mapboxsdk.Mapbox.initializeTelemetry(Mapbox.java:167)
        at com.mapbox.mapboxsdk.Mapbox.getInstance(Mapbox.java:64)
        at com.tns.Runtime.callJSMethodNative(Native Method)
        at com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1302)
        at com.tns.Runtime.callJSMethodImpl(Runtime.java:1188)
        at com.tns.Runtime.callJSMethod(Runtime.java:1175)
        at com.tns.Runtime.callJSMethod(Runtime.java:1153)
        at com.tns.Runtime.callJSMethod(Runtime.java:1149)
        at com.tns.gen.java.lang.Runnable.run(Runnable.java:17)
        at android.os.Handler.handleCallback(Handler.java:942)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loopOnce(Looper.java:201)
        at android.os.Looper.loop(Looper.java:288)
        at android.app.ActivityThread.main(ActivityThread.java:7892)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
Device :

Android Emulator API 33

How to reproduce :

create a new NS app, add ui-mapbox plugin [,add TelemetryService] and create a basic component that shows a map

Workaround in dev environment :

upgrade mapboxTelemetry in node_modules/@nativescript-community/ui-mapbox/platforms/android/include.gradle with : def mapboxTelemetryVersion = "8.0.0"

mapboxTelemetry 8.0.0 seems compatible with android API 31+ but am not sure about cross compatibility with other mapbox dependencies

主要言語
TypeScript
スター
38
フォーク
26
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

nativescript-community/ui-mapbox のほかの issue

nativescript-community/ui-mapbox の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。