{ "id": "174685", "key": "AC-6479", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2020-02-06T02:34:48.000+0000", "created": "2020-02-04T05:47:36.000+0000", "labels": [], "versions": [], "issuelinks": [ { "id": "58146", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "174692", "key": "TIMOB-27747", "fields": { "summary": "Android: Old \"ti.playservices\" modules crash in 9.0.0 when calling makeGooglePlayServicesAvailable()", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-02-06T02:34:48.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "This only happens since a few master revisions. \r\n\r\nExample:\r\n{code:js}\r\nvar PlayServices = require('ti.playservices');\r\n\r\nPlayServices.makeGooglePlayServicesAvailable(event => {\r\n // ...\r\n});\r\n{code}\r\n\r\nFull error:\r\n{code}\r\n[ERROR] AssetCryptImpl: (main) [11,347] Unable to load asset data.\r\n[ERROR] AssetCryptImpl: java.lang.NoSuchMethodException: org.appcelerator.titanium.TiVerify.filterDataInRange [class [B, int, int]\r\n[ERROR] AssetCryptImpl: \tat java.lang.Class.getMethod(Class.java:2072)\r\n[ERROR] AssetCryptImpl: \tat java.lang.Class.getMethod(Class.java:1693)\r\n[ERROR] AssetCryptImpl: \tat ti.playservices.AssetCryptImpl.filterDataInRange(AssetCryptImpl.java:99)\r\n[ERROR] AssetCryptImpl: \tat ti.playservices.AssetCryptImpl.fetchFilteredAssetBytes(AssetCryptImpl.java:92)\r\n[ERROR] AssetCryptImpl: \tat ti.playservices.AssetCryptImpl.readAsset(AssetCryptImpl.java:61)\r\n[ERROR] AssetCryptImpl: \tat ti.playservices.CommonJsSourceProvider.getSourceCode(CommonJsSourceProvider.java:27)\r\n[ERROR] AssetCryptImpl: \tat org.appcelerator.kroll.runtime.v8.V8Runtime.nativeRunModule(Native Method)\r\n[ERROR] AssetCryptImpl: \tat org.appcelerator.kroll.runtime.v8.V8Runtime.doRunModule(V8Runtime.java:168)\r\n[ERROR] AssetCryptImpl: \tat org.appcelerator.titanium.TiApplication.launch(TiApplication.java:803)\r\n[ERROR] AssetCryptImpl: \tat org.appcelerator.titanium.TiLaunchActivity.loadScript(TiLaunchActivity.java:98)\r\n[ERROR] AssetCryptImpl: \tat org.appcelerator.titanium.TiRootActivity.loadScript(TiRootActivity.java:480)\r\n[ERROR] AssetCryptImpl: \tat org.appcelerator.titanium.TiLaunchActivity.onResume(TiLaunchActivity.java:179)\r\n[ERROR] AssetCryptImpl: \tat org.appcelerator.titanium.TiRootActivity.onResume(TiRootActivity.java:499)\r\n[ERROR] AssetCryptImpl: \tat android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1446)\r\n[ERROR] AssetCryptImpl: \tat android.app.Activity.performResume(Activity.java:7939)\r\n[ERROR] AssetCryptImpl: \tat android.app.ActivityThread.performResumeActivity(ActivityThread.java:4195)\r\n[ERROR] AssetCryptImpl: \tat android.app.ActivityThread.handleResumeActivity(ActivityThread.java:4237)\r\n[ERROR] AssetCryptImpl: \tat android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:52)\r\n[ERROR] AssetCryptImpl: \tat android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:176)\r\n[ERROR] AssetCryptImpl: \tat android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)\r\n[ERROR] AssetCryptImpl: \tat android.app.ActivityThread$H.handleMessage(ActivityThread.java:2016)\r\n[ERROR] AssetCryptImpl: \tat android.os.Handler.dispatchMessage(Handler.java:107)\r\n[ERROR] AssetCryptImpl: \tat android.os.Looper.loop(Looper.java:214)\r\n[ERROR] AssetCryptImpl: \tat android.app.ActivityThread.main(ActivityThread.java:7356)\r\n[ERROR] AssetCryptImpl: \tat java.lang.reflect.Method.invoke(Native Method)\r\n[ERROR] AssetCryptImpl: \tat com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)\r\n[ERROR] AssetCryptImpl: \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)\r\n[ERROR] TiAssetHelper: Error while reading asset \"Resourcesti.playservices.commonjs\":\r\n[ERROR] TiAssetHelper: java.io.FileNotFoundException: Resourcesti.playservices.commonjs\r\n[ERROR] TiAssetHelper: \tat android.content.res.AssetManager.nativeOpenAsset(Native Method)\r\n[ERROR] TiAssetHelper: \tat android.content.res.AssetManager.open(AssetManager.java:824)\r\n[ERROR] TiAssetHelper: \tat android.content.res.AssetManager.open(AssetManager.java:801)\r\n[ERROR] TiAssetHelper: \tat org.appcelerator.kroll.util.KrollAssetHelper.readAssetBytes(KrollAssetHelper.java:182)\r\n[ERROR] TiAssetHelper: \tat org.appcelerator.kroll.runtime.v8.V8Runtime.nativeRunModule(Native Method)\r\n[ERROR] TiAssetHelper: \tat org.appcelerator.kroll.runtime.v8.V8Runtime.doRunModule(V8Runtime.java:168)\r\n[ERROR] TiAssetHelper: \tat org.appcelerator.titanium.TiApplication.launch(TiApplication.java:803)\r\n[ERROR] TiAssetHelper: \tat org.appcelerator.titanium.TiLaunchActivity.loadScript(TiLaunchActivity.java:98)\r\n[ERROR] TiAssetHelper: \tat org.appcelerator.titanium.TiRootActivity.loadScript(TiRootActivity.java:480)\r\n[ERROR] TiAssetHelper: \tat org.appcelerator.titanium.TiLaunchActivity.onResume(TiLaunchActivity.java:179)\r\n[ERROR] TiAssetHelper: \tat org.appcelerator.titanium.TiRootActivity.onResume(TiRootActivity.java:499)\r\n[ERROR] TiAssetHelper: \tat android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1446)\r\n[ERROR] TiAssetHelper: \tat android.app.Activity.performResume(Activity.java:7939)\r\n[ERROR] TiAssetHelper: \tat android.app.ActivityThread.performResumeActivity(ActivityThread.java:4195)\r\n[ERROR] TiAssetHelper: \tat android.app.ActivityThread.handleResumeActivity(ActivityThread.java:4237)\r\n[ERROR] TiAssetHelper: \tat android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:52)\r\n[ERROR] TiAssetHelper: \tat android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:176)\r\n[ERROR] TiAssetHelper: \tat android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)\r\n[ERROR] TiAssetHelper: \tat android.app.ActivityThread$H.handleMessage(ActivityThread.java:2016)\r\n[ERROR] TiAssetHelper: \tat android.os.Handler.dispatchMessage(Handler.java:107)\r\n[ERROR] TiAssetHelper: \tat android.os.Looper.loop(Looper.java:214)\r\n[ERROR] TiAssetHelper: \tat android.app.ActivityThread.main(ActivityThread.java:7356)\r\n[ERROR] TiAssetHelper: \tat java.lang.reflect.Method.invoke(Native Method)\r\n[ERROR] TiAssetHelper: \tat com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)\r\n[ERROR] TiAssetHelper: \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)\r\n[DEBUG] Module: Extending native module 'ti.playservices' with the CommonJS module that was packaged with it.\r\n[ERROR] TiExceptionHandler: (main) [14,361] /myapp.bootstrap.js:37\r\n[ERROR] TiExceptionHandler: PlayServices.makeGooglePlayServicesAvailable(event => {\r\n[ERROR] TiExceptionHandler: ^\r\n[ERROR] TiExceptionHandler: TypeError: PlayServices.makeGooglePlayServicesAvailable is not a function\r\n[ERROR] TiExceptionHandler: at /myapp.bootstrap.js:37:16\r\n[ERROR] TiExceptionHandler: at Module._runScript (ti:/module.js:587:9)\r\n[ERROR] TiExceptionHandler: at Module.load (ti:/module.js:106:7)\r\n[ERROR] TiExceptionHandler: at Module.loadJavascriptText (ti:/module.js:436:9)\r\n[ERROR] TiExceptionHandler: at Module.loadAsFile (ti:/module.js:488:15)\r\n[ERROR] TiExceptionHandler: at Module.loadAsFileOrDirectory (ti:/module.js:410:20)\r\n[ERROR] TiExceptionHandler: at Module.require (ti:/module.js:290:17)\r\n[ERROR] TiExceptionHandler: at Module.global.Module.require (:19311:34)\r\n[ERROR] TiExceptionHandler: at require (ti:/module.js:550:15)\r\n[ERROR] TiExceptionHandler: at global.require (:19295:10)\r\n[ERROR] TiExceptionHandler:\r\n[ERROR] TiExceptionHandler: org.appcelerator.kroll.runtime.v8.V8Runtime.nativeRunModule(Native Method)\r\n[ERROR] TiExceptionHandler: org.appcelerator.kroll.runtime.v8.V8Runtime.doRunModule(V8Runtime.java:168)\r\n[ERROR] TiExceptionHandler: org.appcelerator.titanium.TiApplication.launch(TiApplication.java:803)\r\n[ERROR] TiExceptionHandler: org.appcelerator.titanium.TiLaunchActivity.loadScript(TiLaunchActivity.java:98)\r\n[ERROR] TiExceptionHandler: org.appcelerator.titanium.TiRootActivity.loadScript(TiRootActivity.java:480)\r\n[ERROR] TiExceptionHandler: org.appcelerator.titanium.TiLaunchActivity.onResume(TiLaunchActivity.java:179)\r\n[ERROR] TiExceptionHandler: org.appcelerator.titanium.TiRootActivity.onResume(TiRootActivity.java:499)\r\n[ERROR] TiExceptionHandler: android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1446)\r\n[ERROR] TiExceptionHandler: android.app.Activity.performResume(Activity.java:7939)\r\n[ERROR] TiExceptionHandler: android.app.ActivityThread.performResumeActivity(ActivityThread.java:4195)\r\n[ERROR] V8Exception: Exception occurred at /myapp.bootstrap.js:37: Uncaught TypeError: PlayServices.makeGooglePlayServicesAvailable is not a function\r\n{code}\r\n\r\nThe workaround is to remove the play-sevices check.", "attachment": [], "flagged": false, "summary": "Android: Using Play Services 16.x crashes latest SDK 9 build (9.x regression)", "creator": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Latest 9.0.0 (5814e0a)", "comment": { "comments": [ { "id": "454083", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Resolved by [TIMOB-27747].\r\nThe fix has already been merged into Titanium 9.0.0 \"master\" branch.\r\nThanks for reporting this issue Hans.", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-02-06T02:34:36.000+0000", "updated": "2020-02-06T02:34:36.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }