Android build error


#1

Build for android fails with this error:

[root@silencer ~]# java -version
java version "1.7.0_71"
OpenJDK Runtime Environment (fedora-2.5.3.0.fc19-i386 u71-b14)
OpenJDK Server VM (build 24.65-b04, mixed mode)

[root@silencer ~]# meteor --version
Meteor 1.1.0.2

[root@silencer ~]# meteor create test1
test1: created.

[root@silencer ~]# cd test1                   
[root@silencer test1]# meteor add-platform android
android: added platform

[root@silencer test1]# meteor build ../build --server=http://192.168.0.2 --debug
                                                                                
/root/.meteor/packages/meteor-tool/.1.1.3.smfmcz++os.linux.x86_32+web.browser+web.cordova/mt-os.linux.x86_32/dev_bundle/lib/node_modules/fibers/future.js:278
                        throw(ex);
                              ^
Error: ENOENT, readdir '/root/test1/.meteor/local/cordova-build/platforms/android/ant-build'
    at Object.Future.wait (/root/.meteor/packages/meteor-tool/.1.1.3.smfmcz++os.linux.x86_32+web.browser+web.cordova/mt-os.linux.x86_32/dev_bundle/lib/node_modules/fibers/future.js:398:15)
    at Object.wrapper (/root/.meteor/packages/meteor-tool/.1.1.3.smfmcz++os.linux.x86_32+web.browser+web.cordova/mt-os.linux.x86_32/tools/files.js:1350:24)
    at findApkPath (/root/.meteor/packages/meteor-tool/.1.1.3.smfmcz++os.linux.x86_32+web.browser+web.cordova/mt-os.linux.x86_32/tools/commands.js:965:30)
    at /root/.meteor/packages/meteor-tool/.1.1.3.smfmcz++os.linux.x86_32+web.browser+web.cordova/mt-os.linux.x86_32/tools/commands.js:950:21
    at Array.forEach (native)
    at Function._.each._.forEach (/root/.meteor/packages/meteor-tool/.1.1.3.smfmcz++os.linux.x86_32+web.browser+web.cordova/mt-os.linux.x86_32/dev_bundle/lib/node_modules/underscore/underscore.js:79:11)
    at buildCommand (/root/.meteor/packages/meteor-tool/.1.1.3.smfmcz++os.linux.x86_32+web.browser+web.cordova/mt-os.linux.x86_32/tools/commands.js:933:29)
    at Command.main.registerCommand._.extend.name [as func] (/root/.meteor/packages/meteor-tool/.1.1.3.smfmcz++os.linux.x86_32+web.browser+web.cordova/mt-os.linux.x86_32/tools/commands.js:746:12)
    at /root/.meteor/packages/meteor-tool/.1.1.3.smfmcz++os.linux.x86_32+web.browser+web.cordova/mt-os.linux.x86_32/tools/main.js:1363:23
    - - - - -

Please tell how to fix


#2

Any updates on this?


#3

also getting this now. Did anybody find the problem?


#4

now it is working again, however, I dont have any idea what caused this - did not do anything besides removing and adding platforms again (which did not fix it for me before).


#5

failing again. Figured that when I remove Android platform:
meteor remove-platform android
and then run
meteor build .build --server https://myserver.com
it still produces the android build (without errors) the first time I run the command. Subsequent runs dont create android project


#6

Okay. The following worked for me and I am not sure what actually solves it - but my guess is that it is a “rights” problem, because only running the command in sudo mode fixed it for me:

  1. delete .meteor/local/cordova-build/
  2. sudo meteor remove-platform android
  3. sudo meteor add-platform android
  4. sudo meteor build .build --server http://myserver.com

sorry for the message spamming …


#7

I get the same error when I try to build android on mac osx. I have no problem building IOS however. Building android on my linux machine is working flawlessly.


#8

Same problem here.

  /home/user/.meteor/packages/meteor-tool/.1.1.4.1ihokhg++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/fibers/future.js:278
                        throw(ex);
                              ^
Error: ENOENT, readdir '/home/user/appdemo/.meteor/local/cordova-build/platforms/android/ant-build'
    at Object.Future.wait (/home/user/.meteor/packages/meteor-tool/.1.1.4.1ihokhg++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/fibers/future.js:398:15)

Any ideas ?


#9

Me too!

meteor build …/redpass-builds --server http://redpass.portaltecsinapse.com.br --mobile-settings settings.json

/Users/allandequeiroz/.meteor/packages/meteor-tool/.1.1.4.1oj1893++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/allandequeiroz/devtools/private/tecsinapse/redpass/.meteor/local/cordova-build/platforms/android/ant-build’
at Object.Future.wait (/Users/allandequeiroz/.meteor/packages/meteor-tool/.1.1.4.1oj1893++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/allandequeiroz/.meteor/packages/meteor-tool/.1.1.4.1oj1893++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/tools/files.js:1350:24)
at findApkPath (/Users/allandequeiroz/.meteor/packages/meteor-tool/.1.1.4.1oj1893++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/tools/commands.js:965:30)
at /Users/allandequeiroz/.meteor/packages/meteor-tool/.1.1.4.1oj1893++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/tools/commands.js:950:21
at Array.forEach (native)
at Function..each..forEach (/Users/allandequeiroz/.meteor/packages/meteor-tool/.1.1.4.1oj1893++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/allandequeiroz/.meteor/packages/meteor-tool/.1.1.4.1oj1893++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/allandequeiroz/.meteor/packages/meteor-tool/.1.1.4.1oj1893++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/tools/commands.js:746:12)
at /Users/allandequeiroz/.meteor/packages/meteor-tool/.1.1.4.1oj1893++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/tools/main.js:1363:23


#10

It worked for me
http://allandequeiroz.com/post/allan-de-queiroz-meteor--error-enoent/AZa37pWKNnZmRGHf7