{ "id": "84155", "key": "TIMOB-6820", "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": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "13170", "name": "Sprint 2012-06", "archived": true, "released": true, "releaseDate": "2012-03-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-03-14T10:06:09.000+0000", "created": "2011-12-21T11:31:40.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "android", "module_build", "qe-and021312", "qe-testadded" ], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "issuelinks": [ { "id": "15248", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "82297", "key": "TISTUD-761", "fields": { "summary": "Titanium Studio: Android reserved namespace is not resulting in a malformed app id error", "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": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "14337", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "63186", "key": "TIMOB-2554", "fields": { "summary": "Android - naming a project \"package\" breaks packaging", "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": "Trivial", "id": "5" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "chaseculpepper22", "key": "chaseculpepper22", "displayName": "Chase Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-03-15T10:15:10.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": "If you enter a Java keyword as the first part of your project's app id, it can cause Android build errors.\r\n\r\nh4. Steps to Reproduce\r\n1. Create a new mobile project in Titanium Studio\r\n2. give your project the app id *case.test*\r\n3. make sure Android is selected as a deployment target\r\n4. Create the project\r\n5. Attempt to build the app\r\n\r\nYou should get an error like this\r\n\r\n{code}\r\n[ERROR] Error(s) compiling generated Java code\r\n[ERROR] /Users/tlukasavage/Documents/Titanium Studio Workspace/case_test/build/android/gen/case/test/ApplicationStylesheet.java:5: expected\r\n{code}\r\n\r\nIf you look at that line in the identified file, you'll find that *case* from *case.test* is the offender\r\n\r\n{code}\r\n/**\r\n * Appcelerator Titanium\r\n * WARNING: This is a generated file. Do not modify.\r\n */\r\npackage case.test; // this is line 5\r\n\r\nimport java.util.HashMap;\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Build fails when Java keywords are used in project app id", "creator": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK version: 1.8.0.1 RC3\r\nJavascript Engine: Rhino & V8 \r\nPlatform & version: Android 2.2 emulator\r\nHost Operating System: OSX 10.7.2\r\nTitanium Studio version: 1.0.7.201112132151", "comment": { "comments": [ { "id": "176917", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "To confirm that the same problem occurs when \"package\" is used as the app id. See build.log below.\r\n\r\nPlease note that an app with a reserved word, such as \"package\", in its *project name* but with an app id that does not contain any reserved words, launches without an issue, despite what is stated in TIMOB-2554.\r\n\r\nHence:\r\n* Project name: \"package\" // this packages successfully\r\n* App id: \"com.appcelerator.package\" // this breaks packaging\r\n\r\n{code}\r\nLogfile initialized\r\n[INFO] logfile = /home/appcel/Titanium Studio Workspace/package/build.log\r\n[DEBUG] /home/appcel/.titanium/mobilesdk/linux/1.8.0.1.RC3/android/builder.py simulator package /opt/android-sdk-linux_86 /home/appcel/Titanium Studio Workspace/package com.appcelerator.package 4 WVGA854 \r\n[INFO] Building package for Android ... one moment\r\n[INFO] Titanium SDK version: 1.8.0.1 (12/17/11 19:53 c903964)\r\n[DEBUG] Waiting for device to be ready ...\r\n[TRACE] adb devices returned 1 devices/emulators\r\n[DEBUG] Device connected... (waited 0 seconds)\r\n[DEBUG] waited 0.003938 seconds on emulator to get ready\r\n[DEBUG] com.appcelerator.package installed? False\r\n[INFO] Fastdev server running, deploying in Fastdev mode\r\n[INFO] Copying project resources..\r\n[TRACE] Generating Java Classes\r\n[DEBUG] Processing Android resource drawables\r\n[DEBUG] copying app icon: /home/appcel/Titanium Studio Workspace/package/build/android/bin/assets/Resources/appicon.png\r\n[DEBUG] generating theme.xml\r\n[DEBUG] found drawable-notlong-land-hdpi splash screen at /home/appcel/Titanium Studio Workspace/package/Resources/android/images/res-notlong-land-hdpi/default.png\r\n[DEBUG] copying /home/appcel/Titanium Studio Workspace/package/Resources/android/images/res-notlong-land-hdpi/default.png splash screen to /home/appcel/Titanium Studio Workspace/package/build/android/res/drawable-notlong-land-hdpi/background.png\r\n[DEBUG] found drawable-notlong-land-ldpi splash screen at /home/appcel/Titanium Studio Workspace/package/Resources/android/images/res-notlong-land-ldpi/default.png\r\n[DEBUG] copying /home/appcel/Titanium Studio Workspace/package/Resources/android/images/res-notlong-land-ldpi/default.png splash screen to /home/appcel/Titanium Studio Workspace/package/build/android/res/drawable-notlong-land-ldpi/background.png\r\n[DEBUG] found drawable-notlong-port-hdpi splash screen at /home/appcel/Titanium Studio Workspace/package/Resources/android/images/res-notlong-port-hdpi/default.png\r\n[DEBUG] copying /home/appcel/Titanium Studio Workspace/package/Resources/android/images/res-notlong-port-hdpi/default.png splash screen to /home/appcel/Titanium Studio Workspace/package/build/android/res/drawable-notlong-port-hdpi/background.png\r\n[DEBUG] found drawable-long-port-ldpi splash screen at /home/appcel/Titanium Studio Workspace/package/Resources/android/images/res-long-port-ldpi/default.png\r\n[DEBUG] copying /home/appcel/Titanium Studio Workspace/package/Resources/android/images/res-long-port-ldpi/default.png splash screen to /home/appcel/Titanium Studio Workspace/package/build/android/res/drawable-long-port-ldpi/background.png\r\n[DEBUG] found drawable-long-land-ldpi splash screen at /home/appcel/Titanium Studio Workspace/package/Resources/android/images/res-long-land-ldpi/default.png\r\n[DEBUG] copying /home/appcel/Titanium Studio Workspace/package/Resources/android/images/res-long-land-ldpi/default.png splash screen to /home/appcel/Titanium Studio Workspace/package/build/android/res/drawable-long-land-ldpi/background.png\r\n[DEBUG] found drawable-long-land-hdpi splash screen at /home/appcel/Titanium Studio Workspace/package/Resources/android/images/res-long-land-hdpi/default.png\r\n[DEBUG] copying /home/appcel/Titanium Studio Workspace/package/Resources/android/images/res-long-land-hdpi/default.png splash screen to /home/appcel/Titanium Studio Workspace/package/build/android/res/drawable-long-land-hdpi/background.png\r\n[DEBUG] found drawable-notlong-land-mdpi splash screen at /home/appcel/Titanium Studio Workspace/package/Resources/android/images/res-notlong-land-mdpi/default.png\r\n[DEBUG] copying /home/appcel/Titanium Studio Workspace/package/Resources/android/images/res-notlong-land-mdpi/default.png splash screen to /home/appcel/Titanium Studio Workspace/package/build/android/res/drawable-notlong-land-mdpi/background.png\r\n[DEBUG] found drawable-notlong-port-mdpi splash screen at /home/appcel/Titanium Studio Workspace/package/Resources/android/images/res-notlong-port-mdpi/default.png\r\n[DEBUG] copying /home/appcel/Titanium Studio Workspace/package/Resources/android/images/res-notlong-port-mdpi/default.png splash screen to /home/appcel/Titanium Studio Workspace/package/build/android/res/drawable-notlong-port-mdpi/background.png\r\n[DEBUG] found drawable-long-port-hdpi splash screen at /home/appcel/Titanium Studio Workspace/package/Resources/android/images/res-long-port-hdpi/default.png\r\n[DEBUG] copying /home/appcel/Titanium Studio Workspace/package/Resources/android/images/res-long-port-hdpi/default.png splash screen to /home/appcel/Titanium Studio Workspace/package/build/android/res/drawable-long-port-hdpi/background.png\r\n[DEBUG] found drawable-notlong-port-ldpi splash screen at /home/appcel/Titanium Studio Workspace/package/Resources/android/images/res-notlong-port-ldpi/default.png\r\n[DEBUG] copying /home/appcel/Titanium Studio Workspace/package/Resources/android/images/res-notlong-port-ldpi/default.png splash screen to /home/appcel/Titanium Studio Workspace/package/build/android/res/drawable-notlong-port-ldpi/background.png\r\n[DEBUG] found splash screen at /home/appcel/Titanium Studio Workspace/package/build/android/bin/assets/Resources/default.png\r\n[TRACE] Writing out AndroidManifest.xml\r\n[DEBUG] adding /home/appcel/Titanium Studio Workspace/package/build/android/gen/com/appcelerator/package/PackageApplication.java to javac build list\r\n[DEBUG] adding /home/appcel/Titanium Studio Workspace/package/build/android/gen/com/appcelerator/package/PackageAppInfo.java to javac build list\r\n[DEBUG] adding /home/appcel/Titanium Studio Workspace/package/build/android/gen/com/appcelerator/package/R.java to javac build list\r\n[DEBUG] adding /home/appcel/Titanium Studio Workspace/package/build/android/gen/com/appcelerator/package/PackageActivity.java to javac build list\r\n[DEBUG] adding /home/appcel/Titanium Studio Workspace/package/build/android/gen/com/appcelerator/package/ApplicationStylesheet.java to javac build list\r\n[DEBUG] Building Java Sources: \"/home/appcel/Titanium Studio Workspace/package/build/android/gen/com/appcelerator/package/PackageApplication.java\" \"/home/appcel/Titanium Studio Workspace/package/build/android/gen/com/appcelerator/package/PackageAppInfo.java\" \"/home/appcel/Titanium Studio Workspace/package/build/android/gen/com/appcelerator/package/R.java\" \"/home/appcel/Titanium Studio Workspace/package/build/android/gen/com/appcelerator/package/PackageActivity.java\" \"/home/appcel/Titanium Studio Workspace/package/build/android/gen/com/appcelerator/package/ApplicationStylesheet.java\"\r\n[ERROR] Error(s) compiling generated Java code\r\n[ERROR] /home/appcel/Titanium Studio Workspace/package/build/android/gen/com/appcelerator/package/PackageApplication.java:6: expected\r\npackage com.appcelerator.package;\r\n ^\r\n/home/appcel/Titanium Studio Workspace/package/build/android/gen/com/appcelerator/package/PackageAppInfo.java:1: expected\r\npackage com.appcelerator.package;\r\n ^\r\n/home/appcel/Titanium Studio Workspace/package/build/android/gen/com/appcelerator/package/R.java:8: expected\r\npackage com.appcelerator.package;\r\n ^\r\n/home/appcel/Titanium Studio Workspace/package/build/android/gen/com/appcelerator/package/PackageActivity.java:1: expected\r\npackage com.appcelerator.package;\r\n ^\r\n/home/appcel/Titanium Studio Workspace/package/build/android/gen/com/appcelerator/package/ApplicationStylesheet.java:5: expected\r\npackage com.appcelerator.package;\r\n ^\r\n5 errors\r\n{code}", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-12-21T13:47:01.000+0000", "updated": "2011-12-21T13:52:25.000+0000" }, { "id": "178641", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "I added a note to the wiki guides about not using Java keywords. https://wiki.appcelerator.org/display/guides/Hello+World", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2012-01-10T05:55:31.000+0000", "updated": "2012-01-10T05:55:31.000+0000" }, { "id": "182283", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified that using one of the keywords in the app ID will still cause the build to fail, but will warn:\r\n[ERROR] Do not use java keywords for project app id, such as case\r\nChecked with Titanium Studio, build: 1.0.8.201201262211 and SDK 1.9.0.v20120207000134", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-07T14:56:17.000+0000", "updated": "2012-02-07T14:56:17.000+0000" }, { "id": "183497", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Re-opening as conditionally Not Fixed.\r\n\r\nApp ID values containing: true, false, and null exhibit the old behavior.\r\n\r\nLog:\r\n---\r\n[ERROR] Error(s) compiling generated Java code\r\n[ERROR] /Users/dhyde/Documents/Titanium Studio Workspace/null/build/android/gen/com/appcelerator/true/ApplicationStylesheet.java:5: expected\r\npackage com.appcelerator.true;\r\n ^\r\n---\r\n\r\nSome Java operators do not generate specific character warnings (such as '<').\r\n\r\nLog:\r\n---\r\n[ERROR] /Users/dhyde/Documents/Titanium Studio Workspace/null/build/android/AndroidManifest.xml:3: error: Error parsing XML: not well-formed (invalid token)\r\n[ERROR] Error generating R.java from manifest\r\n---\r\n\r\nSDK: 1.8.2.v20120214163156, 1.8.1\r\nAndroid: V8\r\nStudio: 1.0.9.201202131024\r\nOS: Lion\r\nDevices Tested: Android Emulator 2.2", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-16T18:08:39.000+0000", "updated": "2012-02-16T18:08:39.000+0000" }, { "id": "186624", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing bug. Verified fix; Studio will not allow you to create projects that have Java keywords in the app id:\r\n\r\nSDK build: 2.0.0.v20120315091738\r\nTitanium Studio, build: 2.0.0.201203142055\r\nOS: Mac OS X Lion (10.7.2)", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-03-15T10:15:02.000+0000", "updated": "2012-03-15T10:15:02.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }