Amplitude-Kotlin icon indicating copy to clipboard operation
Amplitude-Kotlin copied to clipboard

Fatal Exception: kotlin.UninitializedPropertyAccessException: lateinit property isBuilt has not been initialized

Open mahmoudElfeel67 opened this issue 2 years ago • 4 comments

Steps to Reproduce

Dont know but here is the crash report Fatal Exception: kotlin.UninitializedPropertyAccessException: lateinit property isBuilt has not been initialized at com.amplitude.core.Amplitude.isBuilt(Amplitude.kt:53) at com.amplitude.core.Amplitude$setDeviceId$1.invokeSuspend(Amplitude.kt:188) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637) at java.lang.Thread.run(Thread.java:1012)

Environment

  • android Version: v1.3.0
  • Device: iPOCO X3 NFC , Galaxy A32
  • Device OS and Version: E.g. android 11 , android 12

mahmoudElfeel67 avatar Sep 20 '22 11:09 mahmoudElfeel67

any news on this ?

EmanHylooz avatar Oct 02 '22 12:10 EmanHylooz

Hi @EmanHylooz @mahmoudElfeel67 I'm working on fix for this issue. Do you have any steps I can reproduce the issue so I can test if the fix work?

bohan-amplitude avatar Oct 03 '22 20:10 bohan-amplitude

@bohan-amplitude all i can get is it happens in initialization of amplitude , it happens with some users not our devices ,

EmanHylooz avatar Oct 03 '22 20:10 EmanHylooz

Hi @EmanHylooz I released a new version 1.4.3. Changed the lateinit isBuilt to be initialized in init block. The PR is https://github.com/amplitude/Amplitude-Kotlin/pull/81. This should fix the lateinit property isBuilt has not been initialized issue. Please checkout the new version and let me know if you have any other questions. Thank you for your feedback.

bohan-amplitude avatar Oct 03 '22 23:10 bohan-amplitude