android / android/app-bundle-samples
Error receiving broadcast Intent
- Dominant language
- C++
- Stars
- 735
- Forks
- 348
- PR merge metrics
- No merged PRs in 30d
Description
it was running fine, but i don't why t starts to crash every time i tried to download my module
library version: `com.google.android.play:core:1.10.3`
error log:
`java.lang.RuntimeException: Error receiving broadcast Intent { act=com.google.android.play.core.splitinstall.receiver.SplitInstallUpdateIntentService flg=0x40280010 pkg=xxx.xxx.xxx.xxx (has extras) } in com.google.android.play.core.listener.zzb@81b20dd
at android.app.LoadedApk$ReceiverDispatcher$Args.lambda$getRunnable$0$android-app-LoadedApk$ReceiverDispatcher$Args(LoadedApk.java:1940)
at android.app.LoadedApk$ReceiverDispatcher$Args$$ExternalSyntheticLambda0.run(Unknown Source:2)
at android.os.Handler.handleCallback(Handler.java:942)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:240)
at android.os.Looper.loop(Looper.java:351)
at android.app.ActivityThread.main(ActivityThread.java:8399)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:584)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1013)
Caused by: java.lang.NumberFormatException: Character N is neither a decimal digit number, decimal point, nor "e" notation exponential mark.
at java.math.BigDecimal.(BigDecimal.java:518)
at java.math.BigDecimal.(BigDecimal.java:401)
at java.math.BigDecimal.(BigDecimal.java:834)
at xxx.xxx.xxx.xxx.view.ui.presentation.Folders.listener$lambda-0(Folders.kt:193)
at xxx.xxx.xxx.xxx.view.ui.presentation.Folders.$r8$lambda$FEaDTLOC-2g5C2cCmuTGlWGZ4KQ(Unknown Source:0)
at xxx.xxx.xxx.xxx.view.ui.presentation.Folders$$ExternalSyntheticLambda5.onStateUpdate(Unknown Source:4)
at com.google.android.play.core.listener.zzc.zzi(com.google.android.play:core@@1.10.3:2)
at com.google.android.play.core.splitinstall.zzx.zzm(com.google.android.play:core@@1.10.3:3)
at com.google.android.play.core.splitinstall.zzx.zza(com.google.android.play:core@@1.10.3:5)
at com.google.android.play.core.listener.zzb.onReceive(com.google.android.play:core@@1.10.3:1)
at android.app.LoadedApk$ReceiverDispatcher$Args.lambda$getRunnable$0$android-app-LoadedApk$ReceiverDispatcher$Args(LoadedApk.java:1902)
... 9 more
`
in Folders.kt:193
`b.llProgressBar.pbText.text = "${progress.toBigDecimal().setScale(1, RoundingMode.UP).toDouble()}% " + getString(R.string.downloading) `
Please help me if anyone can
Contributor guide
Research direction
Inspect Folders.kt:193 and the NumberFormatException in the log; start by reproducing the module download with com.google.android.play:core:1.10.3 and checking the value passed to progress.toBigDecimal(). Done means the download no longer crashes the broadcast receiver and the progress text still updates.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100