android Failed to install *.apk on device *:timeout

本文介绍了解决Android应用程序在真机上调试安装时出现的连接超时问题。提供了几种解决方案,包括调整DDMS超时设置、清理项目、重新启动开发环境等。

模拟器安装应用程序的时候报错连接超时

转载自:http://hellorheaven.iteye.com/blog/1152106

可能项目越做越大吧(其实是图片多^-^),到了后面每次调试安装时都出现Failed to install *.apk on device *: timeout
现在将这个问题整理出来,以便以后查阅。

错误出现:连接真机调试的时候如果连接太久没响应就会出现timeout

根据网上众多资料:可分为这几个解决方法

方法由简单到麻烦:

1.在window-》prensent....-》android-》设置ddms的timeout时间。这种是就最有效、最简洁的。

2.delete android里面的 apk,保证速度。不过试过一次后,真机好像变“聪明了”,也出现timeout。

3.Cleaning the project (Project->Clean),不行就重启eclipse或者android,很郁闷的是,重启后运行第一次可以。第二次就开始变慢了,也就是出现timeout

4.网上一个我没试过的方法:

Don't use spaces in your directory names. If you have files that are in such a directory (e.g., stuff inside of C:\Program Files\), copy them to another spot that does not have spaces.

很明显是说目录里面不要有空格,排除

 

 

10-15 03:02:22.942 19206 19206 E crash_dump64: failed to get the guest state header for thread 17881: Bad address 10-15 03:02:22.943 19206 19206 E crash_dump64: failed to get the guest state header for thread 17888: Bad address 10-15 03:02:22.944 19206 19206 E crash_dump64: failed to get the guest state header for thread 17889: Bad address 10-15 03:02:22.945 19206 19206 E crash_dump64: failed to get the guest state header for thread 17890: Bad address 10-15 03:02:22.953 19206 19206 I crash_dump64: obtaining output fd from tombstoned, type: kDebuggerdNativeBacktrace 10-15 03:02:22.954 01047 01047 I tombstoned: received crash request for pid 1173 10-15 03:02:22.955 01047 01047 I tombstoned: found intercept fd 512 for pid 1173 and type kDebuggerdNativeBacktrace 10-15 03:02:22.955 19206 19206 I crash_dump64: performing dump of process 1173 (target tid = 1173) 10-15 03:02:22.958 19206 19206 I crash_dump64: ***crash_dump->dump_backtrace*** 10-15 03:02:22.963 01453 02097 D DeviceStorageMonitor: oplusCheckStorage: in!!!!!! 10-15 03:02:22.965 01453 02097 D DeviceStorageMonitor: oplusCheckData: in! 10-15 03:02:22.965 01453 02097 D DeviceStorageMonitor: oplusCheckData: mDataFree = 45.92GB 10-15 03:02:22.965 01453 02097 D DeviceStorageMonitor: oplusCheckStorage: out!!!!!! 10-15 03:02:23.032 01453 01534 I system_server: libdebuggerd_client: done dumping process 1173 10-15 03:02:23.032 01047 01047 W tombstoned: skipping tombstone file creation due to intercept 10-15 03:02:23.035 01453 01534 I ActivityManager: Collecting stacks for native pid 1174 10-15 03:02:23.037 01453 01534 E system_server: Could not open /dev/binderfs/binder_logs/transactions. Likely a permissions issue. errno: 2 10-15 03:02:23.037 01453 01534 E android.os.Debug: Failed to get binder state info for pid: 1174 status: -2: No such file or directory 10-15 03:02:23.039 01453 01534 I system_server: libdebuggerd_client: started dumping process 1174 10-15 03:02:23.041 01047 01047 I tombstoned: registered intercept for pid 1174 and type kDebuggerdNativeBacktrace 10-15 03:02:23.044 01047 01047 I tombstoned: received crash request for pid 1174 10-15 03:02:23.044 01047 01047 I tombstoned: found intercept fd 512 for pid 1174 and type kDebuggerdNativeBacktrace 10-15 03:02:23.195 01047 01047 W tombstoned: skipping tombstone file creation due to intercept 10-15 03:02:23.196 01453 01534 I system_server: libdebuggerd_client: done dumping process 1174 10-15 03:02:23.198 01453 01534 I ActivityManager: Collecting stacks for native pid 1175 10-15 03:02:23.198 01453 01534 E system_server: Could not open /dev/binderfs/binder_logs/transactions. Likely a permissions issue. errno: 2 10-15 03:02:23.198 01453 01534 E android.os.Debug: Failed to get binder state info for pid: 1175 status: -2: No such file or directory 10-15 03:02:23.201 01453 01534 I system_server: libdebuggerd_client: started dumping process 1175 10-15 03:02:23.202 01047 01047 I tombstoned: registered intercept for pid 1175 and type kDebuggerdNativeBacktrace 10-15 03:02:23.205 01047 01047 I tombstoned: received crash request for pid 1175 10-15 03:02:23.205 01047 01047 I tombstoned: found intercept fd 512 for pid 1175 and type kDebuggerdNativeBacktrace 10-15 03:02:23.303 01437 01545 E bms_heating: BmsHeatingCheckThread status: 0 10-15 03:02:23.320 01453 01453 W ServiceManagerCppClient: Waited one second for DefragService (is service started? Number of threads started in the threadpool: 32. Are binder threads started and available?) 10-15 03:02:23.394 02049 02279 I ServiceManagerCppClient: Waiting for service 'ocenter' on '/dev/binder'... 10-15 03:02:23.598 07805 08167 I Finsky:background: [105] DSC::L: Update all listeners for download <325:RUNNING:21%[21%]> in group com.google.android.webview:LLD-GbNOQ86W2NJ_EfYvXA 10-15 03:02:23.599 07805 08167 I Finsky:background: [105] DSC::L: Updating listener DownloadServiceManagerListener::rlc@ec0bede for download <325:RUNNING:21%[21%]> 10-15 03:02:23.599 07805 08167 I Finsky:background: [105] DSC::L: Updating listener tek@fed18bf for download <325:RUNNING:21%[21%]> 10-15 03:02:23.600 07805 08167 I Finsky:background: [105] DSC::L: Updating listener DownloadServiceManagerListener::ajxp@4491751 for download <325:RUNNING:21%[21%]> 10-15 03:02:23.601 07805 08167 I Finsky:background: [105] DS: Received onProgress request_id=325 10-15 03:02:23.601 07805 08167 I Finsky:background: [105] RM: receive resource status onProgress download_request_id=325, group_id=com.google.android.webview.apk reason: auto_update isid: LLD-GbNOQ86W2NJ_EfYvXA, status_code=RESOURCE_STATUS_IN_PROGRESS, legacy_status_code=192, size: 7805965/36581983 10-15 03:02:23.602 07805 08167 I Finsky:background: [105] DS::IDC: updateWith: <325:RUNNING:21%[21%]> 10-15 03:02:23.604 07805 07905 I Finsky:background: [65] RM: getStatus resourceRequestId=f7176d98-0cd3-4d27-ae00-867043245529 requestId=325 package=com.google.android.webview artifact=com.google.android.webview.apk isid=LLD-GbNOQ86W2NJ_EfYvXA 10-15 03:02:23.605 07805 07905 I Finsky:background: [65] DSC: getDownload(325) 10-15 03:02:23.606 07805 07905 I Finsky:background: [65] DS: getDownload(request_id=325) 10-15 03:02:23.607 07805 08167 I Finsky:background: [105] DS: DS: onGetDownload(request_id=325, files_to_download=[com.google.android.webview.apk(size:36581983)], context[group_id=com.google.android.webview:LLD-GbNOQ86W2NJ_EfYvXA], display_data[invisible=true, title=Android System WebView], network_restrictions=ANY_NETWORK status=running, bytes_downloaded=7805965, total_bytes=36581983, retry[count=1, next_retry=2025-10-15T02:58:58.504+08:00[Asia/Shanghai]]) 10-15 03:02:23.612 07805 07805 I Finsky:background: [2] RF: onProgress request_id=325 isid=LLD-GbNOQ86W2NJ_EfYvXA 10-15 03:02:23.612 07805 07805 I Finsky:background: [2] RF: resourceStatus for request_id=325 group=com.google.android.webview artifact=com.google.android.webview.apk collectedBytes= 7805965 / 36581983 10-15 03:02:23.613 07805 07805 I Finsky:background: [2] RF: Group=com.google.android.webview totalBytesDownloaded= 7843068 / 36619086 for 2 artifacts 10-15 03:02:23.615 07805 07805 I Finsky:background: [2] Updated time lastBroadcast=2025-10-14T19:02:21.485Z current=2025-10-14T19:02:23.614Z 10-15 03:02:23.615 07805 07805 I Finsky:background: [2] bytesCompleted/bytesTotal/ratio = 7843068 / 36619086 / 0.214180 10-15 03:02:23.620 07805 07892 I Finsky:background: [59] IV2: onTaskProgress com.google.android.webview[iid:55] [isid:LLD-GbNOQ86W2NJ_EfYvXA] status:RESOURCE_FETCH_PROGRESS, size: 7843068/94176391 10-15 03:02:23.624 07805 18697 I Finsky:background: [521] IQ: Notifying installation update. [Package:com.google.android.webview, isid:LLD-GbNOQ86W2NJ_EfYvXA], status=DOWNLOADING, status_code=0, reason=auto_update, tsc=PT1H41M15.445S, attempt=0 10-15 03:02:23.629 07805 07805 I Finsky:background: [2] PIM: Ignore install package event for: com.google.android.webview, isid: LLD-GbNOQ86W2NJ_EfYvXA 10-15 03:02:23.634 01453 03593 V ActivityManager: Broadcast: Intent { act=com.android.launcher.action.ACTION_PACKAGE_DOWNLOADING pkg=com.google.android.googlequicksearchbox } ordered=false userid=0 resultTo null 10-15 03:02:23.634 01453 03593 V ActivityManager: broadcastIntentLocked callingPid: 17176 callingUid=10122 10-15 03:02:23.634 01453 03593 D OplusBenchHelper: benchMode:true; pkgNamecom.google.android.googlequicksearchbox 10-15 03:02:23.636 17176 17176 I Finsky : [2] DL: Data loader session turned off due to Incremental install not requested: com.google.android.webview 10-15 03:02:23.637 17176 17176 I Finsky : [2] IQ::HLD: if pauseAppUpdates is called now, it must wait for these ongoing installs: [[Package:com.google.android.webview, isid:LLD-GbNOQ86W2NJ_EfYvXA]] 10-15 03:02:23.737 01453 01534 I system_server: libdebuggerd_client: done dumping process 1175 10-15 03:02:23.737 01047 01047 W tombstoned: skipping tombstone file creation due to intercept 10-15 03:02:23.740 01453 03039 D Osense-PsiDetector: newPressureState = 0, 0 10-15 03:02:23.741 01453 03039 D Osense-ReentrantPolicy: bundle: Bundle[{stateType=update, currentAvailmem=2746, type=iolevel, killTriggerMem=1800, ioLevel=0}] 10-15 03:02:23.741 01453 01534 I ActivityManager: Collecting stacks for native pid 14360 10-15 03:02:23.742 01453 03039 D OsenseResEventManager: handleOsenseResultEvent: OsenseEventResult : eventType is :112 eventStateType is :2 ExtraData is : Bundle[{currentAvailmem=2746, killTriggerMem=1800, ioLevel=0}] 10-15 03:02:23.742 01453 01534 E system_server: Could not open /dev/binderfs/binder_logs/transactions. Likely a permissions issue. errno: 2 10-15 03:02:23.742 01453 01534 E android.os.Debug: Failed to get binder state info for pid: 14360 status: -2: No such file or directory 10-15 03:02:23.745 01453 01534 I system_server: libdebuggerd_client: started dumping process 14360 10-15 03:02:23.748 01047 01047 I tombstoned: registered intercept for pid 14360 and type kDebuggerdNativeBacktrace 10-15 03:02:23.750 14360 14360 I libc : Requested dump for pid 14360 (Binder:oplus_de) 10-15 03:02:23.803 19213 19213 E crash_dump64: failed to get the guest state header for thread 14360: Bad address 10-15 03:02:23.805 19213 19213 E crash_dump64: failed to get the guest state header for thread 14542: Bad address 10-15 03:02:23.806 19213 19213 E crash_dump64: failed to get the guest state header for thread 14543: Bad address 10-15 03:02:23.808 19213 19213 E crash_dump64: failed to get the guest state header for thread 18958: Bad address 10-15 03:02:23.810 19213 19213 E crash_dump64: failed to get the guest state header for thread 19212: Bad address 10-15 03:02:23.812 19213 19213 E crash_dump64: failed to get the guest state header for thread 20960: Bad address 10-15 03:02:23.814 19213 19213 E crash_dump64: failed to get the guest state header for thread 28906: Bad address 10-15 03:02:23.823 19213 19213 I crash_dump64: obtaining output fd from tombstoned, type: kDebuggerdNativeBacktrace 10-15 03:02:23.826 01047 01047 I tombstoned: received crash request for pid 14360 10-15 03:02:23.826 01047 01047 I tombstoned: found intercept fd 512 for pid 14360 and type kDebuggerdNativeBacktrace 10-15 03:02:23.827 19213 19213 I crash_dump64: performing dump of process 14360 (target tid = 14360) 10-15 03:02:23.830 19213 19213 I crash_dump64: ***crash_dump->dump_backtrace*** 10-15 03:02:23.868 01453 01534 I system_server: libdebuggerd_client: done dumping process 14360 10-15 03:02:23.869 01047 01047 W tombstoned: skipping tombstone file creation due to intercept 10-15 03:02:23.870 01453 01534 I ActivityManager: Collecting stacks for native pid 1113 10-15 03:02:23.871 01453 01534 E system_server: Could not open /dev/binderfs/binder_logs/transactions. Likely a permissions issue. errno: 2 10-15 03:02:23.871 01453 01534 E android.os.Debug: Failed to get binder state info for pid: 1113 status: -2: No such file or directory 10-15 03:02:23.873 01453 01534 I system_server: libdebuggerd_client: started dumping process 1113 10-15 03:02:23.874 01047 01047 I tombstoned: registered intercept for pid 1113 and type kDebuggerdNativeBacktrace 10-15 03:02:23.877 01113 01113 I libc : Requested dump for pid 1113 (main) 10-15 03:02:23.949 19218 19218 I crash_dump32: obtaining output fd from tombstoned, type: kDebuggerdNativeBacktrace 10-15 03:02:23.950 01047 01047 I tombstoned: received crash request for pid 1113 10-15 03:02:23.951 01047 01047 I tombstoned: found intercept fd 512 for pid 1113 and type kDebuggerdNativeBacktrace 10-15 03:02:23.951 19218 19218 I crash_dump32: performing dump of process 1113 (target tid = 1113) 10-15 03:02:23.960 19218 19218 I crash_dump32: ***crash_dump->dump_backtrace*** 10-15 03:02:24.050 01453 01973 D AlarmManager: get result from waitForAlarm: result = 0x8 10-15 03:02:24.051 01453 01973 V AlarmManager: Checking for alarms... rtc=1760468544050, elapsed=290400748, nextNoWakeup = 295716699, PendingNonWakeupAlarmsSize = 3, result = 0x8, hasPendingIdle = false 10-15 03:02:24.089 01453 03039 D Osense-PsiDetector: newPressureState = 0, 3 10-15 03:02:24.090 01453 03039 D Osense-ReentrantPolicy: bundle: Bundle[{stateType=update, currentAvailmem=2742, type=iolevel, killTriggerMem=1800, ioLevel=3}] 10-15 03:02:24.090 01453 03039 D OsenseResEventManager: handleOsenseResultEvent: OsenseEventResult : eventType is :112 eventStateType is :2 ExtraData is : Bundle[{currentAvailmem=2742, killTriggerMem=1800, ioLevel=3}] 10-15 03:02:24.090 01453 03039 D Osense-FeatureManager: notifySceneToNRTFeature... scene:SCENE_RES_IO_PSI, bundle:Bundle[{ioLevel=3}] 10-15 03:02:24.091 01453 03039 D Osense-IOFeature: dispatchScene...sceneType:SCENE_RES_IO_PSI, bundle:Bundle[{ioLevel=3}] 10-15 03:02:24.091 01453 02953 I Osense-BaseDecisionMaker: notifySceneToAthenaPolicy: SCENE_RES_IO_PSI, bundle: Bundle[{ioLevel=3}] 10-15 03:02:24.092 01453 02953 I Osense-BaseDecisionMaker: OSense not supported scene! SCENE_RES_IO_PSI 10-15 03:02:24.127 01952 05035 I oplus_theia: Waiting for OCenterService 10-15 03:02:24.153 01453 01534 I system_server: libdebuggerd_client: done dumping process 1113 10-15 03:02:24.154 01047 01047 W tombstoned: skipping tombstone file creation due to intercept 10-15 03:02:24.157 01453 01534 I ActivityManager: Collecting stacks for native pid 1435 10-15 03:02:24.158 01453 01534 E system_server: Could not open /dev/binderfs/binder_logs/transactions. Likely a permissions issue. errno: 2 10-15 03:02:24.158 01453 01534 E android.os.Debug: Failed to get binder state info for pid: 1435 status: -2: No such file or directory 10-15 03:02:24.160 01453 01534 I system_server: libdebuggerd_client: started dumping process 1435分析log
10-19
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值