IT박스

Android 기기에 HelloWorld.apk를 설치하지 못했습니다 (null) 오류

itboxs 2020. 11. 14. 10:02
반응형

Android 기기에 HelloWorld.apk를 설치하지 못했습니다 (null) 오류


저는 Android를 처음 사용합니다. Eclipse에서 Android 애플리케이션을 실행할 때 콘솔에 다음 메시지가 표시됩니다.

[2011-03-08 12:57:35 - HelloWorld] ------------------------------
[2011-03-08 12:57:35 - HelloWorld] Android Launch!
[2011-03-08 12:57:35 - HelloWorld] adb is running normally.
[2011-03-08 12:57:35 - HelloWorld] Performing com.oreilly.helloworld.HelloWorldActivity activity launch
[2011-03-08 12:57:35 - HelloWorld] Automatic Target Mode: Preferred AVD 'MY_AVD' is not available. Launching new emulator.
[2011-03-08 12:57:35 - HelloWorld] Launching a new emulator with Virtual Device 'MY_AVD'
[2011-03-08 12:57:39 - HelloWorld] New emulator found: emulator-5554
[2011-03-08 12:57:39 - HelloWorld] Waiting for HOME ('android.process.acore') to be launched...
[2011-03-08 13:00:14 - HelloWorld] WARNING: Application does not specify an API level requirement!
[2011-03-08 13:00:14 - HelloWorld] Device API version is 11 (Android 3.0)
[2011-03-08 13:00:14 - HelloWorld] HOME is up on device 'emulator-5554'
[2011-03-08 13:00:14 - HelloWorld] Uploading HelloWorld.apk onto device 'emulator-5554'
[2011-03-08 13:00:14 - HelloWorld] Installing HelloWorld.apk...
[2011-03-08 13:02:22 - HelloWorld] Failed to install HelloWorld.apk on device 'emulator-5554!
[2011-03-08 13:02:22 - HelloWorld] (null)
[2011-03-08 13:02:23 - HelloWorld] Launch canceled!

내 응용 프로그램이 시작되도록 문제를 해결하려면 어떻게합니까?


ADB 연결 시간 제한을 변경해보십시오. 나는 그것이 5000ms로 기본값이라고 생각하고 그 문제를 없애기 위해 내 것을 10000ms로 변경했습니다. Eclipse에있는 경우 Window-> Preferences를 통해이를 수행 할 수 있으며 Android의 DDMS에 있습니다.

여기에 설명 된대로 : Android 오류 : 기기에 * .apk를 설치하지 못했습니다. * : 시간 초과


장치를 다시 시작하면 작동합니다. adb install을 사용하면 apk를 설치할 수 있지만 이클립스 내에서 디버깅 할 때 앱을 시작할 때마다 사용하는 것은 성가신 일입니다.


나는 때때로 이것을 얻지 만 일반적으로 에뮬레이터가 느리게 시작되는 것과 관련이 있습니다. 재시도 사이에 에뮬레이터 닫지 않고 다시 시도하십시오 . 그래도 실패하면 클라이언트 로그 (logcat)를 게시하십시오.

또 다른 이유는 백그라운드에서 실행되고 여전히 디버깅 포트에 바인딩 된 고스트 Eclipse 프로세스 일 수 있습니다. Eclipse를 닫고 프로세스 목록을보고 Eclipse가 아직 실행 중인지 확인하십시오. 모두 죽이고 Eclipse를 다시 시작하십시오.


Android Emulator에서 실행중인 경우 실행 사이에 닫고 싶지 않습니다. 시스템은 앱로드를 시도하고 에뮬레이터가 부팅하는 데 걸리는 시간 때문에 시간이 초과됩니다. Window-> Preferences-> Android-> DDMS로 이동하여 ADB 시간을 늘리고 ADB 시간 초과 (기본값은 5000ms)를 늘리거나 에뮬레이터를 열어두고 에뮬레이터가 실행 된 후 실행하면이 문제를 해결할 수 있습니다. .

개인적으로 에뮬레이터가 실행되면 상대적으로 빠르게 앱을로드하므로 에뮬레이터를 열어 두는 것이 좋지만 시스템이 고갈 될 수 있습니다. 더 많은 도움이되는 것을하십시오.


고려해야 할 다른 사항은 사용자 데이터를 삭제하여 에뮬레이터를 하드 리셋하는 것입니다.

이 작업을 수행하려면 :-패키지 탐색기에서 프로젝트 이름을 마우스 오른쪽 버튼으로 클릭- '다음 계정으로 실행'으로 이동 한 다음 '구성 실행'으로 이동합니다.- '실행 구성'창에서 '대상'탭을 클릭 한 다음 선택한 이름을 선택합니다. 에뮬레이터- '사용자 데이터 삭제'를 선택하고 적용을 클릭합니다.

다음에 에뮬레이터를 시작할 때 데이터를 정말로 삭제할 것인지 묻는 메시지가 표시됩니다. 예를 클릭하면 앱 설치에 도움이되기를 바랍니다.


동일한 문제가 발생하여 Android SDK 폴더 도구플랫폼 도구 의 경로 시스템 PATH 변수에 추가 한 다음 장치를 다시 시작하여 문제를 해결했습니다 .


@Bolton의 답변이 저에게 효과적이었습니다. 세부 사항 ...

몇 주 전에 휴대 전화를 받았습니다. HelloAndroid 샘플 앱을 바로 사용해 보았습니다 (필요한 소프트웨어를 설치 한 후 등). 앱은 에뮬레이터와 전화에서 바로 작동했습니다!

그 직후, 나는 내 전화를 루팅했지만 롬이나 커널을 플래시하지 않았습니다. 어제까지만 에뮬레이터를 실험했습니다 (간단한 메모장 앱 작성). 전화에서 앱을 디버깅하려고 할 때 관찰 한 내용은 다음과 같습니다.

  1. Eclipse 콘솔이 "... 장치에 설치하지 못했습니다 ... (null)"메시지를보고했습니다. 그러나

  2. HelloAndroid 앱이 휴대 전화로 푸시되었습니다! (앱 서랍에 나타나서 실행할 수있었습니다.)

  3. Eclipse 실행에서 전화로 실행되지 않습니다.

나는 어젯밤 여기와 다른 곳에서 (이 스레드를 포함하여) 운없이 수색했습니다. 마지막으로 전화를 다시 부팅했습니다. 시도해 본 적이 없습니다 (doh!). 차이가있을 것이라고 생각하지 않았기 때문에 앱이 Eclipse 시작에서 시작되었습니다!

원인은 아직 모르겠지만 알아 내면 여기로 돌아 올게요.


동일한 문제가 있습니다. 'xxxxxxxxx'장치에 test.apk를 설치하지 못했습니다. null

전화를 재부팅하고 Eclipse를 다시 시작하려고 시도합니다.

그런 다음 Eclipse 작업 공간에서이 프로젝트를 제거하고 다시 가져옵니다. (파일, 가져 오기, 기존 프로젝트에서 작업 공간으로). 문제가 무엇인지 정확히 모르지만 지금은 정상적으로 작동합니다.


같은 문제가 발생하여 ADB 연결 시간 제한을 늘리려 고 시도했습니다. 작동하지 않았습니다.

I tried putting the "android-sdk/tools" and "android-sdk/platform-tools" in the PATH variable.... No effect.

I tried restarting Eclipse and letting the AVD startup before running. Same problem.

I can sometimes get it to work with a combination of closing and reopening the project, followed by cleaning and rebuilding the project. It doesn't always work, but since I didn't restart the AVD this last time, I think the problem lies within Eclipse itself. You might try deleting everything in the "bin" directory of your project and then cleaning and rebuilding. It might be some temporary or intermediate files not getting deleted properly. Another thing I had to do was delete my AVD. It didn't delete properly, and I had to go in and manually delete the AVD's subfolder and then re-create the AVD. Some combination of these clears the problem up temporarily. Hope that helps.


If unplugging the device and plugging it back in doesn't work, try increasing the upload timeout to something really huge like 20000 ms. It's at Window → Preferences → Android → DDMS → "ADB connection time out (ms)".


Just try the following steps,

  1. Go to Home screen before you start to run the application.
  2. No need to uninstall every time. Just uninstall your application once properly.

    Go to Setting -> Manage Application -> click menu -> filter -> Third party application. Check whether your application is there or not.

  3. After modifying your application just save it. Right click your project and select "Run as Android application".
  4. Note: once again, before running your application check whether or not your emulator is showing the home screen.

going to home screen: from eclipse go to menus: window->android virtual device->start


As for me, I had the same problem and it helped to increase SD volume and max VM app heap size. (Android SDK and AVD manager - Virtual device - Edit) What is interesting, the back change of SD and heap to the previous values is OK, too. That means, that any change of emulator parameters and its rebuilding is enough. (Simple restart won't help)


I had imported an existing project and started running... i too was facing the same problem (WARNING: Application does not specify an API Device API version is 11 (Android 3.0) ). After all my attempts to resolve that failed,I just created new project under other package to maintain the same names and copied all the file contents of the previously imporetd projects manually and again started running...to my surprise it successfully executed in my first attempt...i think the problem was due to the lack of compatibilty of versions when imported...i hope it may help few...


I was facing this problem time and again.Got around a lot of forums, but couldn't find a logical solution for the issue.

I used to get this error message, . . . Uploading test.apk onto device 'emulator-5554' Failed to install test.apk on device 'emulator-5554': timeout Launch canceled!

this error is thrown as the start of emulator and deployment of application takes some significant time and before that the emulator times out.

A simple fix for this problem is keeping the emulator open when this problem occurs, *just run the application again. This only deploys the application on to the already started emulator *. There is not much time consumed during this run as the major part of the time during app deployment is because of slow start up of emulator.

Hope this helps!


What Jichao said always works for me.

Generally when I see this error if I am using Eclipse I will close and reopen the program. I will then uninstall the Application from the target phone. This sometimes fixes the issue but not always.

Next I will open up the command terminal and head into the android-sdk then run:

./adb install <AppName>.apk

This does the same thing that running through Eclipse does but it will give you an error message.

(9 times out of 10 it simply says 'INSTALL_ALREADY_EXISTS' and I go and uninstall the application off the target phone again then run adb and I am working fine.)


I was getting the same error.

I Just left the AVD running even after it says "Failed to install *.apk on device-emulator-5554". It automatically loaded the project afterwards.

I think the error comes due the slow start up of the AVD.


I was getting the same errors with my devices.
First be sure that you do not upload debug apk to a device having already installed the same apk but signed with release cert. In this case you've got to uninstall it first from the device.
In other cases my solution is to reboot everything:

  1. reboot device
  2. pskill emulator-arm.exe
  3. pskill eclipse.exe
  4. pskill adb.exe

After that the device, adb and eclipse are working.


When it shows the red writing - the error , don't close the emulator - leave it as is and run the application again.


restart the ADT or 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. If you are in Eclipse, you can do this by going through Window -> Preferences and then it is in DDMS under Android.


OK, this approach will only be useful when you are connecting to a real device rather than to an Android emulator.

Resetting the DDMS ADB connection timeout won't work nicely with a real device when there is a problem with USB debugging mode of the device.

So, disabling and re-enabling USB debugging mode seems to resolve the issue by creating a new fresh ADB session on the device.


go setting- security verify apps if checked, change to unchecked status, then change to checked status


1) remove the apk from this directory project/build/outputs/apk

2) If you using genymotion emulator restart the genymotion

3) make project & rebuild the project

4) Run Again

참고URL : https://stackoverflow.com/questions/5229906/android-failed-to-install-helloworld-apk-on-device-null-error

반응형