{ "id": "169780", "key": "TIMOB-25289", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2017-09-15T11:55:27.000+0000", "created": "2017-09-14T15:02:23.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [ { "id": "18414", "description": "", "name": "Release 6.2.0", "archived": false, "released": true, "releaseDate": "2017-09-13" } ], "issuelinks": [ { "id": "55965", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "169785", "key": "TIMOB-25288", "fields": { "summary": "Android: addAnnotations in Ti.Map crashes app", "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": null, "updated": "2018-08-06T17:41:07.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "Trying to add an annotation or a circle (I suppose any view we can add to a mapView) throws the following error: \r\n\r\n\r\n{code:java}\r\n[WARN] : W/System.err: java.lang.NoSuchMethodError: No static method getAppCurrentActivity()Lorg/appcelerator/titanium/TiBaseActivity; in class Lorg/appcelerator/titanium/TiApplication; or its super classes (declaration of 'org.appcelerator.titanium.TiApplication' appears in /data/app/com.cccccc.xxxxxxxxx-2/base.apk)\r\n[WARN] : W/System.err: \tat ti.map.CircleProxy.toPx(CircleProxy.java:61)\r\n[WARN] : W/System.err: \tat ti.map.CircleProxy.processOptions(CircleProxy.java:157)\r\n[WARN] : W/System.err: \tat ti.map.TiUIMapView.addCircle(TiUIMapView.java:670)\r\n[WARN] : W/System.err: \tat ti.map.ViewProxy.handleAddCircle(ViewProxy.java:878)\r\n[WARN] : W/System.err: \tat ti.map.ViewProxy.addCircle(ViewProxy.java:863)\r\n[WARN] : W/System.err: \tat org.appcelerator.kroll.runtime.v8.V8Object.nativeCallProperty(Native Method)\r\n[WARN] : W/System.err: \tat org.appcelerator.kroll.runtime.v8.V8Object.callProperty(V8Object.java:73)\r\n[WARN] : W/System.err: \tat org.appcelerator.kroll.KrollProxy.handleMessage(KrollProxy.java:1158)\r\n[WARN] : W/System.err: \tat android.os.Handler.dispatchMessage(Handler.java:98)\r\n[WARN] : W/System.err: \tat android.os.Looper.loop(Looper.java:154)\r\n[WARN] : W/System.err: \tat android.app.ActivityThread.main(ActivityThread.java:6077)\r\n[WARN] : W/System.err: \tat java.lang.reflect.Method.invoke(Native Method)\r\n[WARN] : W/System.err: \tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)\r\n[WARN] : W/System.err: \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:756)\r\n[ERROR] : TiExceptionHandler: (main) [683,29344] ----- Titanium Javascript Runtime Error -----\r\n[ERROR] : TiExceptionHandler: (main) [0,29344] - In /alloy/controllers/scenarios/map.js:140,19\r\n[ERROR] : TiExceptionHandler: (main) [0,29344] - Message: Uncaught No static method getAppCurrentActivity()Lorg/appcelerator/titanium/TiBaseActivity; in class Lorg/appcelerator/titanium/TiApplication; or its super classes (declaration of 'org.appcelerator.titanium.TiApplication' appears in /data/app/com.cccccc.xxxxxxxxx-2/base.apk)\r\n[ERROR] : TiExceptionHandler: (main) [0,29344] - Source: $.mapView.addCircle(circle);\r\n[ERROR] : V8Exception: Exception occurred at /alloy/controllers/scenarios/map.js:140: Uncaught No static method getAppCurrentActivity()Lorg/appcelerator/titanium/TiBaseActivity; in class Lorg/appcelerator/titanium/TiApplication; or its super classes (declaration of 'org.appcelerator.titanium.TiApplication' appears in /data/app/com.cccccc.xxxxxxxxx-2/base.apk)\r\n[ERROR] : V8Exception: No static method getAppCurrentActivity()Lorg/appcelerator/titanium/TiBaseActivity; in class Lorg/appcelerator/titanium/TiApplication; or its super classes (declaration of 'org.appcelerator.titanium.TiApplication' appears in /data/app/com.cccccc.xxxxxxxxx-2/base.apk)\r\n\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: [ti.map] No static method getAppCurrentActivity()", "creator": { "name": "bgarcia", "key": "bgarcia", "displayName": "Brian García", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "bgarcia", "key": "bgarcia", "displayName": "Brian García", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Ti.Map 3.3.0\r\nSDK 6.2.0.GA\r\n", "closedSprints": [ { "id": 948, "state": "closed", "name": "2017 Sprint 19 SDK", "startDate": "2017-09-10T21:24:51.562Z", "endDate": "2017-09-24T21:24:00.000Z", "completeDate": "2017-09-25T17:49:27.460Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "427885", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This should have been fixed by https://github.com/appcelerator/titanium_mobile/pull/9372, I'll investigate.", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-09-14T16:28:08.000+0000", "updated": "2017-09-14T16:28:08.000+0000" }, { "id": "427922", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "For a normal annotation this error is shown:\r\n\r\n{code}\r\n[ERROR] : TiApplication: (main) [21140,29082] Sending event: exception on thread: main msg:java.lang.NoSuchMethodError: No static method getAppCurrentActivity()Lorg/appcelerator/titanium/TiBaseActivity; in class Lorg/appcelerator/titanium/TiApplication; or its super classes (declaration of 'org.appcelerator.titanium.TiApplication' appears in /data/app/com.amwins.amlink-1/base.apk); Titanium 6.2.0,2017/09/12 20:39,undefined\r\n[ERROR] : TiApplication: java.lang.NoSuchMethodError: No static method getAppCurrentActivity()Lorg/appcelerator/titanium/TiBaseActivity; in class Lorg/appcelerator/titanium/TiApplication; or its super classes (declaration of 'org.appcelerator.titanium.TiApplication' appears in /data/app/com.amwins.amlink-1/base.apk)\r\n[ERROR] : TiApplication: \tat ti.map.AnnotationProxy.setIconImageDimensions(AnnotationProxy.java:343)\r\n{code}\r\n\r\nA workaround for that is to add a custom image because then it won't use \r\nhttps://github.com/appcelerator-modules/ti.map/blob/master/android/src/ti/map/AnnotationProxy.java#L343", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-09-15T07:43:56.000+0000", "updated": "2017-09-15T07:43:56.000+0000" }, { "id": "427935", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Resolving as Duplicate of TIMOB-25288 - we are taking this into immediate resolution for SDK 6.2.1 and Ti.Map 3.3.1. Once the updated Ti.Map is available, you can use it already without waiting for 6.2.1. Please stay tuned a bit more!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-09-15T11:55:28.000+0000", "updated": "2017-09-15T11:55:28.000+0000" }, { "id": "439984", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as a duplicate. If this is in error, please reopen.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-06T17:41:07.000+0000", "updated": "2018-08-06T17:41:07.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }