{ "id": "148315", "key": "TIMOB-18960", "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": "16925", "description": "WatchKit Support--all going into 5.0 now", "name": "Release 5.0.0", "archived": true, "released": true, "releaseDate": "2015-09-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-08-21T21:18:25.000+0000", "created": "2015-05-29T00:41:39.000+0000", "epic": { "id": 150513, "key": "TIMOB-19371", "name": "Android: Android M Updates", "summary": "Android: Android M Updates", "color": { "key": "color_5" }, "done": false }, "priority": { "name": "High", "id": "2" }, "labels": [ "qe-4.0.1" ], "versions": [], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2015-09-03T00:54:04.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": "h5.Description:\r\n1. The android M preview SDK is now out.\r\n2. This new SDK is also marked as API 22.\r\n3. While building its unclear if we are building with android M or android 5.1.1 as both are API22.\r\n4. Removing android 5.1.1 & building fails with error:\r\n{code}\r\nTo target Android SDK 22, you first must install it using the Android SDK manager.\r\nAlternatively, you can set the in the section of the tiapp.xml to\r\none of the following installed Android target SDKs: 15, 16, 17, 18, 19, 20, 21\r\n[ERROR] : Target Android SDK 22 is not installed\r\n\r\n \r\n \r\n \r\n \r\n \r\n\r\ntitanium exited with exit code 1\r\n[ERROR] Application Installer abnormal process termination. Process exit value was 1\r\n{code}\r\n5. From the above error we see that our tools don't consider android M as API 22 (although it will probably be API 23 once it goes GA).\r\n\r\nPlease fix so that we can test android M till the time it is GA.\r\n\r\n*On further looking into it found that the folder for android M in the platforms folder inside android sdk is named \"android-MNC\" which might be the reason for our tools not picking it up.*", "attachment": [ { "id": "56489", "filename": "Screen Shot 2015-08-21 at 1.52.24 PM.png", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-08-21T20:57:19.000+0000", "size": 516193, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: Enable building with android M preview ", "creator": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Environment:\r\nAppc Studio : 4.1.0.201505071004\r\nTi SDK : 4.0.1.v20150527103415\r\nCLI : 4.0.0\r\nAlloy : 1.6.0\r\nMAC Yosemite : 10.10.3\r\nAppc npm : 4.0.0\r\nAppc CLI : 4.0.1-0\r\nNode: v0.10.37\r\nAndroid SDK : Android M preview API level 22", "closedSprints": [ { "id": 478, "state": "closed", "name": "2015 Sprint 17 Tooling", "startDate": "2015-08-17T16:09:49.717Z", "endDate": "2015-08-29T01:09:00.000Z", "completeDate": "2015-09-10T19:57:06.855Z", "originBoardId": 121 } ], "comment": { "comments": [ { "id": "354392", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "http://developer.android.com/preview/setup-sdk.html\r\n\r\nBased on this, it says:\r\n{quote}\r\ncompileSdkVersion is set to 'android-MNC'\r\nminSdkVersion is set to 'MNC'\r\ntargetSdkVersion is set to 'MNC'\r\n{quote}", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-06-05T02:26:33.000+0000", "updated": "2015-06-05T02:26:33.000+0000" }, { "id": "354393", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "I used and was able to compile.\r\n[~lchoudhary] If this works for you, I'll resolve this ticket as resolved.\r\n\r\nAlso, if you are still having problems, try updating SDK Tools, Platform-tools, and Build-tools.\r\nMine is SDK Tools 24.3.1, Platform-tools 22, and Build-tools 22.0.1 at the moment.\r\n\r\nExtra Note: I just tried it without the Android 5.1.1 SDK installed. It failed. Hmmm. Not sure if it is dependent on Android 5.1.1 being installed or \"MNC\" is also defaulting to Android 5.1.1. Will look at it further.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-06-05T02:29:58.000+0000", "updated": "2015-06-05T02:50:07.000+0000" }, { "id": "354409", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "Note for development for Android M:\r\n*Apache HTTP Client is removed*. This should be a big deal to note. \r\n\r\nhttp://developer.android.com/preview/behavior-changes.html#behavior-apache-http-client", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-06-05T07:02:45.000+0000", "updated": "2015-06-05T07:02:45.000+0000" }, { "id": "354454", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thanks [~msamah] for the info. \r\nYes we can not certainly determine if we are building with android M even if it builds fine. But as you were not able to build it without having API 22 I doubt we ever built with android M even if we specify \"targetSdkVersion\" as MNC.\r\nWe had similar issue when android L preview came out.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-06-05T18:11:08.000+0000", "updated": "2015-06-05T18:11:08.000+0000" }, { "id": "358005", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "If you just change the min to \"MNC\", it will still use 22 as min, and builds with 22. Modifications need to be made in CLI to build it with \"MNC\".", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-07-20T18:31:40.000+0000", "updated": "2015-07-20T18:31:40.000+0000" }, { "id": "360720", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/7057", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2015-08-21T20:31:04.000+0000", "updated": "2015-08-21T20:31:04.000+0000" }, { "id": "360729", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening.\r\n\r\nBuilding with a build having this fix fails with error:\r\n{code}\r\n[ERROR] : Unable to find a suitable installed Android SDK that is >=21 and <=22\r\nTRACE | titanium exited with exit code 1\r\nERROR | Error: ti run exited with error code 1\r\n at ChildProcess. (/Users/lokeshchoudhary/.appcelerator/install/5.0.0-12/package/node_modules/appc-cli-titanium/plugins/run.js:89:66)\r\n at ChildProcess.emit (events.js:98:17)\r\n at Process.ChildProcess._handle.onexit (child_process.js:820:12)\r\n[ERROR] Application Installer abnormal process termination. Process exit value was 1\r\n{code}\r\n*Note* : Screenshot of my Android SDK manager is attached for reference.\r\n[~cbarber], Google just release (Android 6.0) API23 in android SDK manager\r\n\r\nEnvironment:\r\nAppc Studio : 4.2.0.201508062204\r\nTi SDK : 5.0.0.v20150821133620\r\nTi CLI : 4.1.5\r\nAlloy : 1.7.5\r\nMAC Yosemite : 10.10.4\r\nAppc NPM : 4.2.0-1\r\nAppc CLI : 5.0.0-12\r\nNode: v0.10.37\r\n", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-08-21T20:57:06.000+0000", "updated": "2015-08-21T21:00:20.000+0000" }, { "id": "360735", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "PR 2: https://github.com/appcelerator/titanium_mobile/pull/7059", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2015-08-21T21:18:20.000+0000", "updated": "2015-08-21T21:18:20.000+0000" }, { "id": "360976", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-08-24T18:53:20.000+0000", "updated": "2015-08-24T18:53:20.000+0000" }, { "id": "362126", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified & closed TIMOB-19163. \r\nClosing this ticket", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-09-03T00:53:58.000+0000", "updated": "2015-09-03T00:53:58.000+0000" } ], "maxResults": 16, "total": 16, "startAt": 0 } } }