question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

3.6.0 update causes `Could not find method ktlint() for arguments [com.pinterest:ktlint:0.40.0]` error

See original GitHub issue

Description

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

  1. 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:closed
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ElviraBurchikcommented, Sep 7, 2021

I’ve tested the fix and it works, thank you @kacperkapusciak 🙌 Looking forward to the next release.

0reactions
kacperkapusciakcommented, Sep 6, 2021

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found