Sous-processu

#1

salut !
**j’ai débute en ionic **
j’ai installer tout les prérequis et je tester mon application fonctionne, mais arrive au moment de générer un apk voici le résultats :

PS C:\Users\kING\Documents\PROJET IONIC\test> ionic cordova platform add android

ionic integrations enable cordova
[INFO] Downloading integration cordova
[INFO] Copying integrations files to project
CREATE config.xml
CREATE resources
CREATE resources\android
CREATE resources\icon.png
CREATE resources\ios
CREATE resources\README.md
CREATE resources\splash.png
CREATE resources\android\icon
CREATE resources\android\splash
CREATE resources\ios\icon
CREATE resources\ios\splash
CREATE resources\android\icon\drawable-hdpi-icon.png
CREATE resources\android\icon\drawable-ldpi-icon.png
CREATE resources\android\icon\drawable-mdpi-icon.png
CREATE resources\android\icon\drawable-xhdpi-icon.png
CREATE resources\android\icon\drawable-xxhdpi-icon.png
CREATE resources\android\icon\drawable-xxxhdpi-icon.png
CREATE resources\android\splash\drawable-land-hdpi-screen.png
CREATE resources\android\splash\drawable-land-ldpi-screen.png
CREATE resources\android\splash\drawable-land-mdpi-screen.png
CREATE resources\android\splash\drawable-land-xhdpi-screen.png
CREATE resources\android\splash\drawable-land-xxhdpi-screen.png
CREATE resources\android\splash\drawable-land-xxxhdpi-screen.png
CREATE resources\android\splash\drawable-port-hdpi-screen.png
CREATE resources\android\splash\drawable-port-ldpi-screen.png
CREATE resources\android\splash\drawable-port-mdpi-screen.png
CREATE resources\android\splash\drawable-port-xhdpi-screen.png
CREATE resources\android\splash\drawable-port-xxhdpi-screen.png
CREATE resources\android\splash\drawable-port-xxxhdpi-screen.png
CREATE resources\ios\icon\icon-1024.png
CREATE resources\ios\icon\icon-40.png
CREATE resources\ios\icon\icon-40@2x.png
CREATE resources\ios\icon\icon-40@3x.png
CREATE resources\ios\icon\icon-50.png
CREATE resources\ios\icon\icon-50@2x.png
CREATE resources\ios\icon\icon-60.png
CREATE resources\ios\icon\icon-60@2x.png
CREATE resources\ios\icon\icon-60@3x.png
CREATE resources\ios\icon\icon-72.png
CREATE resources\ios\icon\icon-72@2x.png
CREATE resources\ios\icon\icon-76.png
CREATE resources\ios\icon\icon-76@2x.png
CREATE resources\ios\icon\icon-83.5@2x.png
CREATE resources\ios\icon\icon-small.png
CREATE resources\ios\icon\icon-small@2x.png
CREATE resources\ios\icon\icon-small@3x.png
CREATE resources\ios\icon\icon.png
CREATE resources\ios\icon\icon@2x.png
CREATE resources\ios\splash\Default-568h@2x~iphone.png
CREATE resources\ios\splash\Default-667h.png
CREATE resources\ios\splash\Default-736h.png
CREATE resources\ios\splash\Default-Landscape-736h.png
CREATE resources\ios\splash\Default-Landscape@2x~ipad.png
CREATE resources\ios\splash\Default-Landscape@~ipadpro.png
CREATE resources\ios\splash\Default-Landscape~ipad.png
CREATE resources\ios\splash\Default-Portrait@2x~ipad.png
CREATE resources\ios\splash\Default-Portrait@~ipadpro.png
CREATE resources\ios\splash\Default-Portrait~ipad.png
CREATE resources\ios\splash\Default@2x~iphone.png
CREATE resources\ios\splash\Default@2x~universal~anyany.png
CREATE resources\ios\splash\Default~iphone.png
[OK] Integration cordova added!
cordova platform add android --save

You have been opted out of telemetry. To change this, run: cordova telemetry on.
Using cordova-fetch for cordova-android@~7.1.1
Adding android project…
Creating Cordova project for the Android platform:
Path: platforms\android
Package: io.ionic.starter
Name: MyApp
Activity: MainActivity
Android target: android-27
Android project created with cordova-android@7.1.4
Android Studio project detected
Android Studio project detected
Discovered plugin “cordova-plugin-whitelist” in config.xml. Adding it to the project
Installing “cordova-plugin-whitelist” for android

           This plugin is only applicable for versions of cordova-android greater than 4.0. If you have a previous platform version, you do *not*

need this plugin since the whitelist will be built in.

Adding cordova-plugin-whitelist to package.json
Saved plugin info for “cordova-plugin-whitelist” to config.xml
Discovered plugin “cordova-plugin-statusbar” in config.xml. Adding it to the project
Installing “cordova-plugin-statusbar” for android
Adding cordova-plugin-statusbar to package.json
Saved plugin info for “cordova-plugin-statusbar” to config.xml
Discovered plugin “cordova-plugin-device” in config.xml. Adding it to the project
Installing “cordova-plugin-device” for android
Adding cordova-plugin-device to package.json
Saved plugin info for “cordova-plugin-device” to config.xml
Discovered plugin “cordova-plugin-splashscreen” in config.xml. Adding it to the project
Installing “cordova-plugin-splashscreen” for android
Adding cordova-plugin-splashscreen to package.json
Saved plugin info for “cordova-plugin-splashscreen” to config.xml
Discovered plugin “cordova-plugin-ionic-webview” in config.xml. Adding it to the project
Installing “cordova-plugin-ionic-webview” for android
Subproject Path: CordovaLib
Subproject Path: app
Adding cordova-plugin-ionic-webview to package.json
Saved plugin info for “cordova-plugin-ionic-webview” to config.xml
Discovered plugin “cordova-plugin-ionic-keyboard” in config.xml. Adding it to the project
Installing “cordova-plugin-ionic-keyboard” for android
Adding cordova-plugin-ionic-keyboard to package.json
Saved plugin info for “cordova-plugin-ionic-keyboard” to config.xml
–save flag or autosave detected
Saving android@~7.1.4 into config.xml file …

ionic cordova resources android --force
√ Collecting resource configuration and source images - done!
√ Filtering out image resources that do not need regeneration - done!
√ Uploading source images to prepare for transformations: 2 / 2 complete - done!
√ Generating platform resources: 18 / 18 complete - done!
√ Modifying config.xml to add new image resources - done!
PS C:\Users\kING\Documents\PROJET IONIC\test> ionic cordova build android
ionic-app-scripts build --target cordova --platform android
[16:32:45] ionic-app-scripts 3.2.1
[16:32:45] build dev started …
[16:32:46] clean started …
[16:32:46] clean finished in 189 ms
[16:32:46] copy started …
[16:32:47] deeplinks started …
[16:32:47] deeplinks finished in 63 ms
[16:32:47] transpile started …
[16:32:55] transpile finished in 8.11 s
[16:32:55] preprocess started …
[16:32:55] preprocess finished in 2 ms
[16:32:55] webpack started …
[16:32:55] copy finished in 8.87 s
[16:33:04] webpack finished in 8.80 s
[16:33:04] sass started …
[16:33:07] sass finished in 3.23 s
[16:33:07] postprocess started …
[16:33:07] postprocess finished in 23 ms
[16:33:07] lint started …
[16:33:07] build dev finished in 21.38 s
[16:33:14] lint finished in 7.28 s
cordova build android

You have been opted out of telemetry. To change this, run: cordova telemetry on.
Android Studio project detected
ANDROID_HOME=C:\Users\kING\AppData\Local\Android\android-sdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_181
studio
Could not find an installed version of Gradle either in Android Studio,
or on your system to install the gradle wrapper. Please include gradle
in your path, or install Android Studio
[ERROR] An error occurred while running subprocess cordova.

    cordova build android exited with exit code 1.

si vous pouvez m’aimer a résoudre ce problème, merci d’avance

#2

Could not find an installed version of Gradle either in Android Studio,
or on your system to install the gradle wrapper. Please include gradle
in your path, or install Android Studio