Tkko / flutter_smart_auth

Flutter package for listening SMS code on Android, suggesting phone number, email, saving a credential.
https://pub.dev/packages/smart_auth
MIT License
43 stars 26 forks source link

Execution failed for task ':app:checkDebugAarMetadata' #3

Open AsimBhadra opened 2 years ago

AsimBhadra commented 2 years ago

I am getting this error message after adding pinput which is dependent on this repository

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Could not find com.google.android.gms:play-repositories-auth:20.1.0.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/com/google/android/gms/play-repositories-auth/20.1.0/play-repositories-auth-20.1.0.pom
       - https://repo.maven.apache.org/maven2/com/google/android/gms/play-repositories-auth/20.1.0/play-repositories-auth-20.1.0.pom
       - https://storage.googleapis.com/download.flutter.io/com/google/android/gms/play-repositories-auth/20.1.0/play-repositories-auth-20.1.0.pom
     Required by:
         project :app > project :smart_auth
   > Could not find com.google.android.gms:play-repositories-auth-api-phone:18.0.1.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/com/google/android/gms/play-repositories-auth-api-phone/18.0.1/play-repositories-auth-api-phone-18.0.1.pom
       - https://repo.maven.apache.org/maven2/com/google/android/gms/play-repositories-auth-api-phone/18.0.1/play-repositories-auth-api-phone-18.0.1.pom
       - https://storage.googleapis.com/download.flutter.io/com/google/android/gms/play-repositories-auth-api-phone/18.0.1/play-repositories-auth-api-phone-18.0.1.pom
     Required by:
         project :app > project :smart_auth

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

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

BUILD FAILED in 42s
Exception: Gradle task assembleDebug failed with exit code 1
Tkko commented 2 years ago

@AsimBhadra Could you try https://stackoverflow.com/questions/50791632/could-not-find-any-version-that-matches-com-google-android-gmsplay-services-bas ?

AsimBhadra commented 2 years ago

I have tried all possible solutions but none of them seem to work.