[TIMOB-24127] Android: Expected 9683000 but found 9452000 error when using map module 3.0.1
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2016-11-11T02:44:26.000+0000 |
Affected Version/s | Release 6.0.0 |
Fix Version/s | Release 6.0.0 |
Components | Android |
Labels | qe-6.0.0, regression |
Reporter | Lokesh Choudhary |
Assignee | Gary Mathews |
Created | 2016-11-10T01:28:19.000+0000 |
Updated | 2016-11-11T19:07:56.000+0000 |
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
master: https://github.com/appcelerator/titanium_mobile/pull/8594 6_0_X: https://github.com/appcelerator/titanium_mobile/pull/8595
Verified the fix. No error seen when building with map module 3.0.1. Closing. Appc Studio : 4.8.0.201611020954 SDK Version : 6.0.0.v20161111062138 Mac OS Version : 10.11.6 Xcode Version : Xcode 8.1 Build version 8B62 Appc CLI AND Appc NPM : {"NPM":"4.2.8-9","CLI":"6.0.0-69"} Ti CLI : 5.0.10 Alloy : 1.9.4 Node : v4.6.0