-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not working with Android SDK 28 #42
Comments
@Vardiak is this resolved by upgrading to latest 0.2.0? |
Here is the same, both 28 and 29
adhara_socket_io:
dependency: "direct main"
description:
name: adhara_socket_io
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.0"
android {
compileSdkVersion 28
defaultConfig {
minSdkVersion 21
targetSdkVersion 28 |
I had the same problem and I fixed it by adding the following line in the AndroidManifest.xml file inside "application": android:usesCleartextTraffic="true" For more info: https://stackoverflow.com/questions/53284903/socket-io-not-working-on-android-9-api-level-28) Hope this helps. |
@GMasciaRDT Thank You, I added and it worked. |
Thank you @GMasciaRDT |
thanks! it works. |
|
i used these attributes , but its not working giving me same error |
android:usesCleartextTraffic="true" The plugins FAILURE: Build failed with an exception.
BUILD FAILED in 33s |
android native for This error has resurfaced. i am getting the same error. I did all the trials. but still the same |
Describe the bug
When I try to use this package with Android SDK 28, I get spammed with "web socket error" in the debug console and the socket can't connect. After multiple hours of work trying to merge my application with the example I found out that it worked by replacing
compileSdkVersion
andtargetSdkVersion
from 28 to 27 inandroid/app/build.gradle
.To Reproduce
Update the example to Android SDK 28
Expected behavior
The socket should connect normally.
The text was updated successfully, but these errors were encountered: