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

Android: Unable to build to Android 8.0 devices or emulators

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 6.1.0, Release 6.1.1
    • Fix Version/s: Release 6.2.0
    • Component/s: Android
    • Environment:

      Mac OS Version : 10.12.5
      Appc CLI : 6.2.2
      Appc NPM : 4.2.9
      Node : v6.10.3
      Pixel XL (8.0)
      Emulator: (8.0)
      Android SDK Tools: (25.2.5)
      Android SDK Platform-tools: (26)
      Android SDK Build-tools: (26 rc2), (26)

      Description

      Android 8.0 preview is out when trying to build to my device I received the error below.

      Steps to reproduce:

      1. Create the default application appc new
      2. Build to an android device running 8.0 appc run -p android -T device -l trace

      Actual

      2017-06-27T17:02:19.391Z | ERROR  | An uncaught exception was thrown!
      Cannot read property 'cyan' of undefined
      2017-06-27T17:02:19.391Z | ERROR  | Cannot read property 'cyan' of undefined
      2017-06-27T17:02:19.391Z | TRACE  | TypeError: Cannot read property 'cyan' of undefined
          at setDeviceId (/Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/android/cli/commands/_build.js:1273:61)
          at AndroidBuilder.validate (/Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/android/cli/commands/_build.js:1339:8)
          at Object.exports.validatePlatformOptions (/Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-titanium-sdk/lib/titanium.js:672:69)
          at /Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/cli/commands/build.js:278:21
          at /Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/cli/commands/build.js:458:4
          at /Users/Josh/.appcelerator/install/6.2.2/package/node_modules/titanium/node_modules/node-appc/lib/environ.js:271:4
          at ChildProcess.exithandler (child_process.js:195:7)
          at emitTwo (events.js:106:13)
          at ChildProcess.emit (events.js:191:7)
          at maybeClose (internal/child_process.js:886:16)
          at Socket.<anonymous> (internal/child_process.js:342:11)
          at emitOne (events.js:96:13)
          at Socket.emit (events.js:188:7)
          at Pipe._handle.close [as _onclose] (net.js:497:12)
      ---------------------------------------------
          at Object.exports.execFile (child_process.js:287:9)
          at exports.exec (child_process.js:103:18)
          at /Users/Josh/.appcelerator/install/6.2.2/package/node_modules/titanium/node_modules/node-appc/lib/environ.js:267:3
          at /Users/Josh/.appcelerator/install/6.2.2/package/node_modules/titanium/node_modules/node-appc/node_modules/async/dist/async.js:3694:9
          at /Users/Josh/.appcelerator/install/6.2.2/package/node_modules/titanium/node_modules/node-appc/node_modules/async/dist/async.js:356:16
          at replenish (/Users/Josh/.appcelerator/install/6.2.2/package/node_modules/titanium/node_modules/node-appc/node_modules/async/dist/async.js:877:25)
          at iterateeCallback (/Users/Josh/.appcelerator/install/6.2.2/package/node_modules/titanium/node_modules/node-appc/node_modules/async/dist/async.js:867:17)
          at /Users/Josh/.appcelerator/install/6.2.2/package/node_modules/titanium/node_modules/node-appc/node_modules/async/dist/async.js:840:16
          at /Users/Josh/.appcelerator/install/6.2.2/package/node_modules/titanium/node_modules/node-appc/node_modules/async/dist/async.js:3691:13
          at apply (/Users/Josh/.appcelerator/install/6.2.2/package/node_modules/titanium/node_modules/node-appc/node_modules/async/dist/async.js:21:25)
          at /Users/Josh/.appcelerator/install/6.2.2/package/node_modules/titanium/node_modules/node-appc/node_modules/async/dist/async.js:56:12
          at /Users/Josh/.appcelerator/install/6.2.2/package/node_modules/titanium/node_modules/node-appc/lib/environ.js:234:7
          at ChildProcess.exithandler (child_process.js:195:7)
          at emitTwo (events.js:106:13)
      ---------------------------------------------
          at Object.exports.execFile (child_process.js:287:9)
          at exports.exec (child_process.js:103:18)
          at /Users/Josh/.appcelerator/install/6.2.2/package/node_modules/titanium/node_modules/node-appc/lib/environ.js:227:6
          at /Users/Josh/.appcelerator/install/6.2.2/package/node_modules/titanium/node_modules/node-appc/node_modules/async/dist/async.js:3686:9
          at replenish (/Users/Josh/.appcelerator/install/6.2.2/package/node_modules/titanium/node_modules/node-appc/node_modules/async/dist/async.js:882:17)
          at /Users/Josh/.appcelerator/install/6.2.2/package/node_modules/titanium/node_modules/node-appc/node_modules/async/dist/async.js:886:9
          at eachOfLimit (/Users/Josh/.appcelerator/install/6.2.2/package/node_modules/titanium/node_modules/node-appc/node_modules/async/dist/async.js:913:22)
          at /Users/Josh/.appcelerator/install/6.2.2/package/node_modules/titanium/node_modules/node-appc/node_modules/async/dist/async.js:918:16
          at _parallel (/Users/Josh/.appcelerator/install/6.2.2/package/node_modules/titanium/node_modules/node-appc/node_modules/async/dist/async.js:3685:5)
          at Object.series (/Users/Josh/.appcelerator/install/6.2.2/package/node_modules/titanium/node_modules/node-appc/node_modules/async/dist/async.js:4525:3)
          at Object.getOSInfo (/Users/Josh/.appcelerator/install/6.2.2/package/node_modules/titanium/node_modules/node-appc/lib/environ.js:223:8)
          at Function.logger.log.init (/Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/cli/commands/build.js:429:11)
          at /Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/cli/commands/build.js:265:15
          at CLI.callCommandValidate (/Users/Josh/.appcelerator/install/6.2.2/package/node_modules/titanium/lib/cli.js:720:7)
          at /Users/Josh/.appcelerator/install/6.2.2/package/node_modules/titanium/node_modules/node-appc/node_modules/async/dist/async.js:3686:9
      ---------------------------------------------
          at Object.run (/Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-appc/lib/subprocess.js:59:8)
          at /Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-titanium-sdk/lib/emulators/genymotion.js:325:21
          at /Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-titanium-sdk/node_modules/async/dist/async.js:3830:24
          at eachOfArrayLike (/Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-titanium-sdk/node_modules/async/dist/async.js:1003:9)
          at eachOf (/Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-titanium-sdk/node_modules/async/dist/async.js:1051:5)
          at _parallel (/Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-titanium-sdk/node_modules/async/dist/async.js:3829:5)
          at Object.parallelLimit [as parallel] (/Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-titanium-sdk/node_modules/async/dist/async.js:3912:5)
          at /Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-titanium-sdk/lib/emulators/genymotion.js:309:9
          at ChildProcess.<anonymous> (/Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-appc/lib/subprocess.js:60:3)
          at emitTwo (events.js:106:13)
          at ChildProcess.emit (events.js:191:7)
          at maybeClose (internal/child_process.js:886:16)
          at Socket.<anonymous> (internal/child_process.js:342:11)
      ---------------------------------------------
          at Object.run (/Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-appc/lib/subprocess.js:59:8)
          at getVMInfo (/Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-titanium-sdk/lib/emulators/genymotion.js:306:18)
          at /Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-titanium-sdk/lib/emulators/genymotion.js:447:4
          at Object.detect (/Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-titanium-sdk/lib/emulators/genymotion.js:38:41)
          at Object.isEmulator (/Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-titanium-sdk/lib/emulators/genymotion.js:445:7)
          at /Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-titanium-sdk/lib/emulator.js:188:13
          at /Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-titanium-sdk/node_modules/async/dist/async.js:3830:24
          at eachOfArrayLike (/Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-titanium-sdk/node_modules/async/dist/async.js:1003:9)
          at eachOf (/Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-titanium-sdk/node_modules/async/dist/async.js:1051:5)
          at _parallel (/Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-titanium-sdk/node_modules/async/dist/async.js:3829:5)
          at Object.parallelLimit [as parallel] (/Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-titanium-sdk/node_modules/async/dist/async.js:3912:5)
          at EmulatorManager.isEmulator (/Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-titanium-sdk/lib/emulator.js:182:8)
          at /Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-titanium-sdk/lib/adb.js:391:12
          at conn.exec.bufferUntilClose (/Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-titanium-sdk/lib/adb.js:493:5)
          at Connection.<anonymous> (/Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-titanium-sdk/lib/adb.js:252:4)
      ---------------------------------------------
          at Socket.Readable.on (_stream_readable.js:687:35)
          at Connection.exec (/Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-titanium-sdk/lib/adb.js:249:9)
          at ADB.<anonymous> (/Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-titanium-sdk/lib/adb.js:492:9)
          at Connection.<anonymous> (/Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-titanium-sdk/lib/adb.js:172:8)
          at emitOne (events.js:96:13)
          at Socket.emit (events.js:188:7)
          at readableAddChunk (_stream_readable.js:176:18)
          at Socket.Readable.push (_stream_readable.js:134:10)
          at TCP.onread (net.js:547:20)
      ---------------------------------------------
          at Socket.Readable.on (_stream_readable.js:687:35)
          at Connection.exec (/Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-titanium-sdk/lib/adb.js:120:9)
          at ADB.shell (/Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-titanium-sdk/lib/adb.js:488:7)
          at /Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-titanium-sdk/lib/adb.js:352:8
          at /Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-titanium-sdk/node_modules/async/dist/async.js:3830:24
          at replenish (/Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-titanium-sdk/node_modules/async/dist/async.js:946:17)
          at iterateeCallback (/Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-titanium-sdk/node_modules/async/dist/async.js:931:17)
          at /Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-titanium-sdk/node_modules/async/dist/async.js:906:16
          at /Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-titanium-sdk/node_modules/async/dist/async.js:3835:13
          at /Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-titanium-sdk/lib/adb.js:393:6
          at /Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-titanium-sdk/lib/emulator.js:198:4
          at /Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-titanium-sdk/node_modules/async/dist/async.js:3838:9
          at /Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-titanium-sdk/node_modules/async/dist/async.js:421:16
          at iteratorCallback (/Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-titanium-sdk/node_modules/async/dist/async.js:998:13)
          at /Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-titanium-sdk/node_modules/async/dist/async.js:906:16
      ---------------------------------------------
          at Object.run (/Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-appc/lib/subprocess.js:59:8)
          at /Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-titanium-sdk/lib/emulators/genymotion.js:325:21
          at /Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-titanium-sdk/node_modules/async/dist/async.js:3830:24
          at eachOfArrayLike (/Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-titanium-sdk/node_modules/async/dist/async.js:1003:9)
          at eachOf (/Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-titanium-sdk/node_modules/async/dist/async.js:1051:5)
          at _parallel (/Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-titanium-sdk/node_modules/async/dist/async.js:3829:5)
          at Object.parallelLimit [as parallel] (/Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-titanium-sdk/node_modules/async/dist/async.js:3912:5)
          at /Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-titanium-sdk/lib/emulators/genymotion.js:309:9
          at ChildProcess.<anonymous> (/Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-appc/lib/subprocess.js:60:3)
          at emitTwo (events.js:106:13)
          at ChildProcess.emit (events.js:191:7)
          at maybeClose (internal/child_process.js:886:16)
          at Socket.<anonymous> (internal/child_process.js:342:11)
      ---------------------------------------------
          at Object.run (/Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-appc/lib/subprocess.js:59:8)
          at getVMInfo (/Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-titanium-sdk/lib/emulators/genymotion.js:306:18)
          at /Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-titanium-sdk/lib/emulators/genymotion.js:447:4
          at finalize (/Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-titanium-sdk/lib/emulators/genymotion.js:179:4)
          at /Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-titanium-sdk/lib/emulators/genymotion.js:234:6
          at /Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-titanium-sdk/lib/emulators/genymotion.js:386:4
          at /Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-titanium-sdk/node_modules/async/dist/async.js:3838:9
          at /Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-titanium-sdk/node_modules/async/dist/async.js:421:16
          at iteratorCallback (/Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-titanium-sdk/node_modules/async/dist/async.js:998:13)
          at /Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-titanium-sdk/node_modules/async/dist/async.js:906:16
          at /Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-titanium-sdk/node_modules/async/dist/async.js:3835:13
          at /Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-titanium-sdk/lib/emulators/genymotion.js:381:7
          at ChildProcess.<anonymous> (/Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-appc/lib/subprocess.js:60:3)
          at emitTwo (events.js:106:13)
      

      Expected

      No error is shown and the build is successful

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gmathews Gary Mathews
                Reporter:
                jlongton Josh Longton
                Reviewer:
                Chris Barber
              • Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code