티스토리 뷰
Stack Overflow에 자주 검색, 등록되는 문제들과 제가 개발 중 찾아 본 문제들 중에서 나중에도 찾아 볼 것 같은 문제들을 정리하고 있습니다.
Stack Overflow에서 가장 먼저 확인하게 되는 가장 높은 점수를 받은 Solution과 현 시점에 도움이 될 수 있는 가장 최근에 업데이트(최소 점수 확보)된 Solution을 각각 정리하였습니다.
아래 word cloud를 통해 이번 포스팅의 주요 키워드를 미리 확인하세요.
Android error: Failed to install *.apk on device *: timeout
Android 오류: *.apk를 장치에 설치하지 못했습니다. *: 시간 초과
문제 내용
I'm getting this error from time to time and don't know what causing this:
When trying to run/debug an Android app on a real device (Galaxy Samsung S in my case) I'm getting the following error in the Console:
이 오류가 가끔 발생하며 원인이 무엇인지 알 수 없습니다. 실제 기기에서 Android 앱을 실행/디버깅할 때(내 경우는 Galaxy Samsung S) 콘솔에 다음 오류가 표시됩니다.
Failed to install *.apk on device *:
timeout Launch canceled!
디바이스 *에 *.apk를 설치하지 못했습니다.
시간 초과 실행이 취소되었습니다!
This is all the Console is telling me. LogCat doesn't provide any information. Eclipse Problems view is not showing any issues.
이게 콘솔이 알려주는 전부입니다. LogCat에서 정보를 제공하지 않습니다. Eclipse 문제 보기에 문제가 표시되지 않습니다.
I tried the following steps with no success:
1. Cleaning the project (Project->Clean)
2. Restarting device, Eclipse, laptop, all of the above...
3. Moving the project to a location without spaces, according to Failed to install apk on device 'emulator-5554': timeout
다음 단계를 시도했지만 성공하지 못했습니다.
1. 프로젝트 클린(Project->Clean)
2. 장치, Eclipse, 랩톱 등을 다시 시작하는 중...
3. 장치 '에뮬레이터-5554'에 pk 설치 실패에 따라 공간이 없는 위치로 프로젝트 이동: 시간 초과
The app has been debugged in the past on that device many times (app is live on Market), but this problem happens every so often, and is VERY FRUSTRATING...
이 앱은 이전에 해당 장치에서 여러 번 디버깅되었지만(앱이 시장에서 활성화됨), 이 문제는 매우 자주 발생하며 매우 답답합니다...
Any help would be greatly appreciated! Thanks.
어떤 도움이든 대단히 감사합니다! 감사해요.
높은 점수를 받은 Solution
Try changing the ADB connection timeout. I think it defaults that to 5000ms and I changed mine to 10000ms to get rid of that problem.
ADB 연결 시간 초과를 변경해 보십시오. 기본적으로 5000ms로 설정되어 있고 그 문제를 해결하기 위해 10000ms로 변경했습니다.
If you are in Eclipse, you can do this by going through
Eclipse에 있는 경우 이 작업을 수행하여 수행할 수 있습니다.
Window -> Preferences -> Android -> DDMS -> ADB Connection Timeout (ms)
창 -> 환경설정 -> Android -> DDMS -> ADB 연결 시간 초과(ms)
가장 최근 달린 Solution
I know it sounds silly, but after trying everything recomended for this timeout issue on when running on a device, I decided to try changing the cable and it worked. It's a Coby Kyros MID7015.
바보같이 들리겠지만, 장치에서 실행할 때 이 시간 초과 문제에 대해 권장되는 모든 것을 시도한 후, 케이블을 교체하기로 결정했고 작동했습니다. 코비 카이로스 MID7015입니다.
Trying another cable is a good and simple option to take a chance on.
다른 케이블을 사용하는 것은 기회를 잡기 위한 좋고 간단한 옵션입니다.
출처 : https://stackoverflow.com/questions/4775603/android-error-failed-to-install-apk-on-device-timeout
'개발 > 안드로이드' 카테고리의 다른 글
Handler() Warning 메시지 없이 사용하기 (0) | 2022.12.08 |
---|---|
'This AsyncTask class should be static or leaks might occur' 경고 수정하기 (0) | 2022.12.08 |
웹뷰에 html이 정상적으로 로드되지 않을 때 시도해 볼만한 것 (0) | 2022.12.08 |
텍스트뷰 링크를 클릭할 수 있도록 하는 방법 (0) | 2022.12.07 |
'You need to use a Theme.AppCompat theme (or descendant) with this activity' 오류 수정하기 (0) | 2022.12.07 |