Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6861] Tooling: Android: Cannot compile modules

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2012-04-09T07:53:16.000+0000
Affected Version/sRelease 1.8.0.1
Fix Version/sRelease 1.8.1
ComponentsAndroid
Labelscore, regression
ReporterRuben Fonseca
AssigneeOpie Cyrus
Created2011-12-23T05:00:24.000+0000
Updated2017-03-09T01:13:50.000+0000

Description

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)

Comments

  1. Kevin Whinnery 2011-12-23

    Have you reviewed http://developer.appcelerator.com/blog/2011/12/upgrading-android-modules-to-1-8-0-1.html as yet? Thanks...
  2. Ruben Fonseca 2011-12-23

    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.
  3. Paul Dowsett 2011-12-23

    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.
  4. Ruben Fonseca 2011-12-24

    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
  5. Paul Dowsett 2011-12-25

    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
  6. Nikolai Derzhak 2011-12-29

    Ruben, You can open reported by you tickets with comment from now. Regards
  7. Marshall Culpepper 2012-04-09

    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
  8. Lee Morris 2017-03-09

    Closing ticket as fixed.

JSON Source