Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-23801

Titanium Android module build fails with Titanium SDK 6.1.0

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Release 6.0.0, Release 6.1.0
    • Fix Version/s: Release 6.0.0
    • Component/s: Android, Tooling
    • Labels:
      None
    • Environment:

      Titanium SDK master (6.1.0)
      Android NDK r11c (also tested with r10e)

    • Sprint:
      2016 Sprint 18 Tooling

      Description

      When building an Android module, the build fails:

      [ERROR] Failed to run ndk-build
      [ERROR]   
      [ERROR] jni/Android.mk:35: warning: overriding commands for target `/Users/chris/appc/workspace/mymodule/android/build/generated/KrollGeneratedBindings.cpp'
      [ERROR] jni/Android.mk:35: warning: ignoring old commands for target `/Users/chris/appc/workspace/mymodule/android/build/generated/KrollGeneratedBindings.cpp'
      [ERROR] In file included from jni/com.appcelerator.mymodule.ExampleProxy.h:12:0,
      [ERROR]                  from jni/com.appcelerator.mymodule.ExampleProxy.cpp:10:
      [ERROR] /Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0/android/native/include/Proxy.h:11:16: fatal error: v8.h: No such file or directory
      [ERROR]  #include <v8.h>
      [ERROR]                 ^
      [ERROR] compilation terminated.
      [ERROR] make: *** [/Users/chris/appc/workspace/mymodule/android/build/generated/obj/local/armeabi-v7a/objs/com.appcelerator.mymodule/com.appcelerator.mymodule.ExampleProxy.o] Error 1
      

      To reproduce:

      ti create -t module -n mymodule --id com.appc.mymodule -p all -d .
      cd mymodule/android
      ti build -p android --build-only
      

      We're also seeing:

      [ERROR] Failed to compile Java source files:
      [ERROR]   
      [ERROR] warning: [options] bootstrap class path not set in conjunction with -source 1.6
      [ERROR] Note: [KrollBindingGen] Running Kroll binding generator.
      [ERROR] Note: [KrollBindingGen] No binding data found, creating new data file: org.appcelerator.titanium.bindings/123abc.json
      [ERROR] Note: [KrollBindingGen] Found binding for proxy Example
      [ERROR] Note: [KrollBindingGen] Found binding for module my123abc
      [ERROR] Note: [KrollBindingGen] Generating JSON: file:/Users/chris/appc/workspace/123abc/android/build/generated/json/org/appcelerator/titanium/bindings/123abc.json
      [ERROR] /Users/chris/appc/workspace/123abc/android/src/com/test/app/ExampleProxy.java:32: error: cannot find symbol
      [ERROR]         private static final boolean DBG = TiConfig.LOGD;
      [ERROR]                                            ^
      [ERROR]   symbol:   variable TiConfig
      [ERROR]   location: class ExampleProxy
      [ERROR] /Users/chris/appc/workspace/123abc/android/src/com/test/app/ExampleProxy.java:81: error: cannot find symbol
      [ERROR]         		Log.d(LCAT, "example created with message: " + options.get("message"));
      [ERROR]         		^
      [ERROR]   symbol:   variable Log
      [ERROR]   location: class ExampleProxy
      [ERROR] /Users/chris/appc/workspace/123abc/android/src/com/test/app/ExampleProxy.java:89: error: cannot find symbol
      [ERROR]         	Log.d(LCAT, "printing message: " + message);
      [ERROR]         	^
      [ERROR]   symbol:   variable Log
      [ERROR]   location: class ExampleProxy
      [ERROR] /Users/chris/appc/workspace/123abc/android/src/com/test/app/ExampleProxy.java:102: error: cannot find symbol
      [ERROR]             Log.d(LCAT, "Tried setting module message to: " + message);
      [ERROR]             ^
      [ERROR]   symbol:   variable Log
      [ERROR]   location: class ExampleProxy
      [ERROR] 4 errors
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cwilliams Christopher Williams
                Reporter:
                cbarber Chris Barber
                Reviewer:
                cb1kenobi
              • Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-10036
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code