@pemiro wrote:
Hi there,
I am having problem when I run the command ionic cordova run android --device to see the app on the wired device (android 10). The problem is that I am throwing the error
ANDROID_SDK_ROOT = undefined (recommended setting)
ANDROID_HOME = C: \ AndroidSdk (DEPRECATED)
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.cmd build android --device exited with exit code 1. Re-running this command with the --verbose flag may provide more information.
I have already configured the gradle in the environment variables
this is my ionic info:
Ionic: Ionic CLI : 6.3.0 (C:\Users\a\AppData\Roaming\npm\node_modules\@ionic\cli) Ionic Framework : @ionic/angular 5.0.7 @angular-devkit/build-angular : 0.803.26 @angular-devkit/schematics : 8.3.26 @angular/cli : 8.3.26 @ionic/angular-toolkit : 2.2.0 Capacitor: Capacitor CLI : 1.5.2 @capacitor/core : 1.5.2 Cordova: Cordova CLI : 9.0.0 (cordova-lib@9.0.1) Cordova Platforms : android 8.1.0, ios 5.1.1 Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.1.3, (and 7 other plugins) Utility: cordova-res : not installed native-run : 1.0.0 System: Android SDK Tools : 26.1.1 (C:\AndroidSdk) NodeJS : v12.16.0 (C:\Program Files\nodejs\node.exe) npm : 6.13.4 OS : Windows 10
I don’t know what else to do, can you help me? I have been doing this for several days now. I have configured the gradle, sdk, everything and nothing even.
Thanks in advance.
Posts: 1
Participants: 1