Requirements check failed for JDK 1.8











up vote
0
down vote

favorite












I try to compile a ionic android application for the first time but cordova fail to compile and i can't find why !




  • I've installed openJDK and set $JAVA_HOME in my .bashrc

  • I've installed android studio and set $ANDROID_HOME in my .bashrc


but when I run ionic cordova build android --verbose or ionic cordova build android --verbose, command fail with this errors :



No scripts found for hook "before_build".
No scripts found for hook "before_prepare".
Checking config.xml and package.json for saved platforms that haven't been added to the project
Config.xml and package.json platforms are the same. No pkg.json modification.
Package.json and config.xml platforms are different. Updating config.xml with most current list of platforms.
PlatformApi successfully found for platform android
Android Studio project detected
Checking config.xml for saved plugins that haven't been added to the project
Checking for any plugins added to the project that have not been installed in android platform
No differences found between plugins added to project and installed in android platform. Continuing...
Generating platform-specific config.xml from defaults for android at /var/ionic/cauterets/platforms/android/app/src/main/res/xml/config.xml
Merging project's config.xml into platform-specific android config.xml
Merging and updating files from [www, platforms/android/platform_www] to platforms/android/app/src/main/assets/www
Wrote out android application name "MyApp" to /var/ionic/cauterets/platforms/android/app/src/main/res/values/strings.xml
android-versionCode not found in config.xml. Generating a code based on version in config.xml (0.0.1): 1
Wrote out Android package name "io.ionic.starter" to /var/ionic/cauterets/platforms/android/app/src/main/java/io/ionic/starter/MainActivity.java
Updating icons at platforms/android/app/src/main/res
Updating splash screens at platforms/android/app/src/main/res
This app does not have additional resource files defined
Prepared android project successfully
No scripts found for hook "after_prepare".
No scripts found for hook "before_compile".
ANDROID_HOME=/home/agenceho5/Android/Sdk
JAVA_HOME=/usr/lib/jvm/java-1.11.0-openjdk-amd64
Requirements check failed for JDK 1.8
CordovaError: Requirements check failed for JDK 1.8
at /var/ionic/cauterets/platforms/android/cordova/lib/check_reqs.js:362:19
at _fulfilled (/var/ionic/cauterets/platforms/android/cordova/node_modules/q/q.js:834:54)
at self.promiseDispatch.done (/var/ionic/cauterets/platforms/android/cordova/node_modules/q/q.js:863:30)
at Promise.promise.promiseDispatch (/var/ionic/cauterets/platforms/android/cordova/node_modules/q/q.js:796:13)
at /var/ionic/cauterets/platforms/android/cordova/node_modules/q/q.js:604:44
at runSingle (/var/ionic/cauterets/platforms/android/cordova/node_modules/q/q.js:137:13)
at flush (/var/ionic/cauterets/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)



Where is the problem ?
Thank's in advance



EDIT : I've also tryed with openjdk-8 but i've exactly the same error










share|improve this question
























  • this comment seam to resolve this problem : github.com/ionic-team/ionic-cli/issues/…. After i've a second problem with grabble who's solved by a simple sudo apt install gradle
    – Fabien
    2 days ago















up vote
0
down vote

favorite












I try to compile a ionic android application for the first time but cordova fail to compile and i can't find why !




  • I've installed openJDK and set $JAVA_HOME in my .bashrc

  • I've installed android studio and set $ANDROID_HOME in my .bashrc


but when I run ionic cordova build android --verbose or ionic cordova build android --verbose, command fail with this errors :



No scripts found for hook "before_build".
No scripts found for hook "before_prepare".
Checking config.xml and package.json for saved platforms that haven't been added to the project
Config.xml and package.json platforms are the same. No pkg.json modification.
Package.json and config.xml platforms are different. Updating config.xml with most current list of platforms.
PlatformApi successfully found for platform android
Android Studio project detected
Checking config.xml for saved plugins that haven't been added to the project
Checking for any plugins added to the project that have not been installed in android platform
No differences found between plugins added to project and installed in android platform. Continuing...
Generating platform-specific config.xml from defaults for android at /var/ionic/cauterets/platforms/android/app/src/main/res/xml/config.xml
Merging project's config.xml into platform-specific android config.xml
Merging and updating files from [www, platforms/android/platform_www] to platforms/android/app/src/main/assets/www
Wrote out android application name "MyApp" to /var/ionic/cauterets/platforms/android/app/src/main/res/values/strings.xml
android-versionCode not found in config.xml. Generating a code based on version in config.xml (0.0.1): 1
Wrote out Android package name "io.ionic.starter" to /var/ionic/cauterets/platforms/android/app/src/main/java/io/ionic/starter/MainActivity.java
Updating icons at platforms/android/app/src/main/res
Updating splash screens at platforms/android/app/src/main/res
This app does not have additional resource files defined
Prepared android project successfully
No scripts found for hook "after_prepare".
No scripts found for hook "before_compile".
ANDROID_HOME=/home/agenceho5/Android/Sdk
JAVA_HOME=/usr/lib/jvm/java-1.11.0-openjdk-amd64
Requirements check failed for JDK 1.8
CordovaError: Requirements check failed for JDK 1.8
at /var/ionic/cauterets/platforms/android/cordova/lib/check_reqs.js:362:19
at _fulfilled (/var/ionic/cauterets/platforms/android/cordova/node_modules/q/q.js:834:54)
at self.promiseDispatch.done (/var/ionic/cauterets/platforms/android/cordova/node_modules/q/q.js:863:30)
at Promise.promise.promiseDispatch (/var/ionic/cauterets/platforms/android/cordova/node_modules/q/q.js:796:13)
at /var/ionic/cauterets/platforms/android/cordova/node_modules/q/q.js:604:44
at runSingle (/var/ionic/cauterets/platforms/android/cordova/node_modules/q/q.js:137:13)
at flush (/var/ionic/cauterets/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)



Where is the problem ?
Thank's in advance



EDIT : I've also tryed with openjdk-8 but i've exactly the same error










share|improve this question
























  • this comment seam to resolve this problem : github.com/ionic-team/ionic-cli/issues/…. After i've a second problem with grabble who's solved by a simple sudo apt install gradle
    – Fabien
    2 days ago













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I try to compile a ionic android application for the first time but cordova fail to compile and i can't find why !




  • I've installed openJDK and set $JAVA_HOME in my .bashrc

  • I've installed android studio and set $ANDROID_HOME in my .bashrc


but when I run ionic cordova build android --verbose or ionic cordova build android --verbose, command fail with this errors :



No scripts found for hook "before_build".
No scripts found for hook "before_prepare".
Checking config.xml and package.json for saved platforms that haven't been added to the project
Config.xml and package.json platforms are the same. No pkg.json modification.
Package.json and config.xml platforms are different. Updating config.xml with most current list of platforms.
PlatformApi successfully found for platform android
Android Studio project detected
Checking config.xml for saved plugins that haven't been added to the project
Checking for any plugins added to the project that have not been installed in android platform
No differences found between plugins added to project and installed in android platform. Continuing...
Generating platform-specific config.xml from defaults for android at /var/ionic/cauterets/platforms/android/app/src/main/res/xml/config.xml
Merging project's config.xml into platform-specific android config.xml
Merging and updating files from [www, platforms/android/platform_www] to platforms/android/app/src/main/assets/www
Wrote out android application name "MyApp" to /var/ionic/cauterets/platforms/android/app/src/main/res/values/strings.xml
android-versionCode not found in config.xml. Generating a code based on version in config.xml (0.0.1): 1
Wrote out Android package name "io.ionic.starter" to /var/ionic/cauterets/platforms/android/app/src/main/java/io/ionic/starter/MainActivity.java
Updating icons at platforms/android/app/src/main/res
Updating splash screens at platforms/android/app/src/main/res
This app does not have additional resource files defined
Prepared android project successfully
No scripts found for hook "after_prepare".
No scripts found for hook "before_compile".
ANDROID_HOME=/home/agenceho5/Android/Sdk
JAVA_HOME=/usr/lib/jvm/java-1.11.0-openjdk-amd64
Requirements check failed for JDK 1.8
CordovaError: Requirements check failed for JDK 1.8
at /var/ionic/cauterets/platforms/android/cordova/lib/check_reqs.js:362:19
at _fulfilled (/var/ionic/cauterets/platforms/android/cordova/node_modules/q/q.js:834:54)
at self.promiseDispatch.done (/var/ionic/cauterets/platforms/android/cordova/node_modules/q/q.js:863:30)
at Promise.promise.promiseDispatch (/var/ionic/cauterets/platforms/android/cordova/node_modules/q/q.js:796:13)
at /var/ionic/cauterets/platforms/android/cordova/node_modules/q/q.js:604:44
at runSingle (/var/ionic/cauterets/platforms/android/cordova/node_modules/q/q.js:137:13)
at flush (/var/ionic/cauterets/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)



Where is the problem ?
Thank's in advance



EDIT : I've also tryed with openjdk-8 but i've exactly the same error










share|improve this question















I try to compile a ionic android application for the first time but cordova fail to compile and i can't find why !




  • I've installed openJDK and set $JAVA_HOME in my .bashrc

  • I've installed android studio and set $ANDROID_HOME in my .bashrc


but when I run ionic cordova build android --verbose or ionic cordova build android --verbose, command fail with this errors :



No scripts found for hook "before_build".
No scripts found for hook "before_prepare".
Checking config.xml and package.json for saved platforms that haven't been added to the project
Config.xml and package.json platforms are the same. No pkg.json modification.
Package.json and config.xml platforms are different. Updating config.xml with most current list of platforms.
PlatformApi successfully found for platform android
Android Studio project detected
Checking config.xml for saved plugins that haven't been added to the project
Checking for any plugins added to the project that have not been installed in android platform
No differences found between plugins added to project and installed in android platform. Continuing...
Generating platform-specific config.xml from defaults for android at /var/ionic/cauterets/platforms/android/app/src/main/res/xml/config.xml
Merging project's config.xml into platform-specific android config.xml
Merging and updating files from [www, platforms/android/platform_www] to platforms/android/app/src/main/assets/www
Wrote out android application name "MyApp" to /var/ionic/cauterets/platforms/android/app/src/main/res/values/strings.xml
android-versionCode not found in config.xml. Generating a code based on version in config.xml (0.0.1): 1
Wrote out Android package name "io.ionic.starter" to /var/ionic/cauterets/platforms/android/app/src/main/java/io/ionic/starter/MainActivity.java
Updating icons at platforms/android/app/src/main/res
Updating splash screens at platforms/android/app/src/main/res
This app does not have additional resource files defined
Prepared android project successfully
No scripts found for hook "after_prepare".
No scripts found for hook "before_compile".
ANDROID_HOME=/home/agenceho5/Android/Sdk
JAVA_HOME=/usr/lib/jvm/java-1.11.0-openjdk-amd64
Requirements check failed for JDK 1.8
CordovaError: Requirements check failed for JDK 1.8
at /var/ionic/cauterets/platforms/android/cordova/lib/check_reqs.js:362:19
at _fulfilled (/var/ionic/cauterets/platforms/android/cordova/node_modules/q/q.js:834:54)
at self.promiseDispatch.done (/var/ionic/cauterets/platforms/android/cordova/node_modules/q/q.js:863:30)
at Promise.promise.promiseDispatch (/var/ionic/cauterets/platforms/android/cordova/node_modules/q/q.js:796:13)
at /var/ionic/cauterets/platforms/android/cordova/node_modules/q/q.js:604:44
at runSingle (/var/ionic/cauterets/platforms/android/cordova/node_modules/q/q.js:137:13)
at flush (/var/ionic/cauterets/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)



Where is the problem ?
Thank's in advance



EDIT : I've also tryed with openjdk-8 but i've exactly the same error







cordova android-studio ionic-framework ionic3






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 2 days ago

























asked 2 days ago









Fabien

335111




335111












  • this comment seam to resolve this problem : github.com/ionic-team/ionic-cli/issues/…. After i've a second problem with grabble who's solved by a simple sudo apt install gradle
    – Fabien
    2 days ago


















  • this comment seam to resolve this problem : github.com/ionic-team/ionic-cli/issues/…. After i've a second problem with grabble who's solved by a simple sudo apt install gradle
    – Fabien
    2 days ago
















this comment seam to resolve this problem : github.com/ionic-team/ionic-cli/issues/…. After i've a second problem with grabble who's solved by a simple sudo apt install gradle
– Fabien
2 days ago




this comment seam to resolve this problem : github.com/ionic-team/ionic-cli/issues/…. After i've a second problem with grabble who's solved by a simple sudo apt install gradle
– Fabien
2 days ago

















active

oldest

votes











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',
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
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53266128%2frequirements-check-failed-for-jdk-1-8%23new-answer', 'question_page');
}
);

Post as a guest





































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53266128%2frequirements-check-failed-for-jdk-1-8%23new-answer', 'question_page');
}
);

Post as a guest




















































































Popular posts from this blog

How to change which sound is reproduced for terminal bell?

Can I use Tabulator js library in my java Spring + Thymeleaf project?

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents