I looked at a lot of similar questions here, but all of them had a different problem (the .apk installation actually failed), or the solutions that worked for them did not work for me, so I apologize if this question seems like a reposition.
The problem I am facing is that when I try to run an Android application in an emulator in eclipse, apk will never be installed. The emulator itself works fine (all applications by default work correctly, the settings are correct, etc.), but the application that I am trying to check is never installed on the "phone". It never appears in the application list or starts, and I never receive confirmation that the installation is complete. (A launch application is installed in the launch configuration)
Here is the corresponding console output, with the names changed:
[2011-10-19 10:54:45 - dining-android] Android Launch! [2011-10-19 10:54:45 - dining-android] adb is running normally. [2011-10-19 10:54:45 - dining-android] Performing <src path>.Main activity launch [2011-10-19 10:54:45 - dining-android] Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD '1.5test' [2011-10-19 10:54:45 - dining-android] Uploading <appname>.apk onto device 'emulator-5554' [2011-10-19 10:54:59 - dining-android] Installing <appname>.apk...
It doesn't seem to matter if I launch the emulator manually, and then try to run the application or run the application and let it run the emulator automatically, it will never pass this step. I left it to work for about 8 hours (night), and nothing has changed. The application is for the same version of Android as the emulator, and everything looks right in the emulator and eclipse settings, as far as I can tell, except that it never completes the installation of the application.
Does anyone know why this will happen? I tried restarting adb using different versions of the emulator and / or applications, changing the default startup configuration and various other solutions that I came across on the Internet that seem to have no effect. I would really appreciate help in this if someone comes across something like that.
EDIT: I just tried using the "adb install" command on the command line of the .apk application while the emulator was running, and it was also unsuccessful. I donβt know if this or another problem is connected.
EDIT2: Installing the command line using the "adb install" function is performed correctly. However, eclipse still cannot install the application. Does anyone know what might cause this?
android eclipse android-emulator
matt5784
source share