segment-integrations / analytics-android-integration-amplitude

The Amplitude analytics-android integration.
https://segment.com/docs/connections/destinations/catalog/amplitude/
2 stars 6 forks source link

version 3.1.1 Crash Caused by: java.lang.NoSuchFieldError: No static field xxx of type I in class Landroidx/core/R$id #63

Closed senlsy closed 2 years ago

senlsy commented 2 years ago

image

The androidx code is packed into the aar package!!!

image
maitolab commented 2 years ago

I faced issues as well. The library should not embed android core into the library. I reverted to 3.1.0 to fix the problem. @senlsy

senlsy commented 2 years ago

I faced issues as well. The library should not embed android core into the library. I reverted to 3.1.0 to fix the problem. @senlsy

Yes, I alsed reverted to 3.1.0 to fix it.

ramprasad-vuclip commented 2 years ago

I have observed too and blocked to upgrade further because of this exception.

For simplicity to reproduce, we can follow below steps

  1. Create simple new app
  2. Just add below lines implementation "com.segment.analytics.android:analytics:4.10.4" implementation "com.segment.analytics.android.integrations:amplitude:3.1.1"
  3. Build and run the app

This exception is observed, so app is crashing

prayansh commented 2 years ago

@ramprasad-vuclip @maitolab #61 was the only change we made for going from 3.1.0 to 3.1.1

Would u happen to know what change in the build.gradle could have potentially caused this?

prayansh commented 2 years ago

I have released v3.1.2 in order to fix this.

Closing this issue. Please try it out and let us know if you are still facing the issue on this thread.