^ Error: ENOENT

If you are trying to build an android apk and is getting this error:

meteor build ../redpass-builds --server=192.168.0.2:3000 --mobile-settings=settings.json

/Users/allanqueiroz/.meteor/packages/meteor-tool/.1.1.4.2l3p0l++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/fibers/future.js:278 throw(ex);

^ Error: ENOENT, readdir '/Users/allanqueiroz/devtools/private/tecsinapse/redpass/.meteor/local/cordova-build/platforms/android/ant-build' at Object.Future.wait

(/Users/allanqueiroz/.meteor/packages/meteor-tool/.1.1.4.2l3p0l++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/fibers/future.js:398:15) at

Object.wrapper (/Users/allanqueiroz/.meteor/packages/meteor-tool/.1.1.4.2l3p0l++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/tools/files.js:1350:24) at findApkPath

(/Users/allanqueiroz/.meteor/packages/meteor-tool/.1.1.4.2l3p0l++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/tools/commands.js:965:30) at

/Users/allanqueiroz/.meteor/packages/meteor-tool/.1.1.4.2l3p0l++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/tools/commands.js:950:21 at Array.forEach (native) #alias

mvim="open -a /Applications/MacVim.app" at Function._.each._.forEach (/Users/allanqueiroz/.meteor/packages/meteor-tool/.1.1.4.2l3p0l++os.osx.x86_64+web.browser+web.cordova/mt-

os.osx.x86_64/dev_bundle/lib/node_modules/underscore/underscore.js:79:11) at buildCommand (/Users/allanqueiroz/.meteor/packages/meteor-

tool/.1.1.4.2l3p0l++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/tools/commands.js:933:29) at Command.main.registerCommand._.extend.name [as func]

(/Users/allanqueiroz/.meteor/packages/meteor-tool/.1.1.4.2l3p0l++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/tools/commands.js:746:12) at

/Users/allanqueiroz/.meteor/packages/meteor-tool/.1.1.4.2l3p0l++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/tools/main.js:1363:23

Just change your Java version, this thing is trolling you, in my case I just downgrade Java version to 1.7.0_79 and it works!

Allan de Queiroz

Allan de Queiroz
London based software engineer

XServer forward from Linux text mode for Headless purposes.

Hello, this post is about XServer forward from Linux text mode, **not ssh forward, anything related to VNC** or things like that.Recently...… Continue reading