Closed GitHubDroid closed 11 years ago
I am getting the following in log:
09-17 11:29:49.064: E/dalvikvm(23938): Could not find class 'com.esri.core.map.FeatureSet', referenced from method com.esri.android.samples.bladerunner.MapViewActivity.
I am not able to get the app running. Any Ideas?
I would really like to get this working. Any help would be greatly appreciated.
@GitHubDroid The log message indicates you do not have the project correctly setup in Eclipse, specifically the required libraries needed to access the ArcGIS Android API. Assuming you have you dev environment set up correctly, e.g. Java, Eclipse, Android SDK/ADT, & the ArcGIS Runtime SDK for Android you can do the following to turn the imported Git project into an ArcGIS Android Project: Right click the project and select ArcGIS Tools > Convert to ArcGIS Project
.
I tried Convert to ArcGIS Project but still no luck. I am still getting "Unfortunately, Blade Runner has stopped." I am getting this message even when I just install the apk from http://www.arcgis.com/home/item.html?id=01acc4eef0f04c2d9d0796e78938d3cd and attempt to run it. So in that sense I am not even using Eclipse.
Any ideas as to what I can try. I would really like to check this out.
@GitHubDroid I understand you are having issues with the app and now you have gotten past the error you originally posted from within Eclipse. This should result in a different Error log output in Eclipse via the Android SDK LogCat. Please share the new Error you are getting from within Eclipse logcat view.
This is what I am getting in logCat when I attempt to launch it:
09-24 11:28:51.494: E/dalvikvm(9893): Could not find class 'com.esri.core.map.FeatureSet', referenced from method com.esri.android.samples.bladerunner.MapViewActivity.
09-24 11:28:51.494: W/dalvikvm(9893): VFY: unable to resolve new-instance 180 (Lcom/esri/core/map/FeatureSet;) in Lcom/esri/android/samples/bladerunner/MapViewActivity;
09-24 11:28:51.494: D/dalvikvm(9893): VFY: replacing opcode 0x22 at 0x0004
09-24 11:28:51.494: E/dalvikvm(9893): Could not find class 'com.esri.core.map.Graphic[]', referenced from method com.esri.android.samples.bladerunner.MapViewActivity.convertAreasToGraphics
09-24 11:28:51.494: W/dalvikvm(9893): VFY: unable to resolve new-array 258 ([Lcom/esri/core/map/Graphic;) in Lcom/esri/android/samples/bladerunner/MapViewActivity;
09-24 11:28:51.494: D/dalvikvm(9893): VFY: replacing opcode 0x23 at 0x0015
09-24 11:28:51.504: E/dalvikvm(9893): Could not find class 'com.esri.android.map.ags.ArcGISLocalTiledLayer', referenced from method com.esri.android.samples.bladerunner.MapViewActivity.createBaseMap
09-24 11:28:51.504: W/dalvikvm(9893): VFY: unable to resolve new-instance 84 (Lcom/esri/android/map/ags/ArcGISLocalTiledLayer;) in Lcom/esri/android/samples/bladerunner/MapViewActivity;
09-24 11:28:51.504: D/dalvikvm(9893): VFY: replacing opcode 0x22 at 0x0000
09-24 11:28:51.504: E/dalvikvm(9893): Could not find class 'com.esri.android.map.GraphicsLayer', referenced from method com.esri.android.samples.bladerunner.MapViewActivity.createGraphicsLayers
09-24 11:28:51.504: W/dalvikvm(9893): VFY: unable to resolve new-instance 76 (Lcom/esri/android/map/GraphicsLayer;) in Lcom/esri/android/samples/bladerunner/MapViewActivity;
09-24 11:28:51.504: D/dalvikvm(9893): VFY: replacing opcode 0x22 at 0x0001
09-24 11:28:51.504: W/dalvikvm(9893): VFY: unable to find class referenced in signature (Lcom/esri/android/map/ags/ArcGISFeatureLayer;)
09-24 11:28:51.504: W/dalvikvm(9893): VFY: unable to find class referenced in signature (Lcom/esri/android/map/ags/ArcGISFeatureLayer;)
09-24 11:28:51.504: W/dalvikvm(9893): VFY: unable to find class referenced in signature (Lcom/esri/android/map/ags/ArcGISFeatureLayer;)
09-24 11:28:51.504: W/dalvikvm(9893): VFY: unable to find class referenced in signature (Lcom/esri/android/map/ags/ArcGISFeatureLayer;)
09-24 11:28:51.504: I/dalvikvm(9893): Failed resolving Lcom/esri/android/samples/bladerunner/MapViewActivity$7; interface 86 'Lcom/esri/android/map/event/OnStatusChangedListener;'
09-24 11:28:51.504: W/dalvikvm(9893): Link of class 'Lcom/esri/android/samples/bladerunner/MapViewActivity$7;' failed
09-24 11:28:51.504: E/dalvikvm(9893): Could not find class 'com.esri.android.samples.bladerunner.MapViewActivity$7', referenced from method com.esri.android.samples.bladerunner.MapViewActivity.createLayers
09-24 11:28:51.504: W/dalvikvm(9893): VFY: unable to resolve new-instance 128 (Lcom/esri/android/samples/bladerunner/MapViewActivity$7;) in Lcom/esri/android/samples/bladerunner/MapViewActivity;
09-24 11:28:51.504: D/dalvikvm(9893): VFY: replacing opcode 0x22 at 0x0028
09-24 11:28:51.504: E/dalvikvm(9893): Could not find class 'com.esri.core.geometry.Polygon', referenced from method com.esri.android.samples.bladerunner.MapViewActivity.findWindTurbines
09-24 11:28:51.504: W/dalvikvm(9893): VFY: unable to resolve new-instance 173 (Lcom/esri/core/geometry/Polygon;) in Lcom/esri/android/samples/bladerunner/MapViewActivity;
09-24 11:28:51.504: D/dalvikvm(9893): VFY: replacing opcode 0x22 at 0x0011
09-24 11:28:51.514: I/dalvikvm(9893): Could not find method com.esri.android.map.MapView.getLayers, referenced from method com.esri.android.samples.bladerunner.MapViewActivity.getVisibleLayers
09-24 11:28:51.514: W/dalvikvm(9893): VFY: unable to resolve virtual method 221: Lcom/esri/android/map/MapView;.getLayers ()[Lcom/esri/android/map/Layer;
09-24 11:28:51.514: D/dalvikvm(9893): VFY: replacing opcode 0x6e at 0x0009
09-24 11:28:51.514: E/dalvikvm(9893): Could not find class 'com.esri.core.symbol.PictureMarkerSymbol', referenced from method com.esri.android.samples.bladerunner.MapViewActivity.gpsButton
09-24 11:28:51.514: W/dalvikvm(9893): VFY: unable to resolve new-instance 190 (Lcom/esri/core/symbol/PictureMarkerSymbol;) in Lcom/esri/android/samples/bladerunner/MapViewActivity;
09-24 11:28:51.514: D/dalvikvm(9893): VFY: replacing opcode 0x22 at 0x0007
09-24 11:28:51.514: W/dalvikvm(9893): VFY: unable to find class referenced in signature ([Lcom/esri/core/map/Graphic;)
09-24 11:28:51.514: E/dalvikvm(9893): Could not find class 'com.esri.core.map.FeatureSet', referenced from method com.esri.android.samples.bladerunner.MapViewActivity.saveEdits
09-24 11:28:51.514: W/dalvikvm(9893): VFY: unable to resolve new-instance 180 (Lcom/esri/core/map/FeatureSet;) in Lcom/esri/android/samples/bladerunner/MapViewActivity;
09-24 11:28:51.514: D/dalvikvm(9893): VFY: replacing opcode 0x22 at 0x0028
09-24 11:28:51.524: E/dalvikvm(9893): Could not find class 'com.esri.core.symbol.TextSymbol', referenced from method com.esri.android.samples.bladerunner.MapViewActivity.setTeamAreasLabelsSymbol
09-24 11:28:51.524: W/dalvikvm(9893): VFY: unable to resolve new-instance 196 (Lcom/esri/core/symbol/TextSymbol;) in Lcom/esri/android/samples/bladerunner/MapViewActivity;
09-24 11:28:51.524: D/dalvikvm(9893): VFY: replacing opcode 0x22 at 0x0000
09-24 11:28:51.524: W/dalvikvm(9893): VFY: unable to find class referenced in signature (Lcom/esri/core/map/FeatureSet;)
09-24 11:28:51.524: I/dalvikvm(9893): Could not find method com.esri.core.map.FeatureSet.getGraphics, referenced from method com.esri.android.samples.bladerunner.MapViewActivity.addGraphicsAsLabels
09-24 11:28:51.524: W/dalvikvm(9893): VFY: unable to resolve virtual method 703: Lcom/esri/core/map/FeatureSet;.getGraphics ()[Lcom/esri/core/map/Graphic;
09-24 11:28:51.524: D/dalvikvm(9893): VFY: replacing opcode 0x6e at 0x0003
09-24 11:28:51.524: I/dalvikvm(9893): Could not find method com.esri.android.map.MapView.addLayer, referenced from method com.esri.android.samples.bladerunner.MapViewActivity.addLayersToMap
09-24 11:28:51.524: W/dalvikvm(9893): VFY: unable to resolve virtual method 218: Lcom/esri/android/map/MapView;.addLayer (Lcom/esri/android/map/Layer;)I
09-24 11:28:51.524: D/dalvikvm(9893): VFY: replacing opcode 0x6e at 0x0004
09-24 11:28:51.524: W/dalvikvm(9893): VFY: unable to find class referenced in signature (Lcom/esri/core/geometry/Point;)
09-24 11:28:51.524: I/dalvikvm(9893): Could not find method com.esri.android.map.ags.ArcGISFeatureLayer.getTemplates, referenced from method com.esri.android.samples.bladerunner.MapViewActivity.createWindTurbineFeature
09-24 11:28:51.524: W/dalvikvm(9893): VFY: unable to resolve virtual method 245: Lcom/esri/android/map/ags/ArcGISFeatureLayer;.getTemplates ()[Lcom/esri/core/map/FeatureTemplate;
09-24 11:28:51.524: D/dalvikvm(9893): VFY: replacing opcode 0x6e at 0x0002
09-24 11:28:51.524: I/dalvikvm(9893): Could not find method com.esri.android.map.MapView.getLayers, referenced from method com.esri.android.samples.bladerunner.MapViewActivity.layersVisibility
09-24 11:28:51.524: W/dalvikvm(9893): VFY: unable to resolve virtual method 221: Lcom/esri/android/map/MapView;.getLayers ()[Lcom/esri/android/map/Layer;
09-24 11:28:51.524: D/dalvikvm(9893): VFY: replacing opcode 0x6e at 0x000c
09-24 11:28:51.524: I/dalvikvm(9893): Could not find method com.esri.android.map.MapView.removeAll, referenced from method com.esri.android.samples.bladerunner.MapViewActivity.onBackPressed
09-24 11:28:51.524: W/dalvikvm(9893): VFY: unable to resolve virtual method 226: Lcom/esri/android/map/MapView;.removeAll ()V
09-24 11:28:51.524: D/dalvikvm(9893): VFY: replacing opcode 0x6e at 0x0025
09-24 11:28:51.524: E/dalvikvm(9893): Could not find class 'com.esri.android.map.MapView', referenced from method com.esri.android.samples.bladerunner.MapViewActivity.onCreate
09-24 11:28:51.524: W/dalvikvm(9893): VFY: unable to resolve check-cast 80 (Lcom/esri/android/map/MapView;) in Lcom/esri/android/samples/bladerunner/MapViewActivity;
09-24 11:28:51.524: D/dalvikvm(9893): VFY: replacing opcode 0x1f at 0x0030
09-24 11:28:51.534: I/dalvikvm(9893): Could not find method com.esri.android.map.MapView.isLoaded, referenced from method com.esri.android.samples.bladerunner.MapViewActivity.onOptionsItemSelected
09-24 11:28:51.534: W/dalvikvm(9893): VFY: unable to resolve virtual method 225: Lcom/esri/android/map/MapView;.isLoaded ()Z
09-24 11:28:51.534: D/dalvikvm(9893): VFY: replacing opcode 0x6e at 0x0003
09-24 11:28:51.534: I/dalvikvm(9893): Could not find method com.esri.android.map.MapView.isLoaded, referenced from method com.esri.android.samples.bladerunner.MapViewActivity.onPause
09-24 11:28:51.534: W/dalvikvm(9893): VFY: unable to resolve virtual method 225: Lcom/esri/android/map/MapView;.isLoaded ()Z
09-24 11:28:51.544: D/dalvikvm(9893): VFY: replacing opcode 0x6e at 0x0010
09-24 11:28:51.544: I/dalvikvm(9893): Could not find method com.esri.android.map.MapView.restoreState, referenced from method com.esri.android.samples.bladerunner.MapViewActivity.onResume
09-24 11:28:51.544: W/dalvikvm(9893): VFY: unable to resolve virtual method 227: Lcom/esri/android/map/MapView;.restoreState (Ljava/lang/String;)V
09-24 11:28:51.544: D/dalvikvm(9893): VFY: replacing opcode 0x6e at 0x001b
09-24 11:28:51.544: I/dalvikvm(9893): Could not find method com.esri.android.map.ags.ArcGISLocalTiledLayer.reinitializeLayer, referenced from method com.esri.android.samples.bladerunner.MapViewActivity.reinitializeBaseMap
09-24 11:28:51.544: W/dalvikvm(9893): VFY: unable to resolve virtual method 251: Lcom/esri/android/map/ags/ArcGISLocalTiledLayer;.reinitializeLayer (Ljava/lang/String;)V
09-24 11:28:51.544: D/dalvikvm(9893): VFY: replacing opcode 0x6e at 0x0007
09-24 11:28:51.544: W/dalvikvm(9893): VFY: unable to find class referenced in signature (Lcom/esri/android/map/MapView;)
09-24 11:28:51.554: I/dalvikvm(9893): Could not find method com.esri.android.map.MapView.toMapPoint, referenced from method com.esri.android.samples.bladerunner.MapViewActivity.setDefaultMapExtent
09-24 11:28:51.554: W/dalvikvm(9893): VFY: unable to resolve virtual method 234: Lcom/esri/android/map/MapView;.toMapPoint (FF)Lcom/esri/core/geometry/Point;
09-24 11:28:51.554: D/dalvikvm(9893): VFY: replacing opcode 0x6e at 0x0008
09-24 11:28:51.554: W/dalvikvm(9893): Unable to resolve superclass of Lcom/esri/android/samples/bladerunner/MapViewTouchListener; (79)
09-24 11:28:51.554: W/dalvikvm(9893): Link of class 'Lcom/esri/android/samples/bladerunner/MapViewTouchListener;' failed
09-24 11:28:51.554: E/dalvikvm(9893): Could not find class 'com.esri.android.samples.bladerunner.MapViewTouchListener', referenced from method com.esri.android.samples.bladerunner.MapViewActivity.setMapViewListener
09-24 11:28:51.554: W/dalvikvm(9893): VFY: unable to resolve new-instance 133 (Lcom/esri/android/samples/bladerunner/MapViewTouchListener;) in Lcom/esri/android/samples/bladerunner/MapViewActivity;
09-24 11:28:51.554: D/dalvikvm(9893): VFY: replacing opcode 0x22 at 0x0000
09-24 11:28:51.554: W/dalvikvm(9893): VFY: array-length on non-array
09-24 11:28:51.554: W/dalvikvm(9893): VFY: rejecting opcode 0x21 at 0x0006
09-24 11:28:51.554: W/dalvikvm(9893): VFY: rejected Lcom/esri/android/samples/bladerunner/MapViewActivity;.showResults ()V
09-24 11:28:51.554: W/dalvikvm(9893): Verifier rejected class Lcom/esri/android/samples/bladerunner/MapViewActivity;
09-24 11:28:51.554: W/dalvikvm(9893): Class init failed in newInstance call (Lcom/esri/android/samples/bladerunner/MapViewActivity;)
09-24 11:28:51.554: D/AndroidRuntime(9893): Shutting down VM
09-24 11:28:51.554: W/dalvikvm(9893): threadid=1: thread exiting with uncaught exception (group=0x419c1700)
09-24 11:28:51.594: D/dalvikvm(9893): GC_FOR_ALLOC freed 410K, 6% free 7580K/8052K, paused 29ms, total 29ms
09-24 11:28:51.594: E/AndroidRuntime(9893): FATAL EXCEPTION: main
09-24 11:28:51.594: E/AndroidRuntime(9893): java.lang.VerifyError: com/esri/android/samples/bladerunner/MapViewActivity
09-24 11:28:51.594: E/AndroidRuntime(9893): at java.lang.Class.newInstanceImpl(Native Method)
09-24 11:28:51.594: E/AndroidRuntime(9893): at java.lang.Class.newInstance(Class.java:1130)
09-24 11:28:51.594: E/AndroidRuntime(9893): at android.app.Instrumentation.newActivity(Instrumentation.java:1061)
09-24 11:28:51.594: E/AndroidRuntime(9893): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2128)
09-24 11:28:51.594: E/AndroidRuntime(9893): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261)
09-24 11:28:51.594: E/AndroidRuntime(9893): at android.app.ActivityThread.access$600(ActivityThread.java:141)
09-24 11:28:51.594: E/AndroidRuntime(9893): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
09-24 11:28:51.594: E/AndroidRuntime(9893): at android.os.Handler.dispatchMessage(Handler.java:99)
09-24 11:28:51.594: E/AndroidRuntime(9893): at android.os.Looper.loop(Looper.java:137)
09-24 11:28:51.594: E/AndroidRuntime(9893): at android.app.ActivityThread.main(ActivityThread.java:5103)
09-24 11:28:51.594: E/AndroidRuntime(9893): at java.lang.reflect.Method.invokeNative(Native Method)
09-24 11:28:51.594: E/AndroidRuntime(9893): at java.lang.reflect.Method.invoke(Method.java:525)
09-24 11:28:51.594: E/AndroidRuntime(9893): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
09-24 11:28:51.594: E/AndroidRuntime(9893): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
09-24 11:28:51.594: E/AndroidRuntime(9893): at dalvik.system.NativeStart.main(Native Method)
Any Ideas?
@GitHubDroid If I understand correctly, you are not getting compile errors in Eclipse but runtime errors on deployment. It looks like you are not exporting the ArcGIS Android libs correctly. In Eclipse try the following:
Here is a screenshot of what your Java Build Path > Order and Export should look like:
I will test out what you suggested and post results. What I don't understand is if I install the .apk it shouldn't matter right, it should just work right ?
@GitHubDroid The apk available at arcgis.com should work with the right setup, e.g. all offline data has to be in the correct directory structure on device. This app is specifically developed for Android Tablets so never tested on the Samsung Galaxy Note 2. I am trying to help you with the source project hosted here and for now the issues are in the dev setup. To help with issues from the downloaded APK you would need to provide logs specific to that, currently you have only provided logs from the dev experience. Please use arcgis.com comments for any issues with the APK downloaded from arcgis.com and try and reproduce with an Android tablet.
OK.
It worked. Thanks for the help.
@GitHubDroid Great!
I have imported into eclipse from Github and pushed to me device (Samsung Note 2 with Android 4.1.2) but when I try to run the app from the device I get the following error:
"Unfortunately, Blade Runner has stopped."
I also tried installing using the .apk from http://www.arcgis.com/home/item.html?id=01acc4eef0f04c2d9d0796e78938d3cd but I am getting the same error when trying to run it:
"Unfortunately, Blade Runner has stopped."
Any Ideas?
I would really like to check this out. I think it could be very useful.