Android target: not installed and plugin installation failed Cordova
I'm having issues with my Cordova installation : I installed cordova, Android Studio, Android SDK, Java and defined JAVA_HOME="/usr/lib/jdk1.8.0_161/bin/java"
ANDROID_HOME="/home/myusername/Android/Sdk/platforms/android-24"
In /etc/environment
. When I go to a Cordova project and type cordova requirments android
, I have the error
Android Studio project detected
Requirements check results for android:
Java JDK: installed 1.8.0
Android SDK: installed true
Android target: not installed
android: Command failed with exit code ENOENT
Gradle: installed /usr/share/gradle/bin/gradle
When I change ANDROID_HOME
to /home/myusername/Android/Sdk/
, the error becomes
avdmanager: Command failed with exit code 1
I can't find the problem, I didn't found a good answer on the other posts...
android linux cordova
add a comment |
I'm having issues with my Cordova installation : I installed cordova, Android Studio, Android SDK, Java and defined JAVA_HOME="/usr/lib/jdk1.8.0_161/bin/java"
ANDROID_HOME="/home/myusername/Android/Sdk/platforms/android-24"
In /etc/environment
. When I go to a Cordova project and type cordova requirments android
, I have the error
Android Studio project detected
Requirements check results for android:
Java JDK: installed 1.8.0
Android SDK: installed true
Android target: not installed
android: Command failed with exit code ENOENT
Gradle: installed /usr/share/gradle/bin/gradle
When I change ANDROID_HOME
to /home/myusername/Android/Sdk/
, the error becomes
avdmanager: Command failed with exit code 1
I can't find the problem, I didn't found a good answer on the other posts...
android linux cordova
add a comment |
I'm having issues with my Cordova installation : I installed cordova, Android Studio, Android SDK, Java and defined JAVA_HOME="/usr/lib/jdk1.8.0_161/bin/java"
ANDROID_HOME="/home/myusername/Android/Sdk/platforms/android-24"
In /etc/environment
. When I go to a Cordova project and type cordova requirments android
, I have the error
Android Studio project detected
Requirements check results for android:
Java JDK: installed 1.8.0
Android SDK: installed true
Android target: not installed
android: Command failed with exit code ENOENT
Gradle: installed /usr/share/gradle/bin/gradle
When I change ANDROID_HOME
to /home/myusername/Android/Sdk/
, the error becomes
avdmanager: Command failed with exit code 1
I can't find the problem, I didn't found a good answer on the other posts...
android linux cordova
I'm having issues with my Cordova installation : I installed cordova, Android Studio, Android SDK, Java and defined JAVA_HOME="/usr/lib/jdk1.8.0_161/bin/java"
ANDROID_HOME="/home/myusername/Android/Sdk/platforms/android-24"
In /etc/environment
. When I go to a Cordova project and type cordova requirments android
, I have the error
Android Studio project detected
Requirements check results for android:
Java JDK: installed 1.8.0
Android SDK: installed true
Android target: not installed
android: Command failed with exit code ENOENT
Gradle: installed /usr/share/gradle/bin/gradle
When I change ANDROID_HOME
to /home/myusername/Android/Sdk/
, the error becomes
avdmanager: Command failed with exit code 1
I can't find the problem, I didn't found a good answer on the other posts...
android linux cordova
android linux cordova
asked Mar 21 '18 at 21:13
BDeliersBDeliers
4611
4611
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
You have two errors:
- the android sdk is not found
I think this is because ANDROID_HOME should be more like /home/myusername/Android/Sdk/
(the root of the sdk so that the cordova android platform will be able to choose the sdk version)
- android command is not found in the path
you need to add to the PATH the folder where the android command is located. This should be /home/myusername/Android/Sdk/tools
I did all you said, it's better, theandroid
command works well. Now I have still an error : the Android target is said not installed, and I have th enew erroravdmanager: Command failed with exit code 1
– BDeliers
Mar 23 '18 at 17:48
JAVA_HOME was not set proprely, now everything is okay, thanks !!!
– BDeliers
Mar 23 '18 at 17:55
Okay, I spoke à bit fast : all the requirements are satified, but when I runcordova building android
, nothing is generated... Do toi know why ?
– BDeliers
Mar 23 '18 at 18:02
the correct command iscordova build android
not building
– QuickFix
Mar 26 '18 at 7:27
add a comment |
i think you should try to change ANDROID_HOME to /home/myusername/Android/
Almost adding to PATH
:$HOME/Android/tools:$HOME/Android/build-tools:$Home/Android/platform-tools:$PATH
Otherwise i have export the GRADLE_HOME too.
Good Luck!
add a comment |
I finally found my error. I installed JAVA, but I didn't added it to the alternatives. The solution was to add my freshly installed JAVA version as main JAVA with sudo update-alternatives --config java
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
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/3.0/"u003ecc by-sa 3.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%2fstackoverflow.com%2fquestions%2f49416604%2fandroid-target-not-installed-and-plugin-installation-failed-cordova%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
You have two errors:
- the android sdk is not found
I think this is because ANDROID_HOME should be more like /home/myusername/Android/Sdk/
(the root of the sdk so that the cordova android platform will be able to choose the sdk version)
- android command is not found in the path
you need to add to the PATH the folder where the android command is located. This should be /home/myusername/Android/Sdk/tools
I did all you said, it's better, theandroid
command works well. Now I have still an error : the Android target is said not installed, and I have th enew erroravdmanager: Command failed with exit code 1
– BDeliers
Mar 23 '18 at 17:48
JAVA_HOME was not set proprely, now everything is okay, thanks !!!
– BDeliers
Mar 23 '18 at 17:55
Okay, I spoke à bit fast : all the requirements are satified, but when I runcordova building android
, nothing is generated... Do toi know why ?
– BDeliers
Mar 23 '18 at 18:02
the correct command iscordova build android
not building
– QuickFix
Mar 26 '18 at 7:27
add a comment |
You have two errors:
- the android sdk is not found
I think this is because ANDROID_HOME should be more like /home/myusername/Android/Sdk/
(the root of the sdk so that the cordova android platform will be able to choose the sdk version)
- android command is not found in the path
you need to add to the PATH the folder where the android command is located. This should be /home/myusername/Android/Sdk/tools
I did all you said, it's better, theandroid
command works well. Now I have still an error : the Android target is said not installed, and I have th enew erroravdmanager: Command failed with exit code 1
– BDeliers
Mar 23 '18 at 17:48
JAVA_HOME was not set proprely, now everything is okay, thanks !!!
– BDeliers
Mar 23 '18 at 17:55
Okay, I spoke à bit fast : all the requirements are satified, but when I runcordova building android
, nothing is generated... Do toi know why ?
– BDeliers
Mar 23 '18 at 18:02
the correct command iscordova build android
not building
– QuickFix
Mar 26 '18 at 7:27
add a comment |
You have two errors:
- the android sdk is not found
I think this is because ANDROID_HOME should be more like /home/myusername/Android/Sdk/
(the root of the sdk so that the cordova android platform will be able to choose the sdk version)
- android command is not found in the path
you need to add to the PATH the folder where the android command is located. This should be /home/myusername/Android/Sdk/tools
You have two errors:
- the android sdk is not found
I think this is because ANDROID_HOME should be more like /home/myusername/Android/Sdk/
(the root of the sdk so that the cordova android platform will be able to choose the sdk version)
- android command is not found in the path
you need to add to the PATH the folder where the android command is located. This should be /home/myusername/Android/Sdk/tools
answered Mar 22 '18 at 12:05
QuickFixQuickFix
10.4k22943
10.4k22943
I did all you said, it's better, theandroid
command works well. Now I have still an error : the Android target is said not installed, and I have th enew erroravdmanager: Command failed with exit code 1
– BDeliers
Mar 23 '18 at 17:48
JAVA_HOME was not set proprely, now everything is okay, thanks !!!
– BDeliers
Mar 23 '18 at 17:55
Okay, I spoke à bit fast : all the requirements are satified, but when I runcordova building android
, nothing is generated... Do toi know why ?
– BDeliers
Mar 23 '18 at 18:02
the correct command iscordova build android
not building
– QuickFix
Mar 26 '18 at 7:27
add a comment |
I did all you said, it's better, theandroid
command works well. Now I have still an error : the Android target is said not installed, and I have th enew erroravdmanager: Command failed with exit code 1
– BDeliers
Mar 23 '18 at 17:48
JAVA_HOME was not set proprely, now everything is okay, thanks !!!
– BDeliers
Mar 23 '18 at 17:55
Okay, I spoke à bit fast : all the requirements are satified, but when I runcordova building android
, nothing is generated... Do toi know why ?
– BDeliers
Mar 23 '18 at 18:02
the correct command iscordova build android
not building
– QuickFix
Mar 26 '18 at 7:27
I did all you said, it's better, the
android
command works well. Now I have still an error : the Android target is said not installed, and I have th enew error avdmanager: Command failed with exit code 1
– BDeliers
Mar 23 '18 at 17:48
I did all you said, it's better, the
android
command works well. Now I have still an error : the Android target is said not installed, and I have th enew error avdmanager: Command failed with exit code 1
– BDeliers
Mar 23 '18 at 17:48
JAVA_HOME was not set proprely, now everything is okay, thanks !!!
– BDeliers
Mar 23 '18 at 17:55
JAVA_HOME was not set proprely, now everything is okay, thanks !!!
– BDeliers
Mar 23 '18 at 17:55
Okay, I spoke à bit fast : all the requirements are satified, but when I run
cordova building android
, nothing is generated... Do toi know why ?– BDeliers
Mar 23 '18 at 18:02
Okay, I spoke à bit fast : all the requirements are satified, but when I run
cordova building android
, nothing is generated... Do toi know why ?– BDeliers
Mar 23 '18 at 18:02
the correct command is
cordova build android
not building– QuickFix
Mar 26 '18 at 7:27
the correct command is
cordova build android
not building– QuickFix
Mar 26 '18 at 7:27
add a comment |
i think you should try to change ANDROID_HOME to /home/myusername/Android/
Almost adding to PATH
:$HOME/Android/tools:$HOME/Android/build-tools:$Home/Android/platform-tools:$PATH
Otherwise i have export the GRADLE_HOME too.
Good Luck!
add a comment |
i think you should try to change ANDROID_HOME to /home/myusername/Android/
Almost adding to PATH
:$HOME/Android/tools:$HOME/Android/build-tools:$Home/Android/platform-tools:$PATH
Otherwise i have export the GRADLE_HOME too.
Good Luck!
add a comment |
i think you should try to change ANDROID_HOME to /home/myusername/Android/
Almost adding to PATH
:$HOME/Android/tools:$HOME/Android/build-tools:$Home/Android/platform-tools:$PATH
Otherwise i have export the GRADLE_HOME too.
Good Luck!
i think you should try to change ANDROID_HOME to /home/myusername/Android/
Almost adding to PATH
:$HOME/Android/tools:$HOME/Android/build-tools:$Home/Android/platform-tools:$PATH
Otherwise i have export the GRADLE_HOME too.
Good Luck!
answered Mar 22 '18 at 3:54
Hanh NguyenHanh Nguyen
11
11
add a comment |
add a comment |
I finally found my error. I installed JAVA, but I didn't added it to the alternatives. The solution was to add my freshly installed JAVA version as main JAVA with sudo update-alternatives --config java
add a comment |
I finally found my error. I installed JAVA, but I didn't added it to the alternatives. The solution was to add my freshly installed JAVA version as main JAVA with sudo update-alternatives --config java
add a comment |
I finally found my error. I installed JAVA, but I didn't added it to the alternatives. The solution was to add my freshly installed JAVA version as main JAVA with sudo update-alternatives --config java
I finally found my error. I installed JAVA, but I didn't added it to the alternatives. The solution was to add my freshly installed JAVA version as main JAVA with sudo update-alternatives --config java
answered Sep 11 '18 at 9:09
BDeliersBDeliers
4611
4611
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- 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%2fstackoverflow.com%2fquestions%2f49416604%2fandroid-target-not-installed-and-plugin-installation-failed-cordova%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