草庐IT

connection_set

全部标签

安卓工作室错误 :An existing connection was forcibly closed by the remote host

我已经在Windows中安装了android-studio。但每次重建/运行/项目时都会出现此错误。Anexistingconnectionwasforciblyclosedbytheremotehost下面是我试过的。禁用防火墙adbkill-server&&adbstart-server删除任务栏中的任何adb进程重启工作室,清理并重建非常感谢任何答案。 最佳答案 尝试从控制台运行构建任务,并检查输出是否有问题./gradleassembleDebug 关于安卓工作室错误:Anexi

android - 如何解决 "Unable to connect to the editor to retrieve text"错误?

我正在使用ListView,ListView中每个项目的布局如下。当我尝试在mrpEtedittext中编辑文本时,android软键板没有响应,并且出现以下错误。02-2114:42:33.157651-651/?I/LatinIME:Startinginput.Cursorposition=1,102-2114:42:33.1724564-4564/?W/IInputConnectionWrapper:getTextBeforeCursoroninactiveInputConnection02-2114:42:33.1734564-4564/?W/IInputConnectionW

安卓 N : dealing with lack of CONNECTIVITY_CHANGE

我的AppWidgetProvider(当然是BroadcastReceiver)已注册接收CONNECTIVITY_CHANGE,以便我可以尽快更新小部件网络已恢复(尽管仅在需要时,即如果由于缺乏连接而错过了先前的更新)。但如前所述here,这在AndroidN中将不再可能。建议使用JobScheduler,它允许您指定作业仅在通过.setRequiredNetworkType连接到网络时运行(JobInfo.NETWORK_TYPE_ANY)方法。但是,我看不出如何使用它来复制我想要的行为。在我看来,如果在安排作业时没有网络,.setRequiredNetworkType(JobI

android - connectedAndroidTest 因 "no connected devices"而失败,但我的仪器可以正常工作

我正在设置一个Jenkins节点(在MacOSX上)为我的Android应用程序运行仪器测试。我的Jenkins项目启动了一个Android模拟器并运行Gradle任务:app:connectedAndroidTest。但是任务一直不稳定,有时能正常运行测试,但大多数时候失败并出现以下错误::app:connectedAndroidTestFAILEDFAILURE:Buildfailedwithanexception.*Whatwentwrong:Executionfailedfortask':app:connectedAndroidTest'.>com.android.builde

Android DefaultHttpClient HttpResponse 缺少 Set-Cookie header 字段

我有一个使用springsecurityremember-me-authentication的服务器,我在POST方法中使用AndroidDefaultHttpClient登录到该服务器。我能够成功登录,甚至能够检索创建的sessioncookie(在我的例子中是jsessionidcookie和springsecurityremembermecookie)。但是奇怪的是在执行了像这样的POST方法之后mResponse=mDefaultHttpClient.execute(mHttpPost)我能够检索cookie,但只能在我的DefaultHttpClient中使用getCooki

android - Activity 已泄露 ServiceConnection com.android.org.chromium.com.googlecode.eyesfree.braille.selfbraille.SelfBrailleClient$Connection

我的Android应用程序在Fragment中有一个Webview,Webview正在显示一个简单的HTML文档。当我退出应用程序时,logcat显示以下错误:03-0610:58:29.468:E/ActivityThread(420):Activitycom.abc.test.MainActivityhasleakedServiceConnectioncom.android.org.chromium.com.googlecode.eyesfree.braille.selfbraille.SelfBrailleClient$Connection@66247648thatwasorig

android - 应用程序何时会收到内容为 utm_source=(not%20set)&utm_medium=(not%20set) 的 install_referrer?

我正在使用inSTLl_referrrer跟踪用户安装。最近,我发现很多用户向我的服务器发送引用utm_source=(not%20set)&utm_medium=(not%20set)。我在Google上搜索了这个,找到了一篇文章https://plus.google.com/+AndroidDevelopers/posts/E54ae9beKLB这告诉我这将被设置为深度链接用户的默认设置。然后我搜索了deeplink的定义,但我不太明白。Fromnowon,ifthereisnoreferrerparameterintheURL,adefaultwillbesettoseparat

android - API < 23 的 Settings.canDrawOverlays

既然我可以使用Settings.canDrawOverlays检查用户是否在API>=23上授予了这个权限,我如何检查用户是否在旧的APIS上拥有它?此权限是否在API目前,我只在获得许可后在API23+上启动我的服务。@SuppressLint("NewApi")publicvoidcheckDrawOverlayPermission(){if(Build.VERSION.SDK_INT>=23){/**checkifwealreadyhavepermissiontodrawoverotherapps*/if(!Settings.canDrawOverlays(this)){/**i

安卓蓝牙外设 : Connection terminated by peer (Status 19)

开发了一个充当外围设备并与其他设备(仅限中央设备)连接的应用程序。它在操作系统版本为6.0的设备上运行良好,但在Nougat7.0中出现一些问题。我收集了一些日志,在开发者选项中启用“BluetoothHCIsnooplog”。收集的日志:W/bt_btm:btm_sec_disconnect:reason=19W/bt_btif:btif_dm_generic_evt:event=33035W/bt_btif:btif_dm_generic_evt:event=33035W/bt_btm:btm_sec_send_hci_disconnect:handle:0x41,reason=0

java - 消息为 "Connection timed out"的 ConnectionTimeoutException 和 SSLException 之间的区别

在我的Android代码中(使用ApacheHTTP客户端)我已经设置了以下参数:HttpConnectionParams.setConnectionTimeout(params,30*SECOND_IN_MILLIS);HttpConnectionParams.setSoTimeout(params,30*SECOND_IN_MILLIS);我正在连接到HTTPS网络服务。在慢速网络上,我在预期的30秒后收到了ConnectionTimeoutException(然后我重试);但是有“少数”情况(我无法观察到任何模式),我得到以下任何一个:javax.net.ssl.SSLExcep