Problem ANDROID_HOME when build APK iOnic“FreeType NOTFOUND” error when trying to build Okular from sourceI have a problem when using “export” commandCan not build Ubuntu Touch project in Ubuntu SDKproblem to update bash profileHow to test a javascript scope on a real phone?Can't build click package (Ubuntu SDK)sudo ionic run android not workingfailed find 'ANDROID_HOME' environment variableANDROID_HOME environment variable
Is Fox News not classified as a news channel?
Can the US Senate's Hong Kong bill be treated as foreign interference?
Is it necessary to wipe out vile man-eating dragons?
Can a Rogue exploit a tiny familiar for automatic Sneak Attack in melee?
A bob hanging in an accelerating train moves backward. What is the force moving it backward?
Why would a plane perform 360° turns to balance fuel on the ground?
Miniseries in post-rapture US with good/evil conflict
Highest scoring words based on distance travelled along the alphabet
If password expiration is applied, should door-lock expiration be applied too?
SOQL subquery access variables
Starting with D&D: Starter Set vs Dungeon Master's Guide
What does "Massage with salt" mean in a recipe?
Do gray aliens exist in Star Trek?
Producing a print layout using 2nd map view in QGIS
A Ukrainian idiom meaning "on one's last legs"
How can I obtain a Cauchy distribution from two standard normal distributions?
Correct equation for describing *exactly* the output of a current follower
Do one quarter of Swedes named 'Ali' have a criminal record?
Why does E7 sharp 9 have a G?
Is Chika Ofili's method for checking divisibility for 7 a "new discovery" in math?
Contacted by head of school regarding an issue - should I be worried?
Is my friend from Egypt with a Schengen visa allowed to visit the UK?
While I have six eyes, I don't need an optician
Match blood types in C
Problem ANDROID_HOME when build APK iOnic
“FreeType NOTFOUND” error when trying to build Okular from sourceI have a problem when using “export” commandCan not build Ubuntu Touch project in Ubuntu SDKproblem to update bash profileHow to test a javascript scope on a real phone?Can't build click package (Ubuntu SDK)sudo ionic run android not workingfailed find 'ANDROID_HOME' environment variableANDROID_HOME environment variable
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;
I have a problem when I try build apk from my iOnic app.
When I send $sudo ionic cordova build --release android --verbose
Return this:
**Failed to find 'ANDROID_HOME' environment variable.** Try setting it manually.
**Failed to find 'android' command in your 'PATH'.**
Try update your 'PATH' to include path to valid SDK directory.
CordovaError: Failed to find 'ANDROID_HOME' environment variable. Try setting it manually.
Failed to find 'android' command in your 'PATH'. Try update your 'PATH' to include path to valid SDK directory.
at /home/sion/lab/mifasol_dd/mifasol-beta/platforms/android/cordova/lib/check_reqs.js:297:19
at _fulfilled (/home/sion/lab/mifasol_dd/mifasol-beta/platforms/android/cordova/node_modules/q/q.js:834:54)
at self.promiseDispatch.done (/home/sion/lab/mifasol_dd/mifasol-beta/platforms/android/cordova/node_modules/q/q.js:863:30)
at Promise.promise.promiseDispatch (/home/sion/lab/mifasol_dd/mifasol-beta/platforms/android/cordova/node_modules/q/q.js:796:13)
at /home/sion/lab/mifasol_dd/mifasol-beta/platforms/android/cordova/node_modules/q/q.js:857:14
at runSingle (/home/sion/lab/mifasol_dd/mifasol-beta/platforms/android/cordova/node_modules/q/q.js:137:13)
at flush (/home/sion/lab/mifasol_dd/mifasol-beta/platforms/android/cordova/node_modules/q/q.js:125:13)
at _combinedTickCallback (internal/process/next_tick.js:131:7)
at process._tickCallback (internal/process/next_tick.js:180:9)
[ERROR] An error occurred while running subprocess cordova.
cordova build android --release --verbose exited with exit code 1.
When I check ANDROID_HOME , there are a correct PATH
ANDROID_HOME=/home/sion/Android/Sdk
I don't know what happend, Can you help me please?
Regards
environment-variables ubuntu-sdk
add a comment
|
I have a problem when I try build apk from my iOnic app.
When I send $sudo ionic cordova build --release android --verbose
Return this:
**Failed to find 'ANDROID_HOME' environment variable.** Try setting it manually.
**Failed to find 'android' command in your 'PATH'.**
Try update your 'PATH' to include path to valid SDK directory.
CordovaError: Failed to find 'ANDROID_HOME' environment variable. Try setting it manually.
Failed to find 'android' command in your 'PATH'. Try update your 'PATH' to include path to valid SDK directory.
at /home/sion/lab/mifasol_dd/mifasol-beta/platforms/android/cordova/lib/check_reqs.js:297:19
at _fulfilled (/home/sion/lab/mifasol_dd/mifasol-beta/platforms/android/cordova/node_modules/q/q.js:834:54)
at self.promiseDispatch.done (/home/sion/lab/mifasol_dd/mifasol-beta/platforms/android/cordova/node_modules/q/q.js:863:30)
at Promise.promise.promiseDispatch (/home/sion/lab/mifasol_dd/mifasol-beta/platforms/android/cordova/node_modules/q/q.js:796:13)
at /home/sion/lab/mifasol_dd/mifasol-beta/platforms/android/cordova/node_modules/q/q.js:857:14
at runSingle (/home/sion/lab/mifasol_dd/mifasol-beta/platforms/android/cordova/node_modules/q/q.js:137:13)
at flush (/home/sion/lab/mifasol_dd/mifasol-beta/platforms/android/cordova/node_modules/q/q.js:125:13)
at _combinedTickCallback (internal/process/next_tick.js:131:7)
at process._tickCallback (internal/process/next_tick.js:180:9)
[ERROR] An error occurred while running subprocess cordova.
cordova build android --release --verbose exited with exit code 1.
When I check ANDROID_HOME , there are a correct PATH
ANDROID_HOME=/home/sion/Android/Sdk
I don't know what happend, Can you help me please?
Regards
environment-variables ubuntu-sdk
add a comment
|
I have a problem when I try build apk from my iOnic app.
When I send $sudo ionic cordova build --release android --verbose
Return this:
**Failed to find 'ANDROID_HOME' environment variable.** Try setting it manually.
**Failed to find 'android' command in your 'PATH'.**
Try update your 'PATH' to include path to valid SDK directory.
CordovaError: Failed to find 'ANDROID_HOME' environment variable. Try setting it manually.
Failed to find 'android' command in your 'PATH'. Try update your 'PATH' to include path to valid SDK directory.
at /home/sion/lab/mifasol_dd/mifasol-beta/platforms/android/cordova/lib/check_reqs.js:297:19
at _fulfilled (/home/sion/lab/mifasol_dd/mifasol-beta/platforms/android/cordova/node_modules/q/q.js:834:54)
at self.promiseDispatch.done (/home/sion/lab/mifasol_dd/mifasol-beta/platforms/android/cordova/node_modules/q/q.js:863:30)
at Promise.promise.promiseDispatch (/home/sion/lab/mifasol_dd/mifasol-beta/platforms/android/cordova/node_modules/q/q.js:796:13)
at /home/sion/lab/mifasol_dd/mifasol-beta/platforms/android/cordova/node_modules/q/q.js:857:14
at runSingle (/home/sion/lab/mifasol_dd/mifasol-beta/platforms/android/cordova/node_modules/q/q.js:137:13)
at flush (/home/sion/lab/mifasol_dd/mifasol-beta/platforms/android/cordova/node_modules/q/q.js:125:13)
at _combinedTickCallback (internal/process/next_tick.js:131:7)
at process._tickCallback (internal/process/next_tick.js:180:9)
[ERROR] An error occurred while running subprocess cordova.
cordova build android --release --verbose exited with exit code 1.
When I check ANDROID_HOME , there are a correct PATH
ANDROID_HOME=/home/sion/Android/Sdk
I don't know what happend, Can you help me please?
Regards
environment-variables ubuntu-sdk
I have a problem when I try build apk from my iOnic app.
When I send $sudo ionic cordova build --release android --verbose
Return this:
**Failed to find 'ANDROID_HOME' environment variable.** Try setting it manually.
**Failed to find 'android' command in your 'PATH'.**
Try update your 'PATH' to include path to valid SDK directory.
CordovaError: Failed to find 'ANDROID_HOME' environment variable. Try setting it manually.
Failed to find 'android' command in your 'PATH'. Try update your 'PATH' to include path to valid SDK directory.
at /home/sion/lab/mifasol_dd/mifasol-beta/platforms/android/cordova/lib/check_reqs.js:297:19
at _fulfilled (/home/sion/lab/mifasol_dd/mifasol-beta/platforms/android/cordova/node_modules/q/q.js:834:54)
at self.promiseDispatch.done (/home/sion/lab/mifasol_dd/mifasol-beta/platforms/android/cordova/node_modules/q/q.js:863:30)
at Promise.promise.promiseDispatch (/home/sion/lab/mifasol_dd/mifasol-beta/platforms/android/cordova/node_modules/q/q.js:796:13)
at /home/sion/lab/mifasol_dd/mifasol-beta/platforms/android/cordova/node_modules/q/q.js:857:14
at runSingle (/home/sion/lab/mifasol_dd/mifasol-beta/platforms/android/cordova/node_modules/q/q.js:137:13)
at flush (/home/sion/lab/mifasol_dd/mifasol-beta/platforms/android/cordova/node_modules/q/q.js:125:13)
at _combinedTickCallback (internal/process/next_tick.js:131:7)
at process._tickCallback (internal/process/next_tick.js:180:9)
[ERROR] An error occurred while running subprocess cordova.
cordova build android --release --verbose exited with exit code 1.
When I check ANDROID_HOME , there are a correct PATH
ANDROID_HOME=/home/sion/Android/Sdk
I don't know what happend, Can you help me please?
Regards
environment-variables ubuntu-sdk
environment-variables ubuntu-sdk
edited Sep 16 at 20:57
waltinator
25.5k7 gold badges43 silver badges74 bronze badges
25.5k7 gold badges43 silver badges74 bronze badges
asked Sep 16 at 18:06
David DiazDavid Diaz
1
1
add a comment
|
add a comment
|
1 Answer
1
active
oldest
votes
When you invoke any command via sudo
, sudo
, for security reasons, resets the command's environment. See man sudo;man sudoers
.
Must you use sudo
for this? Why?
Could you achieve the same thing by finding the group access, and adding yourself to the group?
ls -ld
sudo adduser $USER group
For now, and this is NOT the recommended way (because it's probably incomplete),
sudo env PATH=$PATH ANDROID_HOME=$ANDROID_HOME $(type -p ionic) cordoba ...
add a comment
|
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1174586%2fproblem-android-home-when-build-apk-ionic%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
When you invoke any command via sudo
, sudo
, for security reasons, resets the command's environment. See man sudo;man sudoers
.
Must you use sudo
for this? Why?
Could you achieve the same thing by finding the group access, and adding yourself to the group?
ls -ld
sudo adduser $USER group
For now, and this is NOT the recommended way (because it's probably incomplete),
sudo env PATH=$PATH ANDROID_HOME=$ANDROID_HOME $(type -p ionic) cordoba ...
add a comment
|
When you invoke any command via sudo
, sudo
, for security reasons, resets the command's environment. See man sudo;man sudoers
.
Must you use sudo
for this? Why?
Could you achieve the same thing by finding the group access, and adding yourself to the group?
ls -ld
sudo adduser $USER group
For now, and this is NOT the recommended way (because it's probably incomplete),
sudo env PATH=$PATH ANDROID_HOME=$ANDROID_HOME $(type -p ionic) cordoba ...
add a comment
|
When you invoke any command via sudo
, sudo
, for security reasons, resets the command's environment. See man sudo;man sudoers
.
Must you use sudo
for this? Why?
Could you achieve the same thing by finding the group access, and adding yourself to the group?
ls -ld
sudo adduser $USER group
For now, and this is NOT the recommended way (because it's probably incomplete),
sudo env PATH=$PATH ANDROID_HOME=$ANDROID_HOME $(type -p ionic) cordoba ...
When you invoke any command via sudo
, sudo
, for security reasons, resets the command's environment. See man sudo;man sudoers
.
Must you use sudo
for this? Why?
Could you achieve the same thing by finding the group access, and adding yourself to the group?
ls -ld
sudo adduser $USER group
For now, and this is NOT the recommended way (because it's probably incomplete),
sudo env PATH=$PATH ANDROID_HOME=$ANDROID_HOME $(type -p ionic) cordoba ...
edited Sep 16 at 20:55
answered Sep 16 at 20:48
waltinatorwaltinator
25.5k7 gold badges43 silver badges74 bronze badges
25.5k7 gold badges43 silver badges74 bronze badges
add a comment
|
add a comment
|
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1174586%2fproblem-android-home-when-build-apk-ionic%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown