Problem
After the official release of the Titanium 1.8.0.1, and porting existing modules in line with the [Upgrading Android Modules to 1.8.0.1](
http://developer.appcelerator.com/blog/2011/12/upgrading-android-modules-to-1-8-0-1.html) guide, these modules will not compile, returning the error below. Numerous attempts were made, but all failed.
The modules were working ok on 1.8.0.1.RC1, 1.8.0.1.RC2 and 1.8.0.1.RC3.
Test case
* create a new titanium module form scratch, using the 1.8.0.1 SDK
** $ titanium1801 create --platform=android --name=test --id=com.test --type=module
* edit the TestModule.java file
** $ vim src/com/test/TestModule.java
* inside the TestModule class, add a @Kroll.constant with a "dynamic" initializer
@Kroll.constant public static final String EXTERNAL_NAME = new String("foo");
* try to compile the module
** $ ant clean && ant
* it doesn't compile, see the log error bellow
Logs
[exec] Compile++ thumb : com.test <= com.test.TestModule.cpp
[exec] jni/com.test.TestModule.cpp: In static member function 'static v8::Handle<v8::FunctionTemplate> com::test::TestModule::getProxyTemplate()':
[exec] jni/com.test.TestModule.cpp:111: error: no matching function for call to 'v8::String::New(_jobject*&)'
[exec] /Library/Application Support/Titanium/mobilesdk/osx/1.8.0.1/android/native/include/v8.h:1187: note: candidates are: static v8::Local<v8::String> v8::String::New(const char*, int)
[exec] /Library/Application Support/Titanium/mobilesdk/osx/1.8.0.1/android/native/include/v8.h:1190: note: static v8::Local<v8::String> v8::String::New(const uint16_t*, int)
Have you reviewed http://developer.appcelerator.com/blog/2011/12/upgrading-android-modules-to-1-8-0-1.html as yet? Thanks...
Thanks Kevin. I did, otherwise the modules wouldn't even compile and ran on 1.8.0.1.RC1. Let me stress that the modules were converted/ported and were working perfectly fine on 1.8.0.1.RC1 through RC3.
Thanks for raising this, Ruben. In order for me to escalate it to the core team, this ticket must follow the [JIRA Ticket Checklist](https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-JIRATicketChecklist) and hence include a test case, as per the [Creating a Test Case](https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-CreatingaTestCase). This will allow our engineers to reliably reproduce the problem and prove the fix. I will close this for now. Please reopen the ticket once it is complete, and I will move it directly to the main project and, in addition, notify the relevant members of our team.
Thanks Paul. I've managed to reduce the problem to the line causing it. Again, I don't have any button to reopen the bug, can you please do it if that's ok? Thanks
Hi Ruben Thanks for the effort you have made - this ticket looks perfect to me now! ;) I will certainly reopen it for you - I am concerned that you don't see the button. I will have to investigate this. :/ I will move the ticket to the main project now. Cheers
Ruben, You can open reported by you tickets with comment from now. Regards
This should be fixed now, module compilation has been tested pretty thoroughly at this point.. Please re-open if still encountering with 1.8.2
Closing ticket as fixed.