Open YesThatGy opened 6 months ago
Hi, any solution for this error ? I have the same error
I have same issue, I was given advice by Hiren Vavadiya, he told me to add proguard rules
It's work?
It's work?
yes of course
add proguard rules, not work.
Trying to connect to our own Prosody-based XMPP/muc server. Other clients work fine with it.
Any attempt to connect with credentials for an account cause it to crash almost immediately on the Android VM running under AndroidStudio on Fedora Linux. Below please find the debug log from AndroidStudio:
Launching lib/main.dart on Android SDK built for x86 in debug mode... Running Gradle task 'assembleDebug'... ✓ Built build/app/outputs/flutter-apk/app-debug.apk. Debug service listening on ws://127.0.0.1:43609/M1OSPWKarGs=/ws Syncing files to device Android SDK built for x86... [log] didChangeAppLifecycleState() initState D/eglCodecCommon(10926): setVertexArrayObject: set vao to 0 (0) 1 0 I/flutter (10926): logFilePath: /storage/emulated/0/Android/data/org.xrstudio.flutter_xmpp_example/files D/EGL_emulation(10926): eglMakeCurrent: 0xebafc980: ver 3 0 (tinfo 0xde5a0090) D/eglCodecCommon(10926): setVertexArrayObject: set vao to 0 (0) 1 0 I/AssistStructure(10926): Flattened final assist data: 564 bytes, containing 1 windows, 3 views D/InputConnectionAdaptor(10926): The input method toggled cursor monitoring on D/InputConnectionAdaptor(10926): The input method toggled cursor monitoring on I/AssistStructure(10926): Flattened final assist data: 564 bytes, containing 1 windows, 3 views D/InputConnectionAdaptor(10926): The input method toggled cursor monitoring off D/InputConnectionAdaptor(10926): The input method toggled cursor monitoring on D/InputConnectionAdaptor(10926): The input method toggled cursor monitoring on I/AssistStructure(10926): Flattened final assist data: 572 bytes, containing 1 windows, 3 views D/InputConnectionAdaptor(10926): The input method toggled cursor monitoring off D/InputConnectionAdaptor(10926): The input method toggled cursor monitoring on D/InputConnectionAdaptor(10926): The input method toggled cursor monitoring off D/flutter_xmpp(10926): adding listener: D/flutter_xmpp(10926): adding connection listener: D/flutter_xmpp(10926): adding success listener: D/flutter_xmpp(10926): adding error listener: D/flutter_xmpp(10926): onMethodCall call: login D/flutter_xmpp(10926): onCreate(): D/flutter_xmpp(10926): onStartCommand(): D/flutter_xmpp(10926): Service Start() function called: D/flutter_xmpp(10926): initConnection(): D/flutter_xmpp(10926): Connection Constructor called: D/flutter_xmpp(10926): not valid host: D/flutter_xmpp(10926): connect 1 mServiceName: chat.effortlessis.com mHost: chat.effortlessis.com mPort: port mUsername: YesThatGuy mPassword: fart mResource:Android D/NetworkSecurityConfig(10926): No Network Security Config specified, using platform default D/flutter_xmpp(10926): Calling connect(): E/libc (10926): Access denied finding property "net.dns1" E/libc (10926): Access denied finding property "net.dns2" E/libc (10926): Access denied finding property "net.dns3" E/libc (10926): Access denied finding property "net.dns4" E/libc (10926): Access denied finding property "net.dns1" E/libc (10926): Access denied finding property "net.dns2" E/libc (10926): Access denied finding property "net.dns3" E/libc (10926): Access denied finding property "net.dns4" E/AndroidRuntime(10926): FATAL EXCEPTION: Thread-4 E/AndroidRuntime(10926): Process: org.xrstudio.flutter_xmpp_example, PID: 10926 E/AndroidRuntime(10926): java.lang.AssertionError E/AndroidRuntime(10926): at org.jivesoftware.smack.tcp.rce.RemoteXmppTcpConnectionEndpoints.lookup(RemoteXmppTcpConnectionEndpoints.java:99) E/AndroidRuntime(10926): at org.jivesoftware.smack.tcp.XMPPTCPConnection.connectUsingConfiguration(XMPPTCPConnection.java:591) E/AndroidRuntime(10926): at org.jivesoftware.smack.tcp.XMPPTCPConnection.connectInternal(XMPPTCPConnection.java:849) E/AndroidRuntime(10926): at org.jivesoftware.smack.AbstractXMPPConnection.connect(AbstractXMPPConnection.java:526) E/AndroidRuntime(10926): at org.xrstudio.xmpp.flutter_xmpp.Connection.FlutterXmppConnection.connect(FlutterXmppConnection.java:527) E/AndroidRuntime(10926): at org.xrstudio.xmpp.flutter_xmpp.Connection.FlutterXmppConnectionService.initConnection(FlutterXmppConnectionService.java:72) E/AndroidRuntime(10926): at org.xrstudio.xmpp.flutter_xmpp.Connection.FlutterXmppConnectionService.lambda$start$0$org-xrstudio-xmpp-flutter_xmpp-Connection-FlutterXmppConnectionService(FlutterXmppConnectionService.java:93) E/AndroidRuntime(10926): at org.xrstudio.xmpp.flutter_xmpp.Connection.FlutterXmppConnectionService$$ExternalSyntheticLambda0.run(Unknown Source:2) E/AndroidRuntime(10926): at java.lang.Thread.run(Thread.java:919) [log] didChangeAppLifecycleState() [log] detachedCallBack() I/Process (10926): Sending signal. PID: 10926 SIG: 9 Lost connection to device. the Dart compiler exited unexpectedly.