Closed N0lex closed 4 years ago
Look like an error from okhttp. May I know which okhttp version are you using?
@haoliu-amp Please download Amplitude SDK 1.1.0 and you can see the okhttp version. Link: https://github.com/amplitude/unity-plugin/commit/0881abc9883edf5a1f385ef3b4ca92b914594aa9
Amplitude SDK depends on okhttp library. The old SDK is the one using a very old version of okhttp 3.10.0.
Since Amplitude Unity SDK 1.0.0, we updated the okhttp to be 4.2.2, since it fixed a lot vulnerabilities.
However, okhttp dropped the support for < 5.0 since 3.13. Please read this. https://developer.squareup.com/blog/okhttp-3-13-requires-android-5/
But you can still use the new SDK with older version okhttp if you wanna get KitKat supported.
How to do it -
If you import library by copying the jar file, you can downgrade okhttp library by replacing it with a version < 3.13. If you use google dependency resolver, update the dependency version for okhttp in *Dependency.xml file.
Why is this information missing from the documentation?
Please update your guide: https://help.amplitude.com/hc/en-us/articles/115002991968-Unity-Plugin-Installation
We will do it. Thanks for your feedback!
@N0lex We've updated it. https://help.amplitude.com/hc/en-us/articles/115002991968-Unity-Plugin-Installation#running-on-api-19-20-kitkat
Let me know if the issue is solved! Thanks
The latest version of Amplitude SDK 1.1.0 (April 5, 2020) does not work on Android 4.4.4.
Crash Log:
Please fix!!!
2019.2.12f1 Nexus 7 2012 Windows 10.