简体   繁体   English

Ionic Android最低支持的Gradle版本是4.6。 当前版本是4.1

[英]Ionic Android Minimum supported Gradle version is 4.6. Current version is 4.1

I run the command: "$ionic cordova build android" but I will get this error. 我运行命令:“ $ ionic cordova build android”,但我会收到此错误。 Do you know how resolve this error? 您知道如何解决此错误吗?

Preparing Firebase on Android
ANDROID_HOME=/Users/henriaycard/Library/Android/sdk
JAVA_HOME=/Users/henriaycard/Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home
studio
Subproject Path: CordovaLib
Subproject Path: app

FAILURE: Build failed with an exception.

* Where:
Build file '/Users/henriaycard/git/ionic/upsudEvenement/platforms/android/CordovaLib/build.gradle' line: 41

* What went wrong:

A problem occurred evaluating project ':CordovaLib'.
> 
Failed to apply plugin [id 'com.android.library']

   > 
Minimum supported Gradle version is 4.6. Current version is 4.1. If using the gradle wrapper, try editing the distributionUrl in /Users/henriaycard/git/ionic/upsudEvenement/gradle/wrapper/gradle-wrapper.properties to gradle-4.6-all.zip

* Try:
Run with --stacktrace
 option to get the stack trace. Run with --info
 or --debug option to get more log output.

* Get more help at https://help.gradle.org


BUILD FAILED in 1s
(node:35261) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: /Users/henriaycard/git/ionic/upsudEvenement/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

* Where:
Build file '/Users/henriaycard/git/ionic/upsudEvenement/platforms/android/CordovaLib/build.gradle' line: 41

* What went wrong:
A problem occurred evaluating project ':CordovaLib'.
> Failed to apply plugin [id 'com.android.library']
   > Minimum supported Gradle version is 4.6. Current version is 4.1. If using the gradle wrapper, try editing the distributionUrl in /Users/henriaycard/git/ionic/upsudEvenement/gradle/wrapper/gradle-wrapper.properties to gradle-4.6-all.zip

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 1s
(node:35261) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[ERROR] An error occurred while running cordova run android (exit code 1).

如果您使用的是Mac,请在.bash_profile中添加以下行,然后执行“ source〜/ .bash_profile”

export CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL="https\://services.gradle.org/distributions/gradle-4.7-all.zip"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 支持的最低Gradle版本为4.6。 当前版本是4.1 - Minimum supported Gradle version is 4.6. Current version is 4.1 最低支持的Gradle版本是4.6 - Minimum supported Gradle version is 4.6 支持的最低 Gradle 版本为 4.1。 当前版本是 3.3 - Minimum supported Gradle version is 4.1. Current version is 3.3 支持的最低Gradle版本为4.4。 当前版本是4.1 - Minimum supported gradle version is 4.4. Current version is 4.1 Cordova / Ionic build android Gradle 错误:支持的最低 Gradle 版本为 2.14.1。 当前版本是 2.13 - Cordova / Ionic build android Gradle error: Minimum supported Gradle version is 2.14.1. Current version is 2.13 错误:android studio 3.0.1 中支持的最低 gradle 版本为 4.6 - Error : minimum supported gradle version is 4.6 in android studio 3.0.1 支持的最低Gradle版本为2.14.1。 当前版本是2.10 - Minimum supported Gradle version is 2.14.1. Current version is 2.10 更新 android studio 后出现错误“支持的最低 Gradle 版本为 5.1.1。当前版本为 4.4.1” - Error "Minimum supported Gradle version is 5.1.1. Current version is 4.4.1" after update android studio 管道:支持的最低Gradle版本为4.10.1。当前版本是4.4 - Pipelines: Minimum supported Gradle version is 4.10.1. Current version is 4.4 支持的最低 Gradle 版本为 7.2。 当前版本为 7.1 - Minimum supported Gradle version is 7.2. Current version is 7.1
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM