amplitude / Amplitude-Android

Native Android SDK for Amplitude
MIT License
162 stars 90 forks source link

Does v2.36.0 required Amplitude Analytics SDK Connector? #320

Closed wada811 closed 2 years ago

wada811 commented 2 years ago

Summary

After I upgraded Amplitude Android SDK to v2.36.0, I didn't add the following dependencies.

implementation 'com.amplitude:analytics-connector:1.0.0'

I see the following error.

java.lang.NoClassDefFoundError: Failed resolution of: Lcom/amplitude/analytics/connector/AnalyticsConnector;
    at com.amplitude.api.AmplitudeClient.<init>(AmplitudeClient.java:234)
    at com.amplitude.api.Amplitude.getInstance(Amplitude.java:44)
    at com.amplitude.api.Amplitude.getInstance(Amplitude.java:30)

Is Amplitude Analytics SDK Connector required?

If Amplitude Analytics SDK Connector is required, the following code might have a bad influence.

https://github.com/amplitude/Amplitude-Android/blob/b85357bd0cc1149792e893237bcb441988af2cf7/build.gradle#L135-L137

bgiori commented 2 years ago

Hi @wada811, thanks for submitting this issue. The connector package is a new dependency that is used to seamlessly connect with other amplitude SDKs (such as our Experiment SDK for AB Testing) without pulling in those SDKs as a dependency outright.

The connector dependency is supposed to be required, but you should not need to install it manually, so this is definitely an issue. We are working to get this resolved ASAP, thanks for your patience.

bgiori commented 2 years ago

@wada811 This issue has been fixed in v2.36.1.

Thanks again for reporting this issue and identifying the root cause.