草庐IT

安卓 : what are the causes for java.net.SocketException : Connection timed out?

在我的应用程序中正在下载加载数据。一切都很好,但有些却给出了奇怪的响应并抛出socketException:connectiontimout?谁能告诉我这些异常的原因是什么?以便我找出问题?给我一​​些解决方案来避免这些异常这里的日志......................**04-1915:44:52.591:WARN/System.err(18199):java.net.SocketException:Connectiontimedout04-1915:44:52.591:WARN/Smack/Packet(209):notifyconnbreak(IOEx),closecon

安卓; "Key dispatching timed out ..."

我有一个菜单Activity和一个从菜单启动的游戏Activity。某些(大多数)时间我会启动游戏Activity;所有输入都挂起几秒(最多10秒)然后以超高速播放,而我在logcat中得到这个:11-2018:24:27.873:WARN/WindowManager(2473):Keydispatchingtimedoutsendingtosouthgrove.game/southgrove.game.Game11-2018:24:27.873:WARN/WindowManager(2473):Previousdispatchstate:{{KeyEvent{action=1code

android - 为什么打开 proguard 的 "Surface frame wait timed out"编码?

我从ExtractDecodeEditEncodeMuxTest.java复制了代码进入我的应用程序以转码视频,最重要的变化是将类重命名为VideoTranscoder并删除extendsAndroidTestCase因为我要运行它脱离任何Activity.一切正常,直到我使用proguard编译发布版本,然后它在运行时失败:E/d:com.testapp.a.g.a.b.b(OutputSurface.java:270)E/d:com.testapp.a.g.a.d.a(VideoTranscoder.java:944)E/d:com.testapp.a.g.a.d.a(VideoT

android - Ionic 2 - 错误:net::ERR_CONNECTION_TIMED_OUT 在 android 设备上运行时

(抱歉我的英语不好)我已经使用Ionic2forAndroid构建了一个应用程序。在此应用程序中,我需要从API获取信息,当我在浏览器中运行它时,它工作得很好(ionicserve)。问题是当我在我的设备(Android6.0.1)上运行时我遇到了这个问题:net::ERR_CONNECTION_TIMED_OUT然后我搜索了如何解决这个问题,并尝试了很多方法。我有cordova-plugin-whitelist,我的config.xml看起来像:我把它放在我的index.html中:我已经阅读了很多关于这个问题的文档,但我没有发现任何真正有用的东西。有人可以帮帮我吗?谢谢

android工作室错误错误:Connection timed out

我只是在androidstudio中新建了一个项目,并向其中添加了gcm模块。我一直给出这个错误信息Error:Connectiontimedout:connect.IfyouarebehindanHTTPproxy,pleaseconfiguretheproxysettingseitherinIDEorGradle.而且我不使用任何代理。谁能帮我解决这个问题?更新现在重建我的项目后我给出了这个错误Error:Aproblemoccurredconfiguringproject':app'.Aproblemoccurredconfiguringproject':backend'.Cou

android - 尝试在 android 设备上调试我的应用程序时获取 "Launch error: Failed to connect to remote VM. Connection timed out"

我尝试了网上和本网站提供的所有可能选项,但没有一个有效。我得到:Launcherror:FailedtoconnecttoremoteVM.Connectiontimedout.当我尝试在我的移动设备上调试我的应用程序时。当我正常运行时,应用程序运行正常,没有任何问题我现在至少使用过这些链接:Howtoresolve"WaitingforDebugger"message?Eclipseissue-Launcherror:FailedtoconnecttoremoteVM.ConnectiontimedoutEclipseError:"FailedtoconnecttoremoteVM"

java - HttpURLConnection 抛出 java.net.SocketTimeoutException : SSL handshake timed out in Android 4. 1.1

我的代码在Android5.0及更高版本中运行时运行良好。但在Android4.1.1中它抛出java.net.SocketTimeoutException:SSL握手超时。URLurl;HttpURLConnectionconnection=null;Stringcharset="UTF-8";StringaccessToken="";try{ArrayListpostParameters=newArrayList();postParameters.add(newBasicNameValuePair("client_id",CLIENT_ID));postParameters.add

android - AudioTrack 延迟 : obtainBuffer timed out

我通过FileInputStream>BufferedInputStream>DataInputStream方法加载文件并将字节送入AudioTrack.write()来在我的Android手机上播放WAV。音频播放良好,当它播放时,我可以轻松地动态调整采样率、音量等,性能也不错。但是,轨道开始播放大约需要两秒。我知道AudioTrack有不可避免的延迟,但这是荒谬的。每次我播放轨道时,我都会得到这个:03-1314:55:57.100:WARN/AudioTrack(3454):obtainBuffertimedout(istheCPUpegged?)0x2e9348user=000

c++ - 如果在我执行 timed_wait 时系统时间发生变化怎么办?

当在具有持续时间的boost::condition_variable上使用timed_wait时,等待条件是否会在持续时间后超时,即使用户(或ntp)更改了系统时间?例如,boost::posix_time::time_durationwait_duration(0,0,1,0);//1sec//**Systemtimejumpsback15minuteshere.**if(!signal.timed_wait(lock,wait_duration)){//Doesthisconditionhappen1secondlater,orabout15minuteslater?}

c++ - std::timed_mutex::try_lock* 虚假地失败

try_lock*是指try_lock()、try_lock_for()和try_lock_until()。根据cppreference,这三种方法都可能会虚假地失败。以下引用自try_lock_for()的描述Aswithtry_lock(),thisfunctionisallowedtofailspuriouslyandreturnfalseevenifthemutexwasnotlockedbyanyotherthreadatsomepointduringtimeout_duration.我知道std::condition_variable可能会发生虚假唤醒及其背后的基本原理。但