pichillilorenzo / flutter_inappwebview

A Flutter plugin that allows you to add an inline webview, to use a headless webview, and to open an in-app browser window.
https://inappwebview.dev
Apache License 2.0
3.07k stars 1.37k forks source link

Could not resolve androidx.lifecycle:lifecycle-runtime #1261

Open gumgum-w opened 1 year ago

gumgum-w commented 1 year ago

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 :

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

github-actions[bot] commented 1 year ago

👋 @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!