I am back,
i try your solution which is installing the latest version of ''Android Studio" that comes with the Android SDK.
and then i try again to generate the apk for the ionic application and the console returns me this error:
`
C:\Users\User\Desktop\ionic 2\44\scanbot-sdk-example-ionic2-master (2)\scanbot-sdk-example-ionic2-master>ionic cordova build
? What platform would you like to build: ios, android: android
Running app-scripts build: --iscordovaserve --externalIpRequired --nobrowser
[04:15:28] build dev started ...
[04:15:28] clean started ...
[04:15:28] clean finished in 196 ms
[04:15:28] copy started ...
[04:15:28] transpile started ...
[04:15:50] transpile finished in 21.68 s
[04:15:50] preprocess started ...
[04:15:50] preprocess finished in less than 1 ms
[04:15:50] webpack started ...
[04:15:53] copy finished in 25.00 s
[04:16:10] webpack finished in 20.14 s
[04:16:10] sass started ...
[04:16:22] sass finished in 11.75 s
[04:16:22] postprocess started ...
[04:16:22] postprocess finished in less than 1 ms
[04:16:22] lint started ...
[04:16:22] build dev finished in 53.92 s
cordova build android
\ Running command [04:16:28] lint finished in 6.71 sRunning command - failed!
[ERROR] Cordova encountered an error.
You may get more insight by running the Cordova command above directly.
[ERROR] An error occurred while running cordova build android (exit code 1):
ANDROID_HOME=C:\Users\User\AppData\Local\Android\sdk
JAVA_HOME=C:\Program Files\java\jdk1.7.0_67
Error: Requirements check failed for JDK 1.8 or greater
`
What should i do to solve the problem !!
and thanks for your help