"Unfortunately, <app name> has stopped.

6038
5
02-13-2014 12:49 PM
karldailey
New Contributor
I'm can launch android apps, but not ones that deal with ArcGIS libraries.  When I try to create a basic map or launch an ArcGIS sample, I get "Unfortunately, <app name> has stopped."  once it hits the emulator. 

I followed the steps here: http://blogs.esri.com/esri/arcgis/2013/11/25/setting-up-the-android-emulator/

The settings for my emulator is as follows:
Device: Nexus 4 (4.7", 768 x 1280:xhdpi)
Target: Android 4.3 - api level 18
CPU/ABI: Intel Atom (x86)
RAM 658
VM Heap 64
Internal storage 200 MiB
SD Card: size 34 MiB
Use host GPU checked

My log cat has the following:
02-13 17:39:58.080: D/dalvikvm(2162): GC_FOR_ALLOC freed 331K, 16% free 2926K/3448K, paused 11ms, total 11ms
02-13 17:39:58.290: D/ArcGIS.LifeCycle(2162): map.onSizechanged
02-13 17:39:58.480: W/dalvikvm(2162): threadid=11: thread exiting with uncaught exception (group=0xb0ee1648)
02-13 17:39:58.480: E/AndroidRuntime(2162): FATAL EXCEPTION: GLThread 93
02-13 17:39:58.480: E/AndroidRuntime(2162): java.lang.IllegalArgumentException: No configs match configSpec
02-13 17:39:58.480: E/AndroidRuntime(2162):  at com.esri.android.map.MapSurface$a.chooseConfig(Unknown Source)
02-13 17:39:58.480: E/AndroidRuntime(2162):  at android.opengl.GLSurfaceView$EglHelper.start(GLSurfaceView.java:1024)
02-13 17:39:58.480: E/AndroidRuntime(2162):  at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1401)
02-13 17:39:58.480: E/AndroidRuntime(2162):  at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)
0 Kudos
5 Replies
karldailey
New Contributor
I'd also like to note that it works fine when pushing to my HTC Phone, but not an emulator
0 Kudos
RobertBurke
Esri Contributor
Please could you share the contents of your Console window too?

Here is what mine looks like after a successful launch.


[2014-02-19 13:58:36 - HelloWorld] ------------------------------
[2014-02-19 13:58:36 - HelloWorld] Android Launch!
[2014-02-19 13:58:36 - HelloWorld] adb is running normally.
[2014-02-19 13:58:36 - HelloWorld] Performing com.esri.arcgis.android.samples.helloworld.HelloWorld activity launch
[2014-02-19 13:59:01 - HelloWorld] Launching a new emulator with Virtual Device 'Nexus7Haxm'
[2014-02-19 13:59:05 - Emulator] emulator: device fd:880
[2014-02-19 13:59:05 - Emulator]
[2014-02-19 13:59:05 - Emulator] HAX is working and emulator runs in fast virt mode
[2014-02-19 13:59:07 - Emulator] creating window 0 0 608 972
[2014-02-19 13:59:07 - HelloWorld] New emulator found: emulator-5554
[2014-02-19 13:59:07 - HelloWorld] Waiting for HOME ('android.process.acore') to be launched...
[2014-02-19 13:59:37 - HelloWorld] HOME is up on device 'emulator-5554'
[2014-02-19 13:59:37 - HelloWorld] Uploading HelloWorld.apk onto device 'emulator-5554'
[2014-02-19 14:00:00 - HelloWorld] Installing HelloWorld.apk...
[2014-02-19 14:00:05 - HelloWorld] Success!
[2014-02-19 14:00:05 - HelloWorld] Starting activity com.esri.arcgis.android.samples.helloworld.HelloWorld on device emulator-5554
[2014-02-19 14:00:05 - HelloWorld] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.esri.arcgis.android.samples.helloworld/.HelloWorld }
0 Kudos
RobertBurke
Esri Contributor
You might try setting the RAM to 512.

And have a look at the 5 steps in this other posting:
http://forums.arcgis.com/threads/99926-unfortunately-HelloWorld-has-stoped?p=367162#post367162

Please let us know if it works!
0 Kudos
karldailey
New Contributor
this is my console:
[2014-02-22 18:29:33 - SimpleMap] ------------------------------
[2014-02-22 18:29:33 - SimpleMap] Android Launch!
[2014-02-22 18:29:33 - SimpleMap] adb is running normally.
[2014-02-22 18:29:33 - SimpleMap] Performing com.esri.arcgis.android.sample.simplemap.SimpleMapActivity activity launch
[2014-02-22 18:29:33 - SimpleMap] Automatic Target Mode: Unable to detect device compatibility. Please select a target device.
[2014-02-22 18:29:37 - SimpleMap] Application already deployed. No need to reinstall.
[2014-02-22 18:29:37 - SimpleMap] Starting activity com.esri.arcgis.android.sample.simplemap.SimpleMapActivity on device emulator-5554
[2014-02-22 18:29:38 - SimpleMap] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.esri.arcgis.android.sample.simplemap/.SimpleMapActivity }
0 Kudos
karldailey
New Contributor
I had also done the steps you mentioned in the previous post that include:

1-ensure that you have �??ARM EABI v7a System Image installed
2-configure the Intel Hardware Accelerated Execution Manager by executing the <sdk>/extras/intel/Hardware_Accelerated_Execution_Manager/IntelHAXM.exe program
3-create an Android 4.0.3 AVD and enable the GPU emulation hardware property
4- if you are using eclipse in run configuration find target tab scroll down to see command line and type -gpu on
5- now your problem should be solved

but I still get the error.  I think for some reason its not detecting or running opengl?
I see this in the log cat:

02-22 21:58:43.206: D/libEGL(1653): Emulator without GPU support detected. Fallback to software renderer.
0 Kudos