Issue Descriptions
Adding the TiMap module to Tiapp crashes an app when building for Android 6.0 (M). If the module is removed there is no crash.
Steps to reproduce
1) Create a sample app having included a com.google.android.maps.v2.API_KEY
2) Get CI build 5.1.0.X or latest stable release
3) Run app on Android 6
4) Watch logs
Stack Trace
10-06 17:43:25.363: E/AndroidRuntime(13751): FATAL EXCEPTION: KrollRuntimeThread
10-06 17:43:25.363: E/AndroidRuntime(13751): Process: com.app.id, PID: 13751
10-06 17:43:25.363: E/AndroidRuntime(13751): java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/com.app.id-2/lib/arm/libti.map.so: has text relocations
10-06 17:43:25.363: E/AndroidRuntime(13751): at java.lang.Runtime.loadLibrary(Runtime.java:372)
10-06 17:43:25.363: E/AndroidRuntime(13751): at java.lang.System.loadLibrary(System.java:1076)
10-06 17:43:25.363: E/AndroidRuntime(13751): at org.appcelerator.kroll.runtime.v8.V8Runtime.loadExternalModules(V8Runtime.java:132)
10-06 17:43:25.363: E/AndroidRuntime(13751): at org.appcelerator.kroll.runtime.v8.V8Runtime.initRuntime(V8Runtime.java:99)
10-06 17:43:25.363: E/AndroidRuntime(13751): at org.appcelerator.kroll.KrollRuntime.doInit(KrollRuntime.java:185)
10-06 17:43:25.363: E/AndroidRuntime(13751): at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:109)
10-06 17:43:25.364: W/ActivityManager(1990): Force finishing activity com.app.id/.PhoneActivity
10-06 17:43:25.670: I/WindowManager(1990): Screenshot max retries 4 of Token{2157417 ActivityRecord{71e9096 u0 com.app.id/.PhoneActivity t101 f}} appWin=Window{3f32588 u0 Starting com.mfoundry.enterprise.mbanking.push} drawState=4
[~msamah] take a look?
[~egomez]May I know which version of Ti.Map for Android is being used?
PR: https://github.com/appcelerator-modules/ti.map/pull/128 Please review this [~ssombhatla]
PR reviewed and merged.
PR to update module in Master: https://github.com/appcelerator/titanium_mobile/pull/7273
PR to master merged.
Verified the fix. App does not crash when the map module is used on android 6.0. Closing. Environment: Appc Studio : 4.3.1.201509302304 Ti SDK : 5.1.0.v20151009204425, 5.0.2.GA Ti CLI : 5.0.5 Alloy : 1.7.16 MAC Yosemite : 10.10.5 Appc NPM : 4.2.1-1 Appc CLI : 5.1.0-38 Node: v0.10.37 Nexus 5 - Android 6.0 Android Map Module: 2.3.4