Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-24127

Android: Expected 9683000 but found 9452000 error when using map module 3.0.1

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Release 6.0.0
    • Fix Version/s: Release 6.0.0
    • Component/s: Android
    • Environment:
    • Story Points:
      1
    • Sprint:
      2016 Sprint 23 SDK

      Description

      This is a regression. This issue is not seen in map module ver.3.0.0.

      Steps to reproduce:

      1. Setup your app to run android maps.
      2. Use the code below in your app.js:

      var MapModule = require('ti.map');
       
      var win = Ti.UI.createWindow({
      	backgroundColor:'white'
      });
       
      var view = Ti.UI.createView({
      	height:'80%',
      	width:'80%',
      	// backgroundColor:'red'
      });
       
      var appc = MapModule.createAnnotation({
          latitude: 37.389569,
          longitude: -122.050212,
          title: 'Appcelerator HQ',
          subtitle: 'Mountain View, CA',
          pincolor: MapModule.ANNOTATION_GREEN
      });
       
      var mapview = MapModule.createView({
      	mapType: MapModule.NORMAL_TYPE,
          region: {latitude: 37.389569, longitude: -122.050212, latitudeDelta: 0.2, longitudeDelta: 0.2},
          annotations: [appc],
          // width:'50%',
          // height:'50%',
          //backgroundColor:'red'
      });
       
      view.add(mapview);
      win.add(view);
      win.open();
      

      2. Build for android device.

      Actual results:

      1. App crashes after launch with error:

      [ERROR] :  TiApplication: (main) [141,141] Sending event: exception on thread: main msg:java.lang.RuntimeException: Unable to start activity ComponentInfo{com.appcelerator.mapmod/org.appcelerator.titanium.TiActivity}: java.lang.IllegalStateException: The meta-data tag in your app's AndroidManifest.xml does not have the right value.  Expected 9683000 but found 9452000.  You must have the following declaration within the <application> element:     <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />; Titanium 6.0.0,2016/11/09 07:54,undefined
      [ERROR] :  TiApplication: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.appcelerator.mapmod/org.appcelerator.titanium.TiActivity}: java.lang.IllegalStateException: The meta-data tag in your app's AndroidManifest.xml does not have the right value.  Expected 9683000 but found 9452000.  You must have the following declaration within the <application> element:     <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />
      [ERROR] :  TiApplication: 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2665)
      [ERROR] :  TiApplication: 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726)
      [ERROR] :  TiApplication: 	at android.app.ActivityThread.-wrap12(ActivityThread.java)
      [ERROR] :  TiApplication: 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477)
      [ERROR] :  TiApplication: 	at android.os.Handler.dispatchMessage(Handler.java:102)
      [ERROR] :  TiApplication: 	at android.os.Looper.loop(Looper.java:154)
      [ERROR] :  TiApplication: 	at android.app.ActivityThread.main(ActivityThread.java:6119)
      [ERROR] :  TiApplication: 	at java.lang.reflect.Method.invoke(Native Method)
      [ERROR] :  TiApplication: 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
      [ERROR] :  TiApplication: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
      [ERROR] :  TiApplication: Caused by: java.lang.IllegalStateException: The meta-data tag in your app's AndroidManifest.xml does not have the right value.  Expected 9683000 but found 9452000.  You must have the following declaration within the <application> element:     <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />
      [ERROR] :  TiApplication: 	at com.google.android.gms.common.zze.zzbt(Unknown Source)
      [ERROR] :  TiApplication: 	at com.google.android.gms.common.zze.isGooglePlayServicesAvailable(Unknown Source)
      [ERROR] :  TiApplication: 	at com.google.android.gms.common.GooglePlayServicesUtil.isGooglePlayServicesAvailable(Unknown Source)
      [ERROR] :  TiApplication: 	at com.google.android.gms.maps.internal.zzai.zzdq(Unknown Source)
      [ERROR] :  TiApplication: 	at com.google.android.gms.maps.internal.zzai.zzdp(Unknown Source)
      [ERROR] :  TiApplication: 	at com.google.android.gms.maps.MapsInitializer.initialize(Unknown Source)
      [ERROR] :  TiApplication: 	at com.google.android.gms.maps.SupportMapFragment$zzb.zzbru(Unknown Source)
      [ERROR] :  TiApplication: 	at com.google.android.gms.maps.SupportMapFragment$zzb.zza(Unknown Source)
      [ERROR] :  TiApplication: 	at com.google.android.gms.dynamic.zza.zza(Unknown Source)
      [ERROR] :  TiApplication: 	at com.google.android.gms.dynamic.zza.onCreate(Unknown Source)
      [ERROR] :  TiApplication: 	at com.google.android.gms.maps.SupportMapFragment.onCreate(Unknown Source)
      [ERROR] :  TiApplication: 	at android.support.v4.app.Fragment.performCreate(Fragment.java:1939)
      [ERROR] :  TiApplication: 	at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1029)
      [ERROR] :  TiApplication: 	at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1248)
      [ERROR] :  TiApplication: 	at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:738)
      [ERROR] :  TiApplication: 	at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1613)
      [ERROR] :  TiApplication: 	at android.support.v4.app.FragmentController.execPendingActions(FragmentController.java:330)
      [ERROR] :  TiApplication: 	at android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:547)
      [ERROR] :  TiApplication: 	at org.appcelerator.titanium.TiBaseActivity.onStart(TiBaseActivity.java:1341)
      [ERROR] :  TiApplication: 	at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1248)
      [ERROR] :  TiApplication: 	at android.app.Activity.performStart(Activity.java:6696)
      [ERROR] :  TiApplication: 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2628)
      [ERROR] :  TiApplication: 	... 9 more
      

      Expected results:

      1. App should build & run successfully.

        Attachments

          Activity

            People

            • Assignee:
              gmathews Gary Mathews
              Reporter:
              lchoudhary Lokesh Choudhary
              Reviewer:
              Christopher Williams
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-10264
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration