android app Killed at startup

Hi,

I am using IDEA 10.0.2 with android support.
Creating a new project and having intellij generate the android helloworld example.

everything starts and the emulator shows up, but suddenly everything is Killed as below:

Waiting for device.
C:\android-sdk-windows\tools\emulator.exe -avd Android2.2 -netspeed full -netdelay none
Device connected: emulator-5554
Device is online: emulator-5554
Target device: emulator-5554 (Android2.2)
Uploading file
    local path: C:\programming\android_test\test\out\production\test\test.apk
    remote path: /data/local/tmp/com.example
Installing com.example.
DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/com.example"
pkg: /data/local/tmp/com.example
[1]   Killed                  pm install -r "/...

Launching application: com.example/com.example.MyActivity.
DEVICE SHELL COMMAND: am start -n "com.example/com.example.MyActivity"
[1]   Killed                  am start -n "com...

I have done no changes at all from the generated project and since I am new to this I can't see what I am doing wrong.

0
4 comments
Avatar
Permanently deleted user

Hello, rikard

Are there any error messages in Android logcat?

0
Avatar
Permanently deleted user

I'm having the same problem.  There are plenty of errors in the log.  Here are some examples:

08-05 06:59:31.953: ERROR/BatteryService(59): usbOnlinePath not found
08-05 06:59:31.953: ERROR/BatteryService(59): batteryVoltagePath not found
08-05 06:59:31.953: ERROR/BatteryService(59): batteryTemperaturePath not found



08-05 06:59:31.983: ERROR/SurfaceFlinger(59): Couldn't open /sys/power/wait_for_fb_sleep or /sys/power/wait_for_fb_wake

08-05 06:59:39.273: ERROR/EventHub(59): could not get driver version for /dev/input/mouse0, Not a typewriter
08-05 06:59:39.273: ERROR/EventHub(59): could not get driver version for /dev/input/mice, Not a typewriter



08-05 06:59:40.243: ERROR/SoundPool(59): error loading /system/media/audio/ui/Effect_Tick.ogg
08-05 06:59:40.243: ERROR/SoundPool(59): error loading /system/media/audio/ui/KeypressStandard.ogg
08-05 06:59:40.243: ERROR/SoundPool(59): error loading /system/media/audio/ui/KeypressSpacebar.ogg
08-05 06:59:40.253: ERROR/SoundPool(59): error loading /system/media/audio/ui/KeypressDelete.ogg
08-05 06:59:40.253: ERROR/SoundPool(59): error loading /system/media/audio/ui/KeypressReturn.ogg



08-05 06:59:39.402: ERROR/System(59): Failure starting core service
        java.lang.SecurityException
        at android.os.BinderProxy.transact(Native Method)
        at android.os.ServiceManagerProxy.addService(ServiceManagerNative.java:146)
        at android.os.ServiceManager.addService(ServiceManager.java:72)
        at com.android.server.ServerThread.run(SystemServer.java:184)



08-05 06:59:41.563: ERROR/ThrottleService(59): Could not open GPS configuration file /etc/gps.conf

08-05 06:59:42.452: ERROR/logwrapper(144): executing /system/bin/tc failed: No such file or directory

08-05 06:59:42.492: ERROR/logwrapper(145): executing /system/bin/tc failed: No such file or directory

08-05 06:59:42.613: ERROR/logwrapper(148): executing /system/bin/tc failed: No such file or directory

08-05 06:59:53.186: ERROR/HierarchicalStateMachine(59): TetherMaster - unhandledMessage: msg.what=3

08-05 07:00:12.826: ERROR/installd(35): eof
08-05 07:00:12.826: ERROR/installd(35): failed to read size



08-05 07:00:43.705: ERROR/Zygote(279): setreuid() failed. errno: 17


Any thoughts?  I'm also new to Android, and I'm sure I'm making a rookie mistake :)
0
Avatar
Permanently deleted user

Here's a more complete/concise list of all the errors I get when I just try to run an unmodified new Android project in IntelliJ 10 CE

08-05 07:23:05.430: ERROR/Zygote(33): setreuid() failed. errno: 2
08-05 07:23:12.920: ERROR/Zygote(33): setreuid() failed. errno: 17
08-05 07:23:14.600: ERROR/BatteryService(59): usbOnlinePath not found
08-05 07:23:14.600: ERROR/BatteryService(59): batteryVoltagePath not found
08-05 07:23:14.600: ERROR/BatteryService(59): batteryTemperaturePath not found
08-05 07:23:14.620: ERROR/SurfaceFlinger(59): Couldn't open /sys/power/wait_for_fb_sleep or /sys/power/wait_for_fb_wake
        id           =
        xres         = 240 px
        yres         = 400 px
        xres_virtual = 240 px
        yres_virtual = 800 px
        bpp          = 16
        r            = 11:5
        g            =  5:6
        b            =  0:5
        height       = 62 mm (163.870972 dpi)
        refresh rate = 60.00 Hz
08-05 07:23:22.250: ERROR/EventHub(59): could not get driver version for /dev/input/mouse0, Not a typewriter
08-05 07:23:22.250: ERROR/EventHub(59): could not get driver version for /dev/input/mice, Not a typewriter
08-05 07:23:22.370: ERROR/System(59): Failure starting core service
        java.lang.SecurityException
        at android.os.BinderProxy.transact(Native Method)
        at android.os.ServiceManagerProxy.addService(ServiceManagerNative.java:146)
        at android.os.ServiceManager.addService(ServiceManager.java:72)
        at com.android.server.ServerThread.run(SystemServer.java:184)
08-05 07:23:23.691: ERROR/SoundPool(59): error loading /system/media/audio/ui/Effect_Tick.ogg
08-05 07:23:23.700: ERROR/SoundPool(59): error loading /system/media/audio/ui/KeypressStandard.ogg
08-05 07:23:23.710: ERROR/SoundPool(59): error loading /system/media/audio/ui/KeypressSpacebar.ogg
08-05 07:23:23.720: ERROR/SoundPool(59): error loading /system/media/audio/ui/KeypressDelete.ogg
08-05 07:23:23.720: ERROR/SoundPool(59): error loading /system/media/audio/ui/KeypressReturn.ogg
08-05 07:23:25.790: ERROR/ThrottleService(59): Could not open GPS configuration file /etc/gps.conf
08-05 07:23:26.650: ERROR/logwrapper(145): executing /system/bin/tc failed: No such file or directory
08-05 07:23:26.770: ERROR/logwrapper(146): executing /system/bin/tc failed: No such file or directory
08-05 07:23:26.850: ERROR/logwrapper(148): executing /system/bin/tc failed: No such file or directory
08-05 07:23:36.401: ERROR/HierarchicalStateMachine(59): TetherMaster - unhandledMessage: msg.what=3
        [1]   Killed                  logcat -v long
08-05 07:23:05.430: ERROR/Zygote(33): setreuid() failed. errno: 2
08-05 07:23:12.920: ERROR/Zygote(33): setreuid() failed. errno: 17
08-05 07:23:14.600: ERROR/BatteryService(59): usbOnlinePath not found
08-05 07:23:14.600: ERROR/BatteryService(59): batteryVoltagePath not found
08-05 07:23:14.600: ERROR/BatteryService(59): batteryTemperaturePath not found
08-05 07:23:14.620: ERROR/SurfaceFlinger(59): Couldn't open /sys/power/wait_for_fb_sleep or /sys/power/wait_for_fb_wake
        id           =
        xres         = 240 px
        yres         = 400 px
        xres_virtual = 240 px
        yres_virtual = 800 px
        bpp          = 16
        r            = 11:5
        g            =  5:6
        b            =  0:5
        height       = 62 mm (163.870972 dpi)
        refresh rate = 60.00 Hz
08-05 07:23:22.250: ERROR/EventHub(59): could not get driver version for /dev/input/mouse0, Not a typewriter
08-05 07:23:22.250: ERROR/EventHub(59): could not get driver version for /dev/input/mice, Not a typewriter
08-05 07:23:22.370: ERROR/System(59): Failure starting core service
        java.lang.SecurityException
        at android.os.BinderProxy.transact(Native Method)
        at android.os.ServiceManagerProxy.addService(ServiceManagerNative.java:146)
        at android.os.ServiceManager.addService(ServiceManager.java:72)
        at com.android.server.ServerThread.run(SystemServer.java:184)
08-05 07:23:23.691: ERROR/SoundPool(59): error loading /system/media/audio/ui/Effect_Tick.ogg
08-05 07:23:23.700: ERROR/SoundPool(59): error loading /system/media/audio/ui/KeypressStandard.ogg
08-05 07:23:23.710: ERROR/SoundPool(59): error loading /system/media/audio/ui/KeypressSpacebar.ogg
08-05 07:23:23.720: ERROR/SoundPool(59): error loading /system/media/audio/ui/KeypressDelete.ogg
08-05 07:23:23.720: ERROR/SoundPool(59): error loading /system/media/audio/ui/KeypressReturn.ogg
08-05 07:23:25.790: ERROR/ThrottleService(59): Could not open GPS configuration file /etc/gps.conf
08-05 07:23:26.650: ERROR/logwrapper(145): executing /system/bin/tc failed: No such file or directory
08-05 07:23:26.770: ERROR/logwrapper(146): executing /system/bin/tc failed: No such file or directory
08-05 07:23:26.850: ERROR/logwrapper(148): executing /system/bin/tc failed: No such file or directory
08-05 07:23:36.401: ERROR/HierarchicalStateMachine(59): TetherMaster - unhandledMessage: msg.what=3
08-05 07:23:58.021: ERROR/installd(35): eof
08-05 07:23:58.021: ERROR/installd(35): failed to read size
        [1]   Killed                  logcat -v long

0
Avatar
Permanently deleted user

Repeated attempts with no changes to the code or project settings have resulted in the app installing successfully, but then "am start..." is still being killed.  However, I was able to launch the app in the emulator manually.

Bizarre...

I still get the same errors in logcat.

0

Please sign in to leave a comment.