fluttercommunity / fluttercommunity/flutter_webview_plugin

flutter_webview_plugin

Open
#869 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1.5k
Forks
938
PR merge metrics
No merged PRs in 30d

Description

FAILURE: Build failed with an exception.
[ +1 ms] * What went wrong:
[ ] Could not determine the dependencies of task ':flutter_webview_plugin:compileDebugAidl'.
[ ] > Could not resolve all task dependencies for configuration ':flutter_webview_plugin:debugCompileClasspath'.
[ ] > Could not resolve androidx.lifecycle:lifecycle-runtime:{strictly 2.1.0}.
[ ] Required by:
[ ] project :flutter_webview_plugin
[ ] > Cannot find a version of 'androidx.lifecycle:lifecycle-runtime' that satisfies the version constraints:
[ ] Dependency path 'com.flutter_webview_plugin:flutter_webview_plugin:1.0-SNAPSHOT' --> 'io.flutter:flutter_embedding_debug:1.0.0-92ae191c17a53144bf4d62f3863c110be08e3fd3' --> 'androidx.lifecycle:lifecycle-runtime:2.2.0'
[ ] Constraint path 'com.flutter_webview_plugin:flutter_webview_plugin:1.0-SNAPSHOT' --> 'androidx.lifecycle:lifecycle-runtime:{strictly 2.1.0}' because of the following reason: debugRuntimeClasspath uses version 2.1.0
[ ] Dependency path 'com.flutter_webview_plugin:flutter_webview_plugin:1.0-SNAPSHOT' --> 'androidx.appcompat:appcompat:1.1.0' --> 'androidx.core:core:1.1.0' --> 'androidx.lifecycle:lifecycle-runtime:2.0.0'
[ ] Dependency path 'com.flutter_webview_plugin:flutter_webview_plugin:1.0-SNAPSHOT' --> 'io.flutter:flutter_embedding_debug:1.0.0-92ae191c17a53144bf4d62f3863c110be08e3fd3' --> 'androidx.fragment:fragment:1.1.0' --> 'androidx.activity:activity:1.0.0' --> 'androidx.lifecycle:lifecycle-runtime:2.1.0'
[ ] > Could not resolve androidx.lifecycle:lifecycle-common:{strictly 2.1.0}.
[ ] Required by:
[ ] project :flutter_webview_plugin
[ ] > Cannot find a version of 'androidx.lifecycle:lifecycle-common' that satisfies the version constraints:
[ ] Dependency path 'com.flutter_webview_plugin:flutter_webview_plugin:1.0-SNAPSHOT' --> 'io.flutter:flutter_embedding_debug:1.0.0-92ae191c17a53144bf4d62f3863c110be08e3fd3' --> 'androidx.lifecycle:lifecycle-common:2.2.0'
[ ] Constraint path 'com.flutter_webview_plugin:flutter_webview_plugin:1.0-SNAPSHOT' --> 'androidx.lifecycle:lifecycle-common:{strictly 2.1.0}' because of the following reason: debugRuntimeClasspath uses version 2.1.0
[ ] Dependency path 'com.flutter_webview_plugin:flutter_webview_plugin:1.0-SNAPSHOT' --> 'io.flutter:flutter_embedding_debug:1.0.0-92ae191c17a53144bf4d62f3863c110be08e3fd3' --> 'androidx.lifecycle:lifecycle-common-java8:2.2.0' --> 'androidx.lifecycle:lifecycle-common:2.2.0'
[ ] Dependency path 'com.flutter_webview_plugin:flutter_webview_plugin:1.0-SNAPSHOT' --> 'io.flutter:flutter_embedding_debug:1.0.0-92ae191c17a53144bf4d62f3863c110be08e3fd3' --> 'androidx.lifecycle:lifecycle-runtime:2.2.0' --> 'androidx.lifecycle:lifecycle-common:2.2.0'
[ ] Dependency path 'com.flutter_webview_plugin:flutter_webview_plugin:1.0-SNAPSHOT' --> 'io.flutter:flutter_embedding_debug:1.0.0-92ae191c17a53144bf4d62f3863c110be08e3fd3' --> 'androidx.fragment:fragment:1.1.0' --> 'androidx.activity:activity:1.0.0' --> 'androidx.savedstate:savedstate:1.0.0' --> 'androidx.lifecycle:lifecycle-common:2.0.0'
[ ] Dependency path 'com.flutter_webview_plugin:flutter_webview_plugin:1.0-SNAPSHOT' --> 'io.flutter:flutter_embedding_debug:1.0.0-92ae191c17a53144bf4d62f3863c110be08e3fd3' --> 'androidx.fragment:fragment:1.1.0' --> 'androidx.loader:loader:1.0.0' --> 'androidx.lifecycle:lifecycle-livedata:2.0.0' --> 'androidx.lifecycle:lifecycle-livedata-core:2.0.0' --> 'androidx.lifecycle:lifecycle-common:2.0.0'
[ ] > Could not resolve androidx.lifecycle:lifecycle-common:2.2.0.
[ ] Required by:
[ ] project :flutter_webview_plugin > io.flutter:flutter_embedding_debug:1.0.0-92ae191c17a53144bf4d62f3863c110be08e3fd3
[ ] project :flutter_webview_plugin > io.flutter:flutter_embedding_debug:1.0.0-92ae191c17a53144bf4d62f3863c110be08e3fd3 > androidx.lifecycle:lifecycle-common-java8:2.2.0
[ ] project :flutter_webview_plugin > androidx.lifecycle:lifecycle-runtime:2.2.0
[ ] > Cannot find a version of 'androidx.lifecycle:lifecycle-common' that satisfies the version constraints:
[ ] Dependency path 'com.flutter_webview_plugin:flutter_webview_plugin:1.0-SNAPSHOT' --> 'io.flutter:flutter_embedding_debug:1.0.0-92ae191c17a53144bf4d62f3863c110be08e3fd3' --> 'androidx.lifecycle:lifecycle-common:2.2.0'
[ ] Constraint path 'com.flutter_webview_plugin:flutter_webview_plugin:1.0-SNAPSHOT' --> 'androidx.lifecycle:lifecycle-common:{strictly 2.1.0}' because of the following reason: debugRuntimeClasspath uses version 2.1.0
[ ] Dependency path 'com.flutter_webview_plugin:flutter_webview_plugin:1.0-SNAPSHOT' --> 'io.flutter:flutter_embedding_debug:1.0.0-92ae191c17a53144bf4d62f3863c110be08e3fd3' --> 'androidx.lifecycle:lifecycle-common-java8:2.2.0' --> 'androidx.lifecycle:lifecycle-common:2.2.0'
[ ] Dependency path 'com.flutter_webview_plugin:flutter_webview_plugin:1.0-SNAPSHOT' --> 'io.flutter:flutter_embedding_debug:1.0.0-92ae191c17a53144bf4d62f3863c110be08e3fd3' --> 'androidx.lifecycle:lifecycle-runtime:2.2.0' --> 'androidx.lifecycle:lifecycle-common:2.2.0'
[ ] Dependency path 'com.flutter_webview_plugin:flutter_webview_plugin:1.0-SNAPSHOT' --> 'io.flutter:flutter_embedding_debug:1.0.0-92ae191c17a53144bf4d62f3863c110be08e3fd3' --> 'androidx.fragment:fragment:1.1.0' --> 'androidx.activity:activity:1.0.0' --> 'androidx.savedstate:savedstate:1.0.0' --> 'androidx.lifecycle:lifecycle-common:2.0.0'
[ ] Dependency path 'com.flutter_webview_plugin:flutter_webview_plugin:1.0-SNAPSHOT' --> 'io.flutter:flutter_embedding_debug:1.0.0-92ae191c17a53144bf4d62f3863c110be08e3fd3' --> 'androidx.fragment:fragment:1.1.0' --> 'androidx.loader:loader:1.0.0' --> 'androidx.lifecycle:lifecycle-livedata:2.0.0' --> 'androidx.lifecycle:lifecycle-livedata-core:2.0.0' --> 'androidx.lifecycle:lifecycle-common:2.0.0'
[ ] > Could not resolve androidx.lifecycle:lifecycle-runtime:2.2.0.
[ ] Required by:
[ ] project :flutter_webview_plugin > io.flutter:flutter_embedding_debug:1.0.0-92ae191c17a53144bf4d62f3863c110be08e3fd3
[ ] > Cannot find a version of 'androidx.lifecycle:lifecycle-runtime' that satisfies the version constraints:
[ ] Dependency path 'com.flutter_webview_plugin:flutter_webview_plugin:1.0-SNAPSHOT' --> 'io.flutter:flutter_embedding_debug:1.0.0-92ae191c17a53144bf4d62f3863c110be08e3fd3' --> 'androidx.lifecycle:lifecycle-runtime:2.2.0'
[ ] Constraint path 'com.flutter_webview_plugin:flutter_webview_plugin:1.0-SNAPSHOT' --> 'androidx.lifecycle:lifecycle-runtime:{strictly 2.1.0}' because of the following reason: debugRuntimeClasspath uses version 2.1.0
[ ] Dependency path 'com.flutter_webview_plugin:flutter_webview_plugin:1.0-SNAPSHOT' --> 'androidx.appcompat:appcompat:1.1.0' --> 'androidx.core:core:1.1.0' --> 'androidx.lifecycle:lifecycle-runtime:2.0.0'
[ ] Dependency path 'com.flutter_webview_plugin:flutter_webview_plugin:1.0-SNAPSHOT' --> 'io.flutter:flutter_embedding_debug:1.0.0-92ae191c17a53144bf4d62f3863c110be08e3fd3' --> 'androidx.fragment:fragment:1.1.0' --> 'androidx.activity:activity:1.0.0' --> 'androidx.lifecycle:lifecycle-runtime:2.1.0'
[ ] > Could not resolve androidx.lifecycle:lifecycle-runtime:2.0.0.
[ ] Required by:
[ ] project :flutter_webview_plugin > androidx.core:core:1.1.0
[ ] > Cannot find a version of 'androidx.lifecycle:lifecycle-runtime' that satisfies the version constraints:
[ ] Dependency path 'com.flutter_webview_plugin:flutter_webview_plugin:1.0-SNAPSHOT' --> 'io.flutter:flutter_embedding_debug:1.0.0-92ae191c17a53144bf4d62f3863c110be08e3fd3' --> 'androidx.lifecycle:lifecycle-runtime:2.2.0'
[ ] Constraint path 'com.flutter_webview_plugin:flutter_webview_plugin:1.0-SNAPSHOT' --> 'androidx.lifecycle:lifecycle-runtime:{strictly 2.1.0}' because of the following reason: debugRuntimeClasspath uses version 2.1.0
[ ] Dependency path 'com.flutter_webview_plugin:flutter_webview_plugin:1.0-SNAPSHOT' --> 'androidx.appcompat:appcompat:1.1.0' --> 'androidx.core:core:1.1.0' --> 'androidx.lifecycle:lifecycle-runtime:2.0.0'
[ ] Dependency path 'com.flutter_webview_plugin:flutter_webview_plugin:1.0-SNAPSHOT' --> 'io.flutter:flutter_embedding_debug:1.0.0-92ae191c17a53144bf4d62f3863c110be08e3fd3' --> 'androidx.fragment:fragment:1.1.0' --> 'androidx.activity:activity:1.0.0' --> 'androidx.lifecycle:lifecycle-runtime:2.1.0'
[ ] > Could not resolve androidx.lifecycle:lifecycle-runtime:2.1.0.
[ ] Required by:
[ ] project :flutter_webview_plugin > androidx.activity:activity:1.0.0
[ ] > Cannot find a version of 'androidx.lifecycle:lifecycle-runtime' that satisfies the version constraints:
[ ] Dependency path 'com.flutter_webview_plugin:flutter_webview_plugin:1.0-SNAPSHOT' --> 'io.flutter:flutter_embedding_debug:1.0.0-92ae191c17a53144bf4d62f3863c110be08e3fd3' --> 'androidx.lifecycle:lifecycle-runtime:2.2.0'
[ ] Constraint path 'com.flutter_webview_plugin:flutter_webview_plugin:1.0-SNAPSHOT' --> 'androidx.lifecycle:lifecycle-runtime:{strictly 2.1.0}' because of the following reason: debugRuntimeClasspath uses version 2.1.0
[ ] Dependency path 'com.flutter_webview_plugin:flutter_webview_plugin:1.0-SNAPSHOT' --> 'androidx.appcompat:appcompat:1.1.0' --> 'androidx.core:core:1.1.0' --> 'androidx.lifecycle:lifecycle-runtime:2.0.0'
[ ] Dependency path 'com.flutter_webview_plugin:flutter_webview_plugin:1.0-SNAPSHOT' --> 'io.flutter:flutter_embedding_debug:1.0.0-92ae191c17a53144bf4d62f3863c110be08e3fd3' --> 'androidx.fragment:fragment:1.1.0' --> 'androidx.activity:activity:1.0.0' --> 'androidx.lifecycle:lifecycle-runtime:2.1.0'
[ ] > Could not resolve androidx.lifecycle:lifecycle-common:2.0.0.
[ ] Required by:
[ ] project :flutter_webview_plugin > androidx.savedstate:savedstate:1.0.0
[ ] project :flutter_webview_plugin > androidx.lifecycle:lifecycle-livedata-core:2.0.0
[ ] > Cannot find a version of 'androidx.lifecycle:lifecycle-common' that satisfies the version constraints:
[ ] Dependency path 'com.flutter_webview_plugin:flutter_webview_plugin:1.0-SNAPSHOT' --> 'io.flutter:flutter_embedding_debug:1.0.0-92ae191c17a53144bf4d62f3863c110be08e3fd3' --> 'androidx.lifecycle:lifecycle-common:2.2.0'
[ ] Constraint path 'com.flutter_webview_plugin:flutter_webview_plugin:1.0-SNAPSHOT' --> 'androidx.lifecycle:lifecycle-common:{strictly 2.1.0}' because of the following reason: debugRuntimeClasspath uses version 2.1.0
[ ] Dependency path 'com.flutter_webview_plugin:flutter_webview_plugin:1.0-SNAPSHOT' --> 'io.flutter:flutter_embedding_debug:1.0.0-92ae191c17a53144bf4d62f3863c110be08e3fd3' --> 'androidx.lifecycle:lifecycle-common-java8:2.2.0' --> 'androidx.lifecycle:lifecycle-common:2.2.0'
[ +2 ms] Dependency path 'com.flutter_webview_plugin:flutter_webview_plugin:1.0-SNAPSHOT' --> 'io.flutter:flutter_embedding_debug:1.0.0-92ae191c17a53144bf4d62f3863c110be08e3fd3' --> 'androidx.lifecycle:lifecycle-runtime:2.2.0' --> 'androidx.lifecycle:lifecycle-common:2.2.0'
[ ] Dependency path 'com.flutter_webview_plugin:flutter_webview_plugin:1.0-SNAPSHOT' --> 'io.flutter:flutter_embedding_debug:1.0.0-92ae191c17a53144bf4d62f3863c110be08e3fd3' --> 'androidx.fragment:fragment:1.1.0' --> 'androidx.activity:activity:1.0.0' --> 'androidx.savedstate:savedstate:1.0.0' --> 'androidx.lifecycle:lifecycle-common:2.0.0'
[ ] Dependency path 'com.flutter_webview_plugin:flutter_webview_plugin:1.0-SNAPSHOT' --> 'io.flutter:flutter_embedding_debug:1.0.0-92ae191c17a53144bf4d62f3863c110be08e3fd3' --> 'androidx.fragment:fragment:1.1.0' --> 'androidx.loader:loader:1.0.0' --> 'androidx.lifecycle:lifecycle-livedata:2.0.0' --> 'androidx.lifecycle:lifecycle-livedata-core:2.0.0' --> 'androidx.lifecycle:lifecycle-common:2.0.0'
[ ] * 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 2s

![image](https://user-images.githubusercontent.com/21170493/104994136-f0e69100-5a5e-11eb-82ff-9ca1079d5770.png)

![image](https://user-images.githubusercontent.com/21170493/104994100-e4facf00-5a5e-11eb-97cb-ed85b285d5fc.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the Flutter Android build and inspect the plugin's dependency configuration, focusing on the :flutter_webview_plugin:compileDebugAidl task and the conflicting androidx.lifecycle versions shown in the log. Done means the debug build resolves the dependencies and completes without the reported task failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, flutter, java
Domain
build-system, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.