flutter_inappwebview icon indicating copy to clipboard operation
flutter_inappwebview copied to clipboard

Could not resolve androidx.lifecycle:lifecycle-runtime

Open gumgum-w opened this issue 1 year ago • 1 comments

Hello,

today when Install this plugins on pubspec.yaml it could be run when I run pub get, but when I run build to deploy on android emulator caused error like this :

Could not determine the dependencies of task ':app:processDebugResources'.
> Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
   > Could not resolve androidx.lifecycle:lifecycle-runtime:[2.4.0].
     Required by:
         project :app > project :flutter_inappwebview > androidx.appcompat:appcompat:1.4.1 > androidx.emoji2:emoji2:1.0.0 > androidx.lifecycle:lifecycle-process:2.4.0
      > Failed to list versions for androidx.lifecycle:lifecycle-runtime.
         > Unable to load Maven meta-data from https://google.bintray.com/exoplayer/androidx/lifecycle/lifecycle-runtime/maven-metadata.xml.
            > Could not get resource 'https://google.bintray.com/exoplayer/androidx/lifecycle/lifecycle-runtime/maven-metadata.xml'.
               > Could not GET 'https://google.bintray.com/exoplayer/androidx/lifecycle/lifecycle-runtime/maven-metadata.xml'. Received status code 502 from server: Bad Gateway

* 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 7s
[!] Gradle threw an error while downloading artifacts from the network. Retrying to download...
Exception: Gradle task assembleDebug failed with exit code 1

I've :

  • run flutter doctor === result no errors
  • run flutter doctor -v === result no errors
  • put mavenCentral() on : build/gradle
    • search on stackovervlow : https://stackoverflow.com/questions/59296387/unable-to-add-dependency-failed-to-resolve-androidx-lifecyclelifecycle-extens
  • https://github.com/LuckSiege/PictureSelector/issues/2251

but the result like error on above...

my flutter version : 2.5.3 with SDK version : 2.14.4 my OS is windows 10 inappwebview version : ^5.4.0+1

please anyone help me to solve this problem

Many thanks

gumgum-w avatar Jul 25 '22 14:07 gumgum-w

👋 @gumgum-w

NOTE: This comment is auto-generated.

Are you sure you have already searched for the same problem?

Some people open new issues but they didn't search for something similar or for the same issue. Please, search for it using the GitHub issue search box or on the official inappwebview.dev website, or, also, using Google, StackOverflow, etc. before posting a new one. You may already find an answer to your problem!

If this is really a new issue, then thank you for raising it. I will investigate it and get back to you as soon as possible. Please, make sure you have given me as much context as possible! Also, if you didn't already, post a code example that can replicate this issue.

In the meantime, you can already search for some possible solutions online! Because this plugin uses native WebView, you can search online for the same issue adding android WebView [MY ERROR HERE] or ios WKWebView [MY ERROR HERE] keywords.

Following these steps can save you, me, and other people a lot of time, thanks!

github-actions[bot] avatar Jul 25 '22 14:07 github-actions[bot]