Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Map Not working In Android

$
0
0

App crashes when i am trying to add map in android .using 3.5.0.GA.

var Map = require('ti.map');
var win = Ti.UI.createWindow();
 
var annotations = [
    Map.createAnnotation({
        latitude: 32.8245525,
        longitude: -117.0951632,
        title: 'Somewhere',
        animate: true,
        pincolor: Map.ANNOTATION_GREEN,
        draggable: true
    }),
];
var mapview = Map.createView({
    mapType: Map.NORMAL_TYPE,
    region: {
        latitude:32.8245525,
        longitude:-117.0951632,
        latitudeDelta:.05,
        longitudeDelta:.05
    },
    animate:true,
    regionFit:true,
    userLocation:false,
    annotations: annotations
});
 
win.add(mapview);
win.open();
This is the ERROR
dalvikvm: Could not find class 'ti.map.TiUIMapView', referenced from method ti.map.ViewProxy.handleZoom
[ERROR] : TiApplication: (main) [3046,3051] Sending event: exception on thread: main msg:java.lang.NoClassDefFoundError: ti.map.TiUIMapView; Titanium 3.5.0,2015/01/12 15:33,0014f83 [ERROR] : TiApplication: java.lang.NoClassDefFoundError: ti.map.TiUIMapView [ERROR] : TiApplication: at ti.map.ViewProxy.createView(ViewProxy.java:68) [ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:483) [ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:469) [ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.handleAdd(TiViewProxy.java:670) [ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:230) [ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiWindowProxy.handleMessage(TiWindowProxy.java:99) [ERROR] : TiApplication: at ti.modules.titanium.ui.WindowProxy.handleMessage(WindowProxy.java:415) [ERROR] : TiApplication: at android.os.Handler.dispatchMessage(Handler.java:103) [ERROR] : TiApplication: at android.os.Looper.loop(Looper.java:194) [ERROR] : TiApplication: at android.app.ActivityThread.main(ActivityThread.java:5433) [ERROR] : TiApplication: at java.lang.reflect.Method.invokeNative(Native Method) [ERROR] : TiApplication: at java.lang.reflect.Method.invoke(Method.java:525) [ERROR] : TiApplication: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:924) [ERROR] : TiApplication: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:691) [ERROR] : TiApplication: at dalvik.system.NativeStart.main(Native Method)

Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>