Caused by: org.gradle.api.InvalidUserDataException: Cannot change resolution strategy of dependency configuration ':app:lintChecks' after it has been resolved.

This issue has been created since 2022-11-14.

Description

Caused by: org.gradle.api.InvalidUserDataException: Cannot change resolution strategy of dependency configuration ':app:lintChecks' after it has been resolved.

Version

0.63.5

Output of npx react-native info

Caused by: org.gradle.api.InvalidUserDataException: Cannot change resolution strategy of dependency configuration ':app:lintChecks' after it has been resolved.

Steps to reproduce

Caused by: org.gradle.api.InvalidUserDataException: Cannot change resolution strategy of dependency configuration ':app:lintChecks' after it has been resolved.

Snack, code example, screenshot, or link to a repository

Caused by: org.gradle.api.InvalidUserDataException: Cannot change resolution strategy of dependency configuration ':app:lintChecks' after it has been resolved.

Mattimus333 wrote this answer on 2022-11-15

Me and my team have also been seeing this issue since earlier last week after upgrading 0.64.0 to 0.64.4

It seems to only happen when gradle syncing. Building the app via react-native run android is working fine.

It was also mentioned by @lumairink here: #35210 (comment)

@lumairink any luck with that one yet?

xclidongbo wrote this answer on 2022-11-15

I noticed this too. But no matter how I clean up, the error still shows.

colaquecez wrote this answer on 2022-11-15

same here

colaquecez wrote this answer on 2022-11-15

I was able to fix it by increasing my gradle version to com.android.tools.build:gradle:4.2.2

Mattimus333 wrote this answer on 2022-11-15

@colaquecez you are my hero!!

cortinico wrote this answer on 2022-11-23

I was able to fix it by increasing my gradle version to com.android.tools.build:gradle:4.2.2

This is a valid fix, closing.
On top of this, please consider upgrading to a higher version of React Native

More Details About Repo
Owner Name facebook
Repo Name react-native
Full Name facebook/react-native
Language JavaScript
Created Date 2015-01-09
Updated Date 2022-12-10
Star Count 106395
Watcher Count 3660
Fork Count 22685
Issue Count 2288

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
Hammer: Overlay projection distance property is number field instead of using the box helper 1 2022-11-01 2022-11-19
Old cron job not deleted when I changed (removed) cron in file sidekiq_schedule.yml 7 2019-12-23 2022-12-03
Is there a way to use multiple colours on a remote SVG file? 0 2022-08-18 2022-11-26
[Bug]: Creating a new file in the store, from the file explorer fills the file with least opened file 0 2022-08-31 2022-11-23
Use UTF-8 code pages in Windows *Server* apps 0 2022-11-23 2022-12-02
[enhancement] Provide FromMeta for `Expr` 1 2022-03-06 2022-11-27
Document purpose of tool0_controller frame 0 2022-11-08 2022-12-03
How to disable ethers 429 error retries? 1 2022-10-29 2022-10-27
Feature Request Allow setting of gas prices / premium in provider 1 2022-10-27 2022-10-27
Microsoft PowerToys 是一组实用工具,可帮助高级用户调整和简化其 Windows 10 体验,从而提高工作效率 1 2021-08-17 2022-09-19
Таяры слишком мощные 3 2022-06-11 2022-08-17
path.extname is deprecated. 0 2022-10-05 2022-10-30
Make automatic failing normative 1 2020-02-03 2022-12-03
[Bug]: Failed to enable plugin in 1.0 0 2022-11-15 2022-12-02
[Feature]: Links with other kanban files items 0 2022-11-22 2022-12-02
Where i can find Assembler mnemonics for RISC-V ? 1 2022-05-19 2022-11-26
Apply/Sync button not showing 0 2022-02-25 2022-11-23
Additional deploy guides 2 2022-09-09 2022-11-16
It seems like ./ breaks matching. 7 2021-03-04 2022-11-30
Stops working when Octave-app runs 4 2020-03-21 2022-10-11
CloneOnSelect - false with multiselect ajax data 1 2021-10-11 2022-11-06
Revise Panes available by Role 0 2021-08-27 2022-10-26
support @apply in style block of sfc 2 2021-04-17 2022-11-28
Links to components in readme are incorrect, lead to Page Not Found 2 2022-04-05 2022-11-30
Update user guide with Azure Event Hubs setup 0 2021-10-07 2022-08-17
How much time is required to train the model? 3 2021-12-23 2022-11-30
Avoid docker login issue with X11 11 2021-01-22 2022-12-07
Module no 9 lab instructions 1 2022-06-16 2022-10-05
Plug-ins don't work in windows 1 2022-09-15 2022-11-18
Functions with Redundant @objc attributes 0 2022-07-29 2022-08-01
Duplicate build file warning file in Compile Sources 0 2022-07-30 2022-08-01
[bug] Swiping up + down in "Speak" and "Validate" (all languages)(smartphone) 2 2021-12-08 2022-11-29
[BUG] Matrix tests fail on stream9 5 2022-07-28 2022-09-22
Partioned column not found when metadata is not available. 5 2022-02-10 2022-12-02
Visual CSS Regression testing 8 2015-04-06 2022-10-07
cloudflared tunnel --help doesn't list the --protocol option 2 2022-03-14 2022-10-12
[feat] Add a function to tauri::api::file that can write to a file. 6 2022-06-02 2022-12-01
Update visual studio vsix version to match vscode 0 2022-07-31 2022-09-29
x/vulndb: potential Go vuln in github.com/spinnaker/spinnaker: CVE-2021-43832 0 2022-02-04 2022-09-25
Mirror not working properly in Special Styled maps for osu!mania 5 2021-12-17 2022-12-02
nn.functional No-batch-dim support should have OpInfo examples 0 2022-02-10 2022-11-08
Automatically parsing numbers as `Number`. How to allow `BigInt`? 4 2021-08-31 2022-10-01
Upgrade Python to Version 3.9+ or later 1 2021-10-18 2022-09-07
Simple `delete` for objects allocated by `new T[]` in gpcloud 0 2022-07-18 2022-11-21
Simplified parameters, nullable means optional 23 2022-05-11 2022-10-26
Links in comments aren't clickable 2 2020-07-02 2022-11-30
Issue with matplotlib widget 2 2022-06-09 2022-09-20
How to change mujoco model parameters to pytorch tensor? 6 2022-05-10 2022-08-13
stdenv.lib is depreciated! 2 2021-06-17 2022-11-24
How do I embed an Info.plist / add arbitrary linker args? 8 2022-01-25 2022-10-04