[SOLVED] Run Meteor app on Android Device


#1

Hi,

I have installed Meteor and Android Studio on virtual machine Ubuntu with Bridge Network.

I can run an application with Android Studio on my device successfully.

But when I try to run a meteor app on my android device, the application freeze on "Starting app on Android Device ". Here is the trace :

meteor run android-device --mobile-server http://192.168.8.105:3000 --settings settings.json

[[[[[ ~/meteor/routes ]]]]]

=> Started proxy.
=> Started MongoDB.

WARNING: You are testing your app on a remote device. For the mobile app to be
able to connect to the local server, make sure your device is on the
same network, and that the network configuration allows clients to
talk to each other (no client isolation).
(STDERR) Note: you are using a pure-JavaScript implementation of bcrypt.
(STDERR) While this implementation will work correctly, it is known to be
(STDERR) approximately three times slower than the native implementation.
(STDERR) In order to use the native implementation instead, run
(STDERR)
(STDERR) meteor npm install --save bcrypt
(STDERR)
(STDERR) in the root directory of your application.
=> Started your app.

=> App running at: http://localhost:3000/
Starting app on Android Device

My configuration :
Ubuntu 16.04 (Guest)
Windows 10 (Host)
Meteor 1.4.2

He is my packages :

accounts-base@1.2.14
accounts-password@1.3.1
aldeed:collection2@2.10.0
aldeed:collection2-core@1.2.0
aldeed:schema-deny@1.1.0
aldeed:schema-index@1.1.0
aldeed:simple-schema@1.5.3
allow-deny@1.0.5
anti:i18n@0.4.3
autoupdate@1.3.12
babel-compiler@6.13.0
babel-runtime@0.1.12
base64@1.0.10
binary-heap@1.0.10
blaze@2.1.9
blaze-html-templates@1.0.5
blaze-tools@1.0.10
boilerplate-generator@1.0.11
caching-compiler@1.1.8
caching-html-compiler@1.0.7
callback-hook@1.0.10
cfs:http-methods@0.0.32
check@1.2.4
coffeescript@1.11.1_2
ddp@1.2.5
ddp-client@1.3.2
ddp-common@1.2.7
ddp-rate-limiter@1.0.6
ddp-server@1.3.11
deps@1.0.12
diff-sequence@1.0.7
ecmascript@0.5.9
ecmascript-runtime@0.3.15
ejson@1.0.13
email@1.1.18
es5-shim@4.6.15
fastclick@1.0.13
geojson-utils@1.0.10
hot-code-push@1.0.4
html-tools@1.0.11
htmljs@1.0.11
http@1.2.10
ian:accounts-ui-bootstrap-3@1.2.89
id-map@1.0.9
insecure@1.0.7
joshdellay:meteor-ladda-bootstrap@1.0.5
jquery@1.11.10
kadira:blaze-layout@2.3.0
kadira:flow-router@2.12.1
launch-screen@1.1.0
livedata@1.0.18
localstorage@1.0.12
logging@1.1.16
mdg:validation-error@0.5.1
meteor@1.6.0
meteor-base@1.0.4
meteorhacks:async@1.0.0
meteorhacks:npm@1.5.0
meteorspark:util@0.2.0
minifier-css@1.2.15
minifier-js@1.2.15
minimongo@1.0.18
mobile-experience@1.0.4
mobile-status-bar@1.0.13
modules@0.7.7
modules-runtime@0.7.7
mongo@1.1.14
mongo-id@1.0.6
npm-bcrypt@0.9.2
npm-container@1.2.0
npm-mongo@2.2.11_2
observe-sequence@1.0.14
ordered-dict@1.0.9
promise@0.8.8
raix:eventemitter@0.1.3
random@1.0.10
rate-limit@1.0.6
reactive-dict@1.1.8
reactive-var@1.0.11
reload@1.1.11
retry@1.0.9
routepolicy@1.0.12
service-configuration@1.0.11
session@1.1.7
sha@1.0.9
shell-server@0.2.1
spacebars@1.0.13
spacebars-compiler@1.0.13
srp@1.0.10
standard-minifier-css@1.3.2
standard-minifier-js@1.2.1
stylus@2.513.6
tap:i18n@1.8.2
templating@1.2.15
templating-compiler@1.2.15
templating-runtime@1.2.15
templating-tools@1.0.5
tracker@1.1.1
twbs:bootstrap@3.3.6
ui@1.0.12
underscore@1.0.10
url@1.0.11
webapp@1.3.12
webapp-hashing@1.0.9

Thanks in advance


#2

With option --verbose, I saw that the problem was linked by downloading gradle zip.
So i downloaded it manually and i put the path in variable : CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL