unfortunately Routing task Sample has stopped

1736
4
12-11-2013 07:45 PM
davidgunawan1
New Contributor
like the title said, when i am trying to run sample code about routing task , the running process is going smoothly until the Android emu appears and shows "Unfortunately routing task sample has stopped"

[ATTACH=CONFIG]29791[/ATTACH]

and when i look into the log cat, it shows:

12-12 00:43:40.256: E/AndroidRuntime(809): FATAL EXCEPTION: main
12-12 00:43:40.256: E/AndroidRuntime(809): java.lang.UnsatisfiedLinkError: Couldn't load runtimecore_java from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.esri.arcgis.android.samples.routing-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.esri.arcgis.android.samples.routing-1, /system/lib]]]: findLibrary returned null
12-12 00:43:40.256: E/AndroidRuntime(809):  at java.lang.Runtime.loadLibrary(Runtime.java:355)
12-12 00:43:40.256: E/AndroidRuntime(809):  at java.lang.System.loadLibrary(System.java:525)
12-12 00:43:40.256: E/AndroidRuntime(809):  at com.esri.core.internal.util.e$1.initialize(Unknown Source)
12-12 00:43:40.256: E/AndroidRuntime(809):  at com.esri.core.geometry.GeometryEngine.a(Unknown Source)
12-12 00:43:40.256: E/AndroidRuntime(809):  at com.esri.core.geometry.GeometryEngine.<clinit>(Unknown Source)
12-12 00:43:40.256: E/AndroidRuntime(809):  at com.esri.core.geometry.SpatialReference.<clinit>(Unknown Source)
12-12 00:43:40.256: E/AndroidRuntime(809):  at com.esri.arcgis.android.samples.routing.RoutingSample.<init>(RoutingSample.java:86)
12-12 00:43:40.256: E/AndroidRuntime(809):  at java.lang.Class.newInstanceImpl(Native Method)
12-12 00:43:40.256: E/AndroidRuntime(809):  at java.lang.Class.newInstance(Class.java:1130)
12-12 00:43:40.256: E/AndroidRuntime(809):  at android.app.Instrumentation.newActivity(Instrumentation.java:1061)
12-12 00:43:40.256: E/AndroidRuntime(809):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2128)
12-12 00:43:40.256: E/AndroidRuntime(809):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261)
12-12 00:43:40.256: E/AndroidRuntime(809):  at android.app.ActivityThread.access$600(ActivityThread.java:141)
12-12 00:43:40.256: E/AndroidRuntime(809):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
12-12 00:43:40.256: E/AndroidRuntime(809):  at android.os.Handler.dispatchMessage(Handler.java:99)
12-12 00:43:40.256: E/AndroidRuntime(809):  at android.os.Looper.loop(Looper.java:137)
12-12 00:43:40.256: E/AndroidRuntime(809):  at android.app.ActivityThread.main(ActivityThread.java:5103)
12-12 00:43:40.256: E/AndroidRuntime(809):  at java.lang.reflect.Method.invokeNative(Native Method)
12-12 00:43:40.256: E/AndroidRuntime(809):  at java.lang.reflect.Method.invoke(Method.java:525)
12-12 00:43:40.256: E/AndroidRuntime(809):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
12-12 00:43:40.256: E/AndroidRuntime(809):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
12-12 00:43:40.256: E/AndroidRuntime(809):  at dalvik.system.NativeStart.main(Native Method)


any idea how to solve it? all the process from installing the Apk is success , but when it open the app, program stopped...

Thanks
0 Kudos
4 Replies
ErwinSoekianto
Esri Regular Contributor
What emulator are you running? what Android API level?

Please check if you have "libs" folder in your project and contains "armeabi" and "armeabi-v7a" in there
0 Kudos
davidgunawan1
New Contributor
API level 18, Android Emulator im using now.

So i just copy the Armeabi and v7a folder to the libs?
0 Kudos
davidgunawan1
New Contributor
okay, after i got the program running, now when i want to route a map, this notifications shows up

[ATTACH=CONFIG]29855[/ATTACH]

what else is this?
0 Kudos
ErwinSoekianto
Esri Regular Contributor
Can you show us the network analyst rest end point used?
0 Kudos