OS: Ubuntu 14.04 quadro: Meteor 1.1.0.2 Nome applicazione: SongofyMeteor: ANDROID_HOME non è impostato, anche se esso è impostato
Ecco l'output di meteor install-sdk android
meteor install-sdk android
✓ Found Android bundle
✓ A JDK is installed
✓ Found Android Platform tools
✓ Found Android Build Tools
✓ Found Android 19 API
✓ Found suitable Android x86 image
✓ 'meteor' android virtual device (AVD) found
✗ Android emulator acceleration is not installed
(The Android emulator will be very slow without acceleration)
Platform requirements not yet met
Please follow the instructions here:
https://github.com/meteor/meteor/wiki/Mobile-Dev-Install:-Android-on-Linux#haxm
I cd nella directory utilizzando
cd Desktop/songofy
poi digitare sudo add-platform android
, e mi chiede di accettare l'eprmission e poi questo accade:
`You must agree to the terms to proceed.
Do you agree (Y/n)? Y
/home/abhishek/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/fibers/future.js:245
throw(ex);
^
Error: Error running /home/abhishek/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/cordova-scripts/cordova.sh
/home/abhishek/.meteor/android_bundle/.cordova/lib/npm_cache/cordova-android/3.6.4/package/bin/node_modules/q/q.js:126
throw e;
^
Error: ANDROID_HOME is not set and "android" command not in your PATH. You must fulfill at least one of these conditions.
Aggiungo la variabile ANDROID_HOME utilizzando questo.
[email protected]:~/Desktop/songofy$ export ANDROID_HOME=~/.meteor/android_bundle/android-sdk
[email protected]:~/Desktop/songofy$ export PATH=$ANDROID_HOME/tools:$PATH
[email protected]:~/Desktop/songofy$ export PATH=$ANDROID_HOME/platform-tools:$PATH
Qual è il problema con Cordova e Meteor?
si dovrebbe aggiungere le sue dichiarazioni di esportazione al tuo '.bashrc' in modo che vengano eseguiti ogni volta che si apre il terminale. Questa potrebbe essere la soluzione al tuo problema – mjkaufer
Ho provato questa [soluzione meteor] (https://github.com/meteor/meteor/wiki/Mobile-Dev-Install:-Android-on-Linux#libs32). Ha funzionato per il primo errore, che significa tutte le zecche per la parte di installazione, ma non riesco ancora a far funzionare Android. 'ANDROID_HOME non è impostato e il comando" android "non si trova nel PATH. Devi soddisfare almeno una di queste condizioni.'Ricevo ancora errore quando provo ad aggiungere la piattaforma Android. 'ANDROID_HOME' è impostato e funziona anche il comando android. Sto appena iniziando con la meteora e questo è un grosso problema per me. Hai risolto questo? Sto usando Ububtu 15.0.2 BTW – developernaren