Closed el-fasoh closed 1 year ago
Hi @el-fasoh, we'd recommend to follow our example project to set user id. It works well on my local.
Could you give more details like environment settings if the example project still fails.
Hi @Mercy811 after looking at the sample I notice there are two Amplitude classes in the SDK
com.amplitude.android.Amplitude
and com.amplitude.core.Amplitude
. My setup was using the one from core and that was causing crashes.
Expected Behavior
Application should not crash when a user logs in and setUserId is called
Current Behavior
The app launches properly when userId is not set. When a user logs in the app crashes: Stacktrace:
Possible Solution
Steps to Reproduce
amplitude.setUserId(YOUR_ID)
Environment