{ "id": "164613", "key": "AC-4630", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-11-28T19:22:22.000+0000", "created": "2016-11-21T02:33:47.000+0000", "labels": [ "android", "module", "sdk-6.0.0.GA" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-11-28T19:22:22.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": [], "description": "I cant build any module anymore with the new sdk 6.0.0.GA.\r\nI suspect it has got to do with the incompatible android NDK been used as the new sdk is making used of the latest V8 whereas the android NDK been used in the titanium studio is quit old and outdated. I tried installing the latest ndk revison 13 and tried compilling but that also always seems to ends up with some messy error.\r\n\r\nThis incompatibility has prevent all my projects from making use of the latest sdk 6 and had me still stuck at 5.5.1 sdk because my app make uses of a lot of external modules.\r\n\r\nSteps to reproduce :\r\n1. Go to titanium studio\r\n2. Create new mobile module project with android as the deployment target using the sdk 6.0.0.GA version.\r\n3. Put the android ndk path in the build.properties.\r\n4. run as Ant Build.\r\n\r\nThe compiling never succeeds but always throws up some error [related to android NDK most probably]\r\n \r\n\r\n", "attachment": [], "flagged": false, "summary": "[Android] Not able to complie/build any new/old module with the new SDK 6.0.0.GA", "creator": { "name": "spaceman12", "key": "spaceman12", "displayName": "Lee phela", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "spaceman12", "key": "spaceman12", "displayName": "Lee phela", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Operating System\r\n Name = Mac OS X\r\n Version = 10.11.6\r\n Architecture = 64bit\r\n # CPUs = 4\r\n Memory = 8589934592\r\nNode.js\r\n Node.js Version = 4.6.2\r\n npm Version = 2.15.11\r\nTitanium CLI\r\n CLI Version = 5.0.10\r\nTitanium SDK\r\n SDK Version = 6.0.0.GA\r\n Target Platform = android\r\n\r\nStudio version = 4.8.0.201611121409\r\nAndroid NDK = android-ndk-r9c (Revision 9 C)", "comment": { "comments": [ { "id": "401643", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, You did not provide the actual error when you try to build module. Also, currently Appcelerator support NDK version 9. See:http://docs.appcelerator.com/platform/latest/#!/guide/Installing_the_Android_NDK.Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-11-21T20:05:20.000+0000", "updated": "2016-11-21T20:05:20.000+0000" }, { "id": "401663", "author": { "name": "spaceman12", "key": "spaceman12", "displayName": "Lee phela", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Please take a look at the error log generated \r\n\r\nBuildfile: /Users/mymac/Documents/mod6/android/build.xml\r\npython.set.exec:\r\npython.check:\r\n [echo] Testing for Python\r\n [exec] Python 2.7.10\r\ninit:\r\nprocess.aidl:\r\n [echo] Generating java files from the .aidl files\r\n [echo] /Users/appcel/android-sdk/build-tools/23.0.3/aidl\r\nprocess.annotations:\r\ngenerate.v8.bindings:\r\n [java] Generating /Users/mymac/Documents/mod6/android/build/generated/jni/lee.mod6.Mod6Module.h\r\n [java] Generating /Users/mymac/Documents/mod6/android/build/generated/jni/lee.mod6.Mod6Module.cpp\r\n [java] Generating /Users/mymac/Documents/mod6/android/build/generated/jni/lee.mod6.ExampleProxy.h\r\n [java] Generating /Users/mymac/Documents/mod6/android/build/generated/jni/lee.mod6.ExampleProxy.cpp\r\ngenerate.bindings:\r\npre.compile:\r\njs.compile:\r\nndk.build:\r\n [mkdir] Created dir: /var/folders/mm/zp154r3123d4hjzbbyk83q5r0000gn/T/mymac/mod6-generated\r\n [copy] Copying 11 files to /var/folders/mm/zp154r3123d4hjzbbyk83q5r0000gn/T/mymac/mod6-generated\r\n [exec] Android NDK: WARNING:jni/Android.mk:lee.mod6: non-system libraries in linker flags: -lkroll-v8 \r\n [exec] Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES \r\n [exec] Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the \r\n [exec] Android NDK: current module \r\n [exec] jni/Android.mk:35: warning: overriding commands for target `/private/var/folders/mm/zp154r3123d4hjzbbyk83q5r0000gn/T/mymac/mod6-generated/KrollGeneratedBindings.cpp'\r\n [exec] jni/Android.mk:35: warning: ignoring old commands for target `/private/var/folders/mm/zp154r3123d4hjzbbyk83q5r0000gn/T/mymac/mod6-generated/KrollGeneratedBindings.cpp'\r\n [exec] jni/Android.mk:38: warning: overriding commands for target `/private/var/folders/mm/zp154r3123d4hjzbbyk83q5r0000gn/T/mymac/mod6-generated/BootstrapJS.cpp'\r\n [exec] jni/Android.mk:38: warning: ignoring old commands for target `/private/var/folders/mm/zp154r3123d4hjzbbyk83q5r0000gn/T/mymac/mod6-generated/BootstrapJS.cpp'\r\n [exec] Android NDK: WARNING:jni/Android.mk:lee.mod6: non-system libraries in linker flags: -lkroll-v8 \r\n [exec] Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES \r\n [exec] Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the \r\n [exec] Android NDK: current module \r\n [exec] [armeabi-v7a] Compile++ thumb: lee.mod6 <= lee.mod6.ExampleProxy.cpp\r\n [exec] In file included from /Users/mymac/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android/native/include/Proxy.h:11:0,\r\n [exec] from jni/lee.mod6.ExampleProxy.h:12,\r\n [exec] from jni/lee.mod6.ExampleProxy.cpp:10:\r\n [exec] /Users/mymac/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android/native/include/v8.h:345:1: error: expected unqualified-id before 'using'\r\n [exec] /Users/mymac/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android/native/include/v8.h:481:1: error: expected unqualified-id before 'using'\r\n [exec] /Users/mymac/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android/native/include/v8.h:882:1: error: expected unqualified-id before 'using'\r\n [exec] /Users/mymac/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android/native/include/v8.h:5424:35: error: 'virtual v8::EmbedderHeapTracer::~EmbedderHeapTracer()' declared virtual cannot be defaulted in the class body\r\n [exec] make: *** [/var/folders/mm/zp154r3123d4hjzbbyk83q5r0000gn/T//mymac/mod6-generated/obj/local/armeabi-v7a/objs/lee.mod6/lee.mod6.ExampleProxy.o] Error 1\r\n{color:red}\r\nBUILD FAILED\r\n/Users/mymac/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/module/android/build.xml:347: The following error occurred while executing this line:\r\n/Users/mymac/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/module/android/build.xml:302: exec returned: 2\r\n{color}\r\nTotal time: 15 seconds\r\n", "updateAuthor": { "name": "spaceman12", "key": "spaceman12", "displayName": "Lee phela", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-11-22T04:29:01.000+0000", "updated": "2016-11-22T04:30:00.000+0000" }, { "id": "401701", "author": { "name": "aislam", "key": "aislam", "displayName": "Aminul Islam", "active": false, "timeZone": "Etc/GMT-6" }, "body": "Hi,\r\nSo far we have been unable to reproduce this issue with Appcelerator Studio, build: 4.8.0.201611121409 and 6.0.0.GA. We recommend you to upgarde your NDK\r\n*build.properties*\r\n{code}\r\ntitanium.platform=/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android\r\nandroid.platform=/Library/android-sdk-macosx/platforms/android-23\r\ngoogle.apis=/Library/android-sdk-macosx/add-ons/addon-google_apis-google-23\r\nandroid.ndk=/Documents/r12b\r\n{code}\r\n\r\nbuild success log :\r\n{code}\r\ncheck.build.arch:\r\n [echo] Architectures in manifest: armeabi-v7a x86\r\n [echo] Compiled binary architectures: armeabi-v7a;x86\r\nndk.build.local:\r\ncompile:\r\n [javac] Compiling 1 source file to /Users/Raju/Documents/Appcelerator_Studio_Workspace_Oct_2016/newsix/android/build/classes\r\n [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6\r\n [javac] 1 warning\r\n [copy] Copying 1 file to /Users/Raju/Documents/Appcelerator_Studio_Workspace_Oct_2016/newsix/android/build/classes\r\npost.compile:\r\npre.dist:\r\ndist:\r\n [jar] Building jar: /Users/Raju/Documents/Appcelerator_Studio_Workspace_Oct_2016/newsix/android/dist/newsix.jar\r\npost.jar:\r\npython.set.exec:\r\npython.check:\r\n [echo] Testing for Python\r\n [exec] Python 2.7.10\r\ninit:\r\npre.docgen:\r\ndocgen:\r\n [exec] Creating dir: /Users/Raju/Documents/Appcelerator_Studio_Workspace_Oct_2016/newsix/android/build/docs\r\n [exec] Generating /Users/Raju/Documents/Appcelerator_Studio_Workspace_Oct_2016/newsix/android/build/docs/index.html\r\npost.docgen:\r\ncheck.respackage:\r\n [zip] Building zip: /Users/Raju/Documents/Appcelerator_Studio_Workspace_Oct_2016/newsix/android/dist/com.am.newsix-android-aaa.zip\r\nlibs.check:\r\nzip.libs:\r\n [zip] Updating zip: /Users/Raju/Documents/Appcelerator_Studio_Workspace_Oct_2016/newsix/android/dist/com.am.newsix-android-aaa.zip\r\nzip.metadata:\r\nclean.respackage:\r\npost.dist:\r\nBUILD SUCCESSFUL\r\nTotal time: 47 seconds\r\n{code}\r\nEnvironment :\r\n{code}\r\nOperating System\r\n Name = Mac OS X\r\n Version = 10.11.6\r\n Architecture = 64bit\r\n # CPUs = 4\r\n Memory = 8.0GB\r\n\r\nNode.js\r\n Node.js Version = 4.4.4\r\n npm Version = 2.15.1\r\n\r\nAppcelerator CLI\r\n Installer = 4.2.8\r\n Core Package = 6.0.0\r\n\r\nTitanium CLI\r\n CLI Version = 5.0.10\r\n node-appc Version = 0.2.31\r\n\r\nTitanium SDKs\r\n Version = 6.0.0\r\n{code}\r\n\r\nThanks", "updateAuthor": { "name": "aislam", "key": "aislam", "displayName": "Aminul Islam", "active": false, "timeZone": "Etc/GMT-6" }, "created": "2016-11-22T18:24:49.000+0000", "updated": "2016-11-22T18:29:09.000+0000" }, { "id": "401730", "author": { "name": "spaceman12", "key": "spaceman12", "displayName": "Lee phela", "active": true, "timeZone": "America/Los_Angeles" }, "body": "After updating the android NDK to revision 12 b, I can successfully compile again.\r\n\r\nI feel it should be explicitly stated on the release page that the latest release of the sdk needs ANDROID NDK r12b to successfully compile android module.", "updateAuthor": { "name": "spaceman12", "key": "spaceman12", "displayName": "Lee phela", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-11-23T02:10:33.000+0000", "updated": "2016-11-23T02:10:33.000+0000" }, { "id": "401918", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Thanks for letting us know. Fixed with latest NDK release.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-11-28T19:21:54.000+0000", "updated": "2016-11-28T19:21:54.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }