I finished developing my application in ionic3 but I have always worked with the browser, but when I need to use ionic-native it gives me an error and I am trying to execute it directly on the mobile but it gives me the following error when executing
ionic cordova run android
BUILD SUCCESSFUL
Total time: 13.908 secs Subproject Path: CordovaLib The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead. at build_3h27kqsye81muyru9xhrcgotr.run(C:\xampp\htdocs\nutricia\platforms\android\build.gradle:141) Checking the license for package Android SDK Platform 26 in C:\Users\Deivis\AppData\Local\Android\sdk\licenses Warning: License for package Android SDK Platform 26 not accepted.
FAILURE: Build failed with an exception.
What went wrong: A problem occurred configuring root project 'android'.
You have not accepted the license agreements of the following SDK components: [Android SDK Platform 26]. Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager. Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 4.282 secs Error: cmd: Command failed with exit code 1 Error output: FAILURE: Build failed with an exception.
What went wrong: A problem occurred configuring root project 'android'.
You have not accepted the license agreements of the following SDK components: [Android SDK Platform 26]. Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager. Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
[ERROR] An error occurred while running cordova run android (exit code 1).
I have tried to solve the problem in the following links but I have not had results
https://stackoverflow.com/questions/40383323/cant-accept-license-agreement-android-sdk-platform-24
I would appreciate your help, thank you very much in advance
Ok You connect the Mobile in Debugging mode (developer mode must be activated in the mobile)
use the following commands