arcgis hello world sample wont run.

4414
2
12-24-2014 03:38 AM
robelalemu
New Contributor

hello,this is my first time to ask a question here and pleas help me.i am trying to run hello world sample of arcgis sdk on eclipse but it keeps on saying unfortunatiely hello working,and when i check my log cat i get this error

12-24 16:24:43.963: E/AndroidRuntime(1127): FATAL EXCEPTION: main

12-24 16:24:43.963: E/AndroidRuntime(1127): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.arcgis.android.samples.maps.helloworld/com.arcgis.android.samples.maps.helloworld.MainActivity}: java.lang.ClassNotFoundException: Didn't find class "com.arcgis.android.samples.maps.helloworld.MainActivity" on path: /data/app/com.arcgis.android.samples.maps.helloworld-2.apk

12-24 16:24:43.963: E/AndroidRuntime(1127): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2106)

12-24 16:24:43.963: E/AndroidRuntime(1127): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)

12-24 16:24:43.963: E/AndroidRuntime(1127): at android.app.ActivityThread.access$600(ActivityThread.java:141)

12-24 16:24:43.963: E/AndroidRuntime(1127): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)

12-24 16:24:43.963: E/AndroidRuntime(1127): at android.os.Handler.dispatchMessage(Handler.java:99)

12-24 16:24:43.963: E/AndroidRuntime(1127): at android.os.Looper.loop(Looper.java:137)

12-24 16:24:43.963: E/AndroidRuntime(1127): at android.app.ActivityThread.main(ActivityThread.java:5041)

12-24 16:24:43.963: E/AndroidRuntime(1127): at java.lang.reflect.Method.invokeNative(Native Method)

12-24 16:24:43.963: E/AndroidRuntime(1127): at java.lang.reflect.Method.invoke(Method.java:511)

12-24 16:24:43.963: E/AndroidRuntime(1127): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)

12-24 16:24:43.963: E/AndroidRuntime(1127): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)

12-24 16:24:43.963: E/AndroidRuntime(1127): at dalvik.system.NativeStart.main(Native Method)

12-24 16:24:43.963: E/AndroidRuntime(1127): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.arcgis.android.samples.maps.helloworld.MainActivity" on path: /data/app/com.arcgis.android.samples.maps.helloworld-2.apk

12-24 16:24:43.963: E/AndroidRuntime(1127): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:65)

12-24 16:24:43.963: E/AndroidRuntime(1127): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)

12-24 16:24:43.963: E/AndroidRuntime(1127): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)

12-24 16:24:43.963: E/AndroidRuntime(1127): at android.app.Instrumentation.newActivity(Instrumentation.java:1054)

12-24 16:24:43.963: E/AndroidRuntime(1127): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2097)

12-24 16:24:43.963: E/AndroidRuntime(1127): ... 11

0 Kudos
2 Replies
EricBader
Occasional Contributor III

Robel,

Were you able to get passed this issue?

Is this related to map.addLayer in helloworld sample Failed to pull samples from ArcGIS.com android eclipse ?

Thanks!

0 Kudos
DanO_Neill
Occasional Contributor III

Did you right click your project after importing the sample and select Convert to ArcGIS Android Project?  Projects installed through our Eclipse Samples plugin need to be converted to an ArcGIS Android Project to pick up the required libs through the plugin.  This is why you are getting a ClassNotFoundException. 

0 Kudos