Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1496] Genymotion causing Android SDK not to load.

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionDuplicate
Resolution Date2014-07-28T19:07:57.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsStudio
Labels3.3.0.GA, android, genymotion
ReporterPaul Flood
AssigneeChris Barber
Created2014-07-22T05:03:49.000+0000
Updated2016-03-08T07:37:56.000+0000

Description

I updated Titanium with latest updates so Studio and the SDK are at 3.3.0. As soon as this happened I got the following error. [Android SDK Home] No Android SDKs were found under the specified SDK location After doing a bit of searching I found this article. https://developer.appcelerator.com/question/176318/alternative-solution-android-sdk-home-no-android-sdks-were-found-under-the-specified-sdk-location I tried removing the genymotion.js file from all the SDK version that contained it but I still received the SDK error. On running 'ti info' with the file removed I got the following:
 |[ERROR] Failed to run command "info"
[ERROR] Error: Cannot find module 'titanium-sdk/lib/emulators/genymotion'
    at Module._resolveFilename (module.js:338:15)
    at Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/3.3.0.GA/cli/lib/genymotion.js:5:15)
    at Module._compile (module.js:456:26)
    at Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
---------------------------------------------
    at Object.run (/usr/local/lib/node_modules/titanium/node_modules/node-appc/lib/subprocess.js:59:8)
    at find (/usr/local/lib/node_modules/titanium/node_modules/node-appc/lib/subprocess.js:96:14)
    at q.process (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:731:21)
    at processImmediate (timers.js:330:15)
By turning off Genymotion in Titianium using the following command 'ti config genymotion.enabled false' the error disappeared and I could build my app to a device or using AVD. I would like to use Genymotion, when it is enabled and the genymotion.js file has been returned to the SDK folder I get the following error when running 'ti info'.
/usr/local/lib/node_modules/titanium/node_modules/longjohn/dist/longjohn.js:185
        throw e;
              ^
Error: Callback was already called.
    at /Users/paul/Library/Application Support/Titanium/mobilesdk/osx/3.3.0.GA/node_modules/async/lib/async.js:22:31
    at /Users/paul/Library/Application Support/Titanium/mobilesdk/osx/3.3.0.GA/node_modules/async/lib/async.js:229:17
    at /Users/paul/Library/Application Support/Titanium/mobilesdk/osx/3.3.0.GA/node_modules/async/lib/async.js:516:34
    at /Users/paul/Library/Application Support/Titanium/mobilesdk/osx/3.3.0.GA/node_modules/titanium-sdk/lib/emulators/genymotion.js:370:8
    at conn.exec.bufferUntilClose (/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/3.3.0.GA/node_modules/titanium-sdk/lib/adb.js:483:5)
    at Connection.<anonymous> (/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/3.3.0.GA/node_modules/titanium-sdk/lib/adb.js:257:11)
    at EventEmitter.emit (events.js:95:17)
    at writeAfterEnd (_stream_writable.js:132:10)
    at Writable.write (_stream_writable.js:178:5)
---------------------------------------------
    at Connection.exec (/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/3.3.0.GA/node_modules/titanium-sdk/lib/adb.js:253:9)
    at ADB.<anonymous> (/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/3.3.0.GA/node_modules/titanium-sdk/lib/adb.js:482:9)
    at Connection.<anonymous> (/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/3.3.0.GA/node_modules/titanium-sdk/lib/adb.js:247:4)
    at EventEmitter.emit (events.js:117:20)
    at _stream_readable.js:910:16
    at process._tickCallback (node.js:415:13)
I hope you can figure this out.

Comments

  1. Simon Buckingham 2014-07-23

    I have exactly the same problem. And what is more when doing automatic updates from Ti Studio 3.2.3 (to Ti 3.3) it goes through the process and then i find by running ti -v or alloy -v that the version has not been updated and so I have to do it manually with npm. Cheers Simon Buckingham
  2. Paul Flood 2014-07-24

    I've resolved this, the old virtual device images were causing the errors above. After deleting the Genymotion virtual devices and installing a new one the error disappeared. The virtual devices were version 1.0 and Genymotion was version 2.2. This worked fine before I updated to 3.3.0 but after the virtual devices needed to updated.
  3. Bert Grantges 2014-07-26

    I can confirm that I was having the same issue as described above - removing all 1.0 version emulaters fixed my issue as well.
  4. Chris Barber 2014-07-28

    Dupe of TIMOB-17344.

JSON Source