acoutts / flutter_libphonenumber

Leverages libphonenumber to allow for asynchronous and synchronous formatting of phone numbers in Flutter apps. Includes a TextInputFormatter to allow real-time AsYouType formatting.
MIT License
60 stars 73 forks source link

Could not resolve all files for configuration ':flutter_libphonenumber_android:classpath'. #58

Closed emaborsa closed 1 year ago

emaborsa commented 1 year ago

Hi, I can add succesfully the library doing flutter pub add flutter_libphonenumber. flutter pub get after 'flutter clean' work as well. But when I run the project for android in VS code, I get the following error:

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':flutter_libphonenumber_android'.
> Could not resolve all files for configuration ':flutter_libphonenumber_android:classpath'.
   > Could not resolve org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.0.
     Required by:
         project :flutter_libphonenumber_android > com.android.tools.build:gradle:7.1.2
         project :flutter_libphonenumber_android > com.android.tools.build:gradle:7.1.2 > com.android.tools:sdk-common:30.1.2
         project :flutter_libphonenumber_android > com.android.tools.build:gradle:7.1.2 > com.android.tools:repository:30.1.2
         project :flutter_libphonenumber_android > com.android.tools.build:gradle:7.1.2 > com.android.tools.ddms:ddmlib:30.1.2
         project :flutter_libphonenumber_android > com.android.tools.build:gradle:7.1.2 > com.android.tools.build:aaptcompiler:7.1.2
         project :flutter_libphonenumber_android > com.android.tools.build:gradle:7.1.2 > com.android.tools.analytics-library:shared:30.1.2
         project :flutter_libphonenumber_android > com.android.tools.build:gradle:7.1.2 > com.android.tools.lint:lint-model:30.1.2
         project :flutter_libphonenumber_android > com.android.tools.build:gradle:7.1.2 > androidx.databinding:databinding-compiler-common:7.1.2
         project :flutter_libphonenumber_android > com.android.tools.build:gradle:7.1.2 > com.android.tools.utp:android-test-plugin-host-retention-proto:30.1.2
         project :flutter_libphonenumber_android > com.android.tools.build:gradle:7.1.2 > org.jetbrains.dokka:dokka-core:1.4.32
         project :flutter_libphonenumber_android > com.android.tools.build:gradle:7.1.2 > com.android.tools.build:builder:7.1.2
         project :flutter_libphonenumber_android > com.android.tools.build:gradle:7.1.2 > com.android.tools.build:builder-model:7.1.2
         project :flutter_libphonenumber_android > com.android.tools.build:gradle:7.1.2 > com.android.tools.build:gradle-api:7.1.2
         project :flutter_libphonenumber_android > com.android.tools.build:gradle:7.1.2 > com.android.tools:sdk-common:30.1.2 > com.android.tools:common:30.1.2
         project :flutter_libphonenumber_android > com.android.tools.build:gradle:7.1.2 > com.android.tools.build:builder:7.1.2 > com.android.tools.analytics-library:tracker:30.1.2
         project :flutter_libphonenumber_android > com.android.tools.build:gradle:7.1.2 > com.android.tools.build:builder:7.1.2 > com.android.tools.build:manifest-merger:30.1.2
emaborsa commented 1 year ago

It was a network problem.