Ionic run issue


#1

hello every one

i have problem when i run ionic cordova run android
the error log :


Total time: 1 mins 29.375 secs
Build file 'C:\apps\carservice\platforms\android\build.gradle' line: 20

* What went wrong:
A problem occurred evaluating root project 'android'.
> Failed to apply plugin [id 'com.android.application']
   > Minimum supported Gradle version is 4.1. Current version is 3.3. If using the gradle wrapper, try editing the distributionUrl in C:\Users\Hissro\Desktop\apps\carservice\gradle\wrapper\gradle-wrapper.properties to gradle-4.1-all.zip

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Error: cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

* Where:
Build file 'C:\apps\carservice\platforms\android\build.gradle' line: 20

* What went wrong:
A problem occurred evaluating root project 'android'.
> Failed to apply plugin [id 'com.android.application']
   > Minimum supported Gradle version is 4.1. Current version is 3.3. If using the gradle wrapper, try editing the distributionUrl in C:\Users\Hissro\Desktop\apps\carservice\gradle\wrapper\gradle-wrapper.properties to gradle-4.1-all.zip

cordova -v 7.1.0

ionic -v 3.19.0

please help me


#2

What is your ionic info output?
What plugins are you using?


#3

Try: ionic cordova platform update android

If that doesn’t work, you need to update your gradle installation.


#4

@jylikorpi @Sujan12 the problem come from ionic push plugin


#5

What is “ionic push plugin”?

You also didn’t answer any of my questions.


#6

i use FCM plugin to push notification from back-end to my app

the error come from android studio 3 update , and i fix it this by update android studio and re-install "cordova-plugin-fcm "