{ "id": "131043", "key": "TIMOB-17044", "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": null, "resolutiondate": null, "created": "2014-05-29T21:50:44.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "androidlib", "cb-tooling", "qe-3.3.0" ], "versions": [ { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "issuelinks": [ { "id": "38476", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "63159", "key": "TIMOB-2527", "fields": { "summary": "Android: App launch/build problem if ampersand in home folder name (windows)", "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": "37973", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "117393", "key": "TIMOB-14630", "fields": { "summary": "Android: Modules: Can't package Android module in OSX 10.8", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2016-09-22T21:44:03.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h5.Prerequisites:\r\nYour android NDK path set in the studio preference should contain a special character.\r\ne.g Mine is : /Users/lokeshchoudhary/Desktop/AndroidNDK's/android-ndk-r9d\r\nYou can have any other special characters. \r\nI could reproduce it with $ , & , * , @.\r\n\r\nh5.Description:\r\n1. Create an android module in studio.\r\n2. Build the module.\r\n\r\nh5.Actual Result:\r\n1. We get the following error:\r\n{code}\r\n/Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.3.0.v20140528144113/module/android/build.xml:326: The following error occurred while executing this line:\r\n/Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.3.0.v20140528144113/module/android/build.xml:281: exec returned: 2 You may need to install the Command Line Tools package through XCode, in case you haven't done so yet.\r\n{code}\r\n\r\n2. If we do an ant built we get the following error:\r\n{code}\r\nBuildfile: /Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/android_module/android/build.xml\r\npython.set.exec:\r\npython.check:\r\n [echo] Testing for Python\r\n [exec] Python 2.7.2\r\ninit:\r\nprocess.annotations:\r\ngenerate.v8.bindings:\r\n [java] Generating /Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/android_module/android/build/generated/jni/com.app.androidmodule.AndroidModuleModule.h\r\n [java] Generating /Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/android_module/android/build/generated/jni/com.app.androidmodule.AndroidModuleModule.cpp\r\n [java] Generating /Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/android_module/android/build/generated/jni/com.app.androidmodule.ExampleProxy.h\r\n [java] Generating /Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/android_module/android/build/generated/jni/com.app.androidmodule.ExampleProxy.cpp\r\ngenerate.bindings:\r\npre.compile:\r\njs.compile:\r\nndk.build:\r\n [copy] Copying 43 files to /var/folders/35/nwgw558n55951fnpxmxkjqmr0000gp/T/lokeshchoudhary/android_module-generated\r\n [exec] usage: dirname path\r\n [exec] make: /Users/lokeshchoudhary/build/core/build-local.mk: No such file or directory\r\n [exec] make: *** No rule to make target `/Users/lokeshchoudhary/build/core/build-local.mk'. Stop.\r\n\r\nBUILD FAILED\r\n/Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.3.0.v20140528144113/module/android/build.xml:326: The following error occurred while executing this line:\r\n/Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.3.0.v20140528144113/module/android/build.xml:281: exec returned: 2\r\n\r\nTotal time: 2 seconds\r\n{code}\r\n\r\n3. If the special char in the NDK path is removed the module build successfully, using both methods.\r\n\r\nh5.Expected Result:\r\n1. The module should be built without any errors", "attachment": [], "flagged": false, "summary": "Android: Modules: Special character in NDK path throws command line tools package needed error while building android module", "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 : 3.3.0.201405271647\r\nTi SDK : 3.3.0.v20140524224144\r\nMac OSX : 10.8.5\r\nAlloy : 1.4.0-beta\r\nCLI - 3.3.0-beta\r\nCode Processor: 1.1.1", "comment": { "comments": [ { "id": "306986", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "See notes http://developer.android.com/tools/sdk/ndk/index.html for version 7b: \"Fixed a problem where special characters in files or paths, other than spaces and quotes, were not correctly handled\" (I know this is on Windows). This makes me think there may be a native NDK issue with quotes. What if you try (without involving Titanium at all) compiling something with the NDK with the same character in the path?\r\n\r\nAlso, NDK is based on GNU Make, which makes me think other special characters that likely have meanings in the shell might cause problems. Try it with something like umlauts.\r\n\r\n_maybe related_? http://comments.gmane.org/gmane.comp.gnu.make.devel/949", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-30T10:51:24.000+0000", "updated": "2014-05-30T10:51:24.000+0000" }, { "id": "307226", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~lchoudhary] Can you see if this is possible to have occur with Native?", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-02T20:21:22.000+0000", "updated": "2014-06-02T20:21:22.000+0000" }, { "id": "307369", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I am looking in to making a module natively will update the thread accordingly.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-03T17:46:41.000+0000", "updated": "2014-06-03T17:46:41.000+0000" }, { "id": "309627", "author": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-18T17:29:38.000+0000", "updated": "2014-06-18T17:29:38.000+0000" }, { "id": "309653", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~bhatfield] Can you please confirm this is noted in our documentation?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-18T18:13:12.000+0000", "updated": "2014-06-18T18:13:12.000+0000" }, { "id": "309693", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~bhatfield] I would add a note. If we have one that talks about not having spaces in the path, I would add it there (as that's also a NDK restriction). This is an \"Android issue\".", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-18T20:26:14.000+0000", "updated": "2014-06-18T20:26:14.000+0000" }, { "id": "309710", "author": { "name": "bhatfield", "key": "bhatfield", "displayName": "Benjamin Hatfield", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Added a note in the Software Locations guide under the Windows section and in the Installing Android NDK guide", "updateAuthor": { "name": "bhatfield", "key": "bhatfield", "displayName": "Benjamin Hatfield", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-06-18T21:19:16.000+0000", "updated": "2014-06-18T21:19:16.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }