{ "id": "125083", "key": "TIMOB-16261", "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": [ { "id": "15821", "description": "2014 Sprint 02", "name": "2014 Sprint 02", "archived": true, "released": true, "releaseDate": "2014-01-31" }, { "id": "15824", "description": "2014 Sprint 02 Core", "name": "2014 Sprint 02 Core", "archived": true, "released": true, "releaseDate": "2014-01-31" }, { "id": "15856", "description": "Release 3.2.1", "name": "Release 3.2.1", "archived": false, "released": true, "releaseDate": "2014-02-10" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2014-03-23T02:34:37.000+0000", "created": "2014-01-21T01:01:46.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "supportTeam", "triage" ], "versions": [], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2017-03-21T22:06: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": "13103", "name": "CLI", "description": "Node-based command line interface" } ], "description": "h6.Issue description\r\nAfter following these instruction to implement Google Maps v2 http://docs.appcelerator.com/titanium/3.0/#!/guide/Google_Maps_v2_for_Android\r\nthe developer\r\n\r\nWhen trying out to see the map this is seen in the crash report:\r\n\r\n{code}\r\nTiApplication: (main) [47657,47657] Sending event: exception on thread: main msg:java.lang.RuntimeException: Unable to start activity ComponentInfo{com.onforce.OnForce/org.appcelerator.titanium.TiActivity}: java.lang.RuntimeException: API key not found. Check that is in the element of AndroidManifest.xml; Titanium 3.2.0,2014/01/08 17:01,dd79e01\r\n[ERROR] : TiApplication: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.onforce.OnForce/org.appcelerator.titanium.TiActivity}: java.lang.RuntimeException: API key not found. Check that is in the element of AndroidManifest.xml\r\n[ERROR] : TiApplication: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2194)\r\n[ERROR] : TiApplication: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2229)\r\n[ERROR] : TiApplication: at android.app.ActivityThread.access$600(ActivityThread.java:139)\r\n[ERROR] : TiApplication: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1261)\r\n[ERROR] : TiApplication: at android.os.Handler.dispatchMessage(Handler.java:99)\r\n[ERROR] : TiApplication: at android.os.Looper.loop(Looper.java:154)\r\n[ERROR] : TiApplication: at android.app.ActivityThread.main(ActivityThread.java:4944)\r\n[ERROR] : TiApplication: at java.lang.reflect.Method.invokeNative(Native Method)\r\n[ERROR] : TiApplication: at java.lang.reflect.Method.invoke(Method.java:511)\r\n[ERROR] : TiApplication: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)\r\n[ERROR] : TiApplication: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)\r\n[ERROR] : TiApplication: at dalvik.system.NativeStart.main(Native Method)\r\n[ERROR] : TiApplication: Caused by: java.lang.RuntimeException: API key not found. Check that is in the element of AndroidManifest.xml\r\n[ERROR] : TiApplication: at maps.af.ay.a(Unknown Source)\r\n[ERROR] : TiApplication: at maps.af.ay.a(Unknown Source)\r\n[ERROR] : TiApplication: at maps.af.al.a(Unknown Source)\r\n[ERROR] : TiApplication: at maps.af.be.a(Unknown Source)\r\n[ERROR] : TiApplication: at maps.af.bd.a(Unknown Source)\r\n[ERROR] : TiApplication: at cmj.onTransact(SourceFile:107)\r\n[ERROR] : TiApplication: at android.os.Binder.transact(Binder.java:297)\r\n[ERROR] : TiApplication: at com.google.android.gms.maps.internal.IMapFragmentDelegate$a$a.onCreateView(Unknown Source)\r\n[ERROR] : TiApplication: at com.google.android.gms.maps.SupportMapFragment$a.onCreateView(Unknown Source)\r\n[ERROR] : TiApplication: at com.google.android.gms.dynamic.a$4.b(Unknown Source)\r\n[ERROR] : TiApplication: at com.google.android.gms.dynamic.a.a(Unknown Source)\r\n[ERROR] : TiApplication: at com.google.android.gms.dynamic.a.onCreateView(Unknown Source)\r\n[ERROR] : TiApplication: at com.google.android.gms.maps.SupportMapFragment.onCreateView(Unknown Source)\r\n[ERROR] : TiApplication: at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:871)\r\n[ERROR] : TiApplication: at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1083)\r\n[ERROR] : TiApplication: at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:635)\r\n[ERROR] : TiApplication: at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1431)\r\n[ERROR] : TiApplication: at android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:523)\r\n[ERROR] : TiApplication: at org.appcelerator.titanium.TiBaseActivity.onStart(TiBaseActivity.java:1048)\r\n[ERROR] : TiApplication: at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1195)\r\n[ERROR] : TiApplication: at android.app.Activity.performStart(Activity.java:4541)\r\n[ERROR] : TiApplication: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2167)\r\n{code}\r\n\r\nNote that it complains that it doesn't have this tag:\r\n{quote}\r\n \r\n{quote}\r\n\r\nh6.Steps to reproduce\r\n1) Please find the SDK uploaded here: https://www.dropbox.com/s/g6ont6pqn9586d5/onforce-3.2.0-osx.zip\r\n2) To generate the build use packaging command (-T dist-playstore):\r\n\r\n- titanium build -T dist-playstore --platform android -L OnForce -f -K ./tools/onforce.keystore -O ./tools/\r\n\r\n3) Watch packaged APK. Browse Androidmanifest.xml contents. API key not listed into generated file.", "attachment": [ { "id": "45302", "filename": "AndroidManifest.js", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-01-22T21:22:20.000+0000", "size": 19106, "mimeType": "text/javascript" } ], "flagged": false, "summary": "CLI: AndroidManifest.xml not updated to reflect map v2 API key (custom build)", "creator": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "CLI 3.2.0\r\nTiSDK 3.2.0 Custom Build", "comment": { "comments": [ { "id": "290658", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "I tested this with Titanium SDK 3.2.0.GA and the attached TravisTestApp project and it adds the API key to the final AndroidManifest.xml file as expected.\r\n\r\nI don't know what \"3.2.0.onforce\" is, but it is not supported. We only support official GA releases.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-01-31T18:46:18.000+0000", "updated": "2014-01-31T18:46:18.000+0000" }, { "id": "293916", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "I'm facing the same error on OSX with 3.2.1GA SDK! I've put all map-v2 lines into the tiapp.xml but it doesn't appear in AndroidManifest.xml\r\n\r\nEdit:\r\nsorry, fixed this already. I had multiple entries in the tiapp.xml and it was overwriting the map-key. Joining them into one fixed the problem!", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-02-20T09:59:02.000+0000", "updated": "2014-02-20T10:16:48.000+0000" }, { "id": "414533", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue cannot be reproduced and due to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T22:06:07.000+0000", "updated": "2017-03-21T22:06:07.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }