Requirements check failed for JDK 1.8










0














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
    Nov 12 '18 at 16:42















0














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
    Nov 12 '18 at 16:42













0












0








0







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 Nov 12 '18 at 16:25

























asked Nov 12 '18 at 16:17









Fabien

335113




335113











  • 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
    Nov 12 '18 at 16:42
















  • 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
    Nov 12 '18 at 16:42















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
Nov 12 '18 at 16:42




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
Nov 12 '18 at 16:42

















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



);













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















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































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.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • 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.




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















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







這個網誌中的熱門文章

How to read a connectionString WITH PROVIDER in .NET Core?

Node.js Script on GitHub Pages or Amazon S3

Museum of Modern and Contemporary Art of Trento and Rovereto