无法通过Android Studio在RealmTasks移动应用程序演示中注册/注册

时间:2017-06-06 22:47:18

标签: java android android-studio realm realm-mobile-platform

您好,我登录时遇到问题,以下是我到目前为止所做的:

  1. 在来宾VM中的Ubuntu上安装ROS并将网络设置设置为桥接,以便为其分配一个与我的主机位于同一LAN内的唯一IP地址192.168.1.9。
  2. 我已经配置并注册了我的ROS,并且能够从虚拟机/访客浏览器以及我主机的网络浏览器登录,因此我确认它能够连接互联网/请求。
    • 然后在Android Studio中打开RealmTasks项目并运行应用程序 - (我还连接了实际设备LG 15332而不是模拟器) - 我尝试注册UN / PW并接收以下输出
  3. 06-06 10:43:06.331 12633-12771/io.realm.realmtasks D/REALM_JAVA: AuthenticateResponse - Error: UNKNOWN(-1) java.net.SocketTimeoutException: failed to connect to /192.168.1.9 (port 9080) after 10000ms at libcore.io.IoBridge.connectErrno(IoBridge.java:169) at libcore.io.IoBridge.connect(IoBridge.java:122) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:183) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:456) at java.net.Socket.connect(Socket.java:886) at okhttp3.internal.platform.AndroidPlatform.connectSocket(AndroidPlatform.java:61) at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.java:187) at okhttp3.internal.connection.RealConnection.buildConnection(RealConnection.java:173) at okhttp3.internal.connection.RealConnection.connect(RealConnection.java:114) at okhttp3.internal.connection.StreamAllocation.findConnection(StreamAllocation.java:193) at okhttp3.internal.connection.StreamAllocation.findHealthyConnection(StreamAllocation.java:129) at okhttp3.internal.connection.StreamAllocation.newStream(StreamAllocation.java:98) at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:42) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67) at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:109) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67) at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:124) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67) at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:170) at okhttp3.RealCall.execute(RealCall.java:60) at io.realm.internal.network.OkHttpAuthenticationServer.authenticate(OkHttpAuthenticationServer.java:111) at io.realm.internal.network.OkHttpAuthenticationServer.loginUser(OkHttpAuthenticationServer.java:53) at io.realm.SyncUser.login(SyncUser.java:189) at io.realm.SyncUser$1.run(SyncUser.java:228) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422) at java.util.concurrent.FutureTask.run(FutureTask.java:237) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:818) 06-06 10:43:06.331 12633-12771/io.realm.realmtasks I/REALM_JAVA: Failed authenticating user. UNKNOWN(-1) java.net.SocketTimeoutException: failed to connect to /192.168.1.9 (port 9080) after 10000ms at libcore.io.IoBridge.connectErrno(IoBridge.java:169) at libcore.io.IoBridge.connect(IoBridge.java:122) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:183) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:456) at java.net.Socket.connect(Socket.java:886) at okhttp3.internal.platform.AndroidPlatform.connectSocket(AndroidPlatform.java:61) at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.java:187) at okhttp3.internal.connection.RealConnection.buildConnection(RealConnection.java:173) at okhttp3.internal.connection.RealConnection.connect(RealConnection.java:114) at okhttp3.internal.connection.StreamAllocation.findConnection(StreamAllocation.java:193) at okhttp3.internal.connection.StreamAllocation.findHealthyConnection(StreamAllocation.java:129) at okhttp3.internal.connection.StreamAllocation.newStream(StreamAllocation.java:98) at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:42) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67) at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:109) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67) at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:124) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67) at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:170) at okhttp3.RealCall.execute(RealCall.java:60) at io.realm.internal.network.OkHttpAuthenticationServer.authenticate(OkHttpAuthenticationServer.java:111) at io.realm.internal.network.OkHttpAuthenticationServer.loginUser(OkHttpAuthenticationServer.java:53) at io.realm.SyncUser.login(SyncUser.java:189) at io.realm.SyncUser$1.run(SyncUser.java:228) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422) at java.util.concurrent.FutureTask.run(FutureTask.java:237) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:818)

    有人可以帮助我,我想遵循领域/文档教程,以便我可以在未来的项目中学习和实现领域,但我无法弄清楚为什么我的连接超时。谢谢你们

0 个答案:

没有答案