Closed chong901 closed 3 years ago
Hello @aaa59891 Is Amplitude-Flutter is free? How you setup the server ?
Thanks
Hi @aaa59891, that error message is from okhttp3 in android, it could be caused for reflection in okhttp library didn't success. Can you try upgrade the okhttp version and try again? They may already have a fix in new version.
btw @Abhishek01039 yeah, Amplitude-Flutter is free to use. This is developer docs for reference.
Thanks @qingzhuozhen
We're having the same issue. Is there currently any workaround for this? @qingzhuozhen
Please open this issue. this is not fixed yet.
it only happen in Android 11. please update dependencies.
@qingzhuozhen or at least specify work around
Here are a couple of workarounds that worked for me. Both involve editing the android/app/build.gradle file
compileSdkVersion
to 28dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation "com.squareup.okhttp3:okhttp:4.9.1"
}
This issue not fix yet
Hello, this is likely related to OkHttps use of reflection. See this answer for more information about OkHttp version and Android API version.
Steps to Reproduce
try to init amplitude
Environment
SDK Version: v3.2.1 Flutter v2.2.1
not sure is here the right place to ask, but seems amplitude functionality is working properly, just wonder is there a way to avoid this error message?