miguelpruivo / country_codes

Country codes is an helper package that provides country details given a particular localization, such as dial codes, ISO 3166 codes (alpha-2, alpha-3) and country names.
MIT License
29 stars 34 forks source link

getting error on build #4

Closed primemb closed 4 years ago

primemb commented 4 years ago

Hi, I got this error when I try to build package

`A problem occurred evaluating root project 'country_codes'.

Failed to apply plugin [id 'com.android.library'] Minimum supported Gradle version is 5.4.1. Current version is 4.10.2. If using the gradle wrapper, try editing the distributionUrl in D:\programer\flutter.pub-cache\hosted\pub.dartlang.org\country_codes-1.0.1\android\gradle\wrapper\gradle-wrapper.properties to gradle-5.4.1-all.zip`

miguelpruivo commented 4 years ago

Hi @primemb!

You just need to update your project’s gradle version to 5.4.1 or above.

This should be inside your android/build.gradle file:

dependencies {
    classpath 'com.android.tools.build:gradle:5.4.1'
}
primemb commented 4 years ago

the problem was my gradle cache i remove all cache and it work now sorry and thank you for fast response