Skip to content
This repository has been archived by the owner on Apr 27, 2022. It is now read-only.

Build fails after updating to 1.3.0 #60

Closed
1 of 2 tasks
SergiOnGit opened this issue Nov 20, 2021 · 2 comments
Closed
1 of 2 tasks

Build fails after updating to 1.3.0 #60

SergiOnGit opened this issue Nov 20, 2021 · 2 comments

Comments

@SergiOnGit
Copy link

Description

After updating to version 1.3.0 from 1.2.1 I can't run app. Build fails with error:

`Execution failed for task ':app:checkDebugAarMetadata'.

Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
Could not resolve androidx.work:work-runtime:{strictly 2.6.0}.
Required by:
project :app > project :react-native-admob_admob
> Cannot find a version of 'androidx.work:work-runtime' that satisfies the version constraints:
Dependency path 'mycustomappid:app:unspecified' --> 'mycustomappid:react-native-admob_admob:unspecified' --> 'androidx.work:work-runtime:{strictly 2.6.0}'
Dependency path 'mycustomappid:app:unspecified' --> 'mycustomappid:react-native-admob_admob:unspecified' --> 'com.google.android.gms:play-services-ads:20.5.0' --> 'com.google.android.gms:play-services-ads-lite:20.5.0' --> 'androidx.work:work-runtime:2.7.0'

Could not resolve androidx.work:work-runtime:2.7.0.
Required by:
project :app > project :react-native-admob_admob > com.google.android.gms:play-services-ads:20.5.0 > com.google.android.gms:play-services-ads-lite:20.5.0
> Cannot find a version of 'androidx.work:work-runtime' that satisfies the version constraints:
Dependency path 'mycustomappid:app:unspecified' --> 'mycustomappid:react-native-admob_admob:unspecified' --> 'androidx.work:work-runtime:{strictly 2.6.0}'
Dependency path 'mycustomappid:app:unspecified' --> 'mycustomappid:react-native-admob_admob:unspecified' --> 'com.google.android.gms:play-services-ads:20.5.0' --> 'com.google.android.gms:play-services-ads-lite:20.5.0' --> 'androidx.work:work-runtime:2.7.0'`

Expected behavior

App should build and open.

Actual behavior & steps to reproduce

Not building. Ends with error.

Snack or minimal code example

It's not about code.

Package versions

  • React Native: 0.66.3
  • React Native AdMob: 1.3.0
  • Google Mobile Ads SDK(if specified):
  • Xcode:
  • Java & Gradle:

Affected platforms

  • Android
  • iOS - Not checked
@wjaykim
Copy link
Collaborator

wjaykim commented Nov 20, 2021

Try this solution

@SergiOnGit
Copy link
Author

@wjaykim It worked.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants