3.6.0 update causes `Could not find method ktlint() for arguments [com.pinterest:ktlint:0.40.0]` error
See original GitHub issueDescription
When upgrading to 3.6.0 Android build fails with the following error:
FAILURE: Build failed with an exception.
* Where:
Build file 'node_modules/react-native-screens/android/build.gradle' line: 61
* What went wrong:
A problem occurred evaluating project ':react-native-screens'.
> Could not find method ktlint() for arguments [com.pinterest:ktlint:0.40.0] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
Screenshots
Steps To Reproduce
- Build Android project with
react-native-screens@3.6.0
Expected behavior
It builds successfully 🤞
Actual behavior
It throws the above error ⬆️
Package versions
- React: 17.0.1
- React Native: 0.63.3
- React Native Screens: 3.6.0
Our setup is a monorepo, if it’s relevant.
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Going through integration with gradle without pluign does not ...
with error message: Could not find method ktlint() for arguments [com.github.shyiko:ktlint:0.23.1] on object of type org.gradle ...
Read more >Could not find method kotlin() for arguments [gradle-plugin ...
Could not find method kotlin() for arguments [gradle-plugin, 1.3.20] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.
Read more >Changelog and Migration Guide - Pre 1.0.0 - Detekt
The following how-to guide describes the migration process from the test-pattern functionality. Gradle Plugin: Including or excluding paths and files from ...
Read more >diffplug/spotless - Gitter
tells me that replace is not in java: > Could not find method replace() for arguments [ , ] on object of type...
Read more >Fix "Error Could not find method implementation() for ...
Fix “Error Could not find method implementation() for arguments [com.android.support:appcompat-v7:26.0.0]” in Android Studio · Method 1: Update ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I’ve tested the fix and it works, thank you @kacperkapusciak 🙌 Looking forward to the next release.
@ElviraBurchik Sure! Sorry for not waiting just a little bit longer with merging this PR. Just let me know and I’ll reopen if It didn’t help.