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.

Could not find method implementation() for arguments [com.facebook.react:react-native:+]

See original GitHub issue

When following the guide for android I got the following failure:

* What went wrong:
A problem occurred evaluating project ':react-native-languages'.
> Could not find method implementation() for arguments [com.facebook.react:react-native:+] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

Found that someone had the same issue in another repo: https://github.com/ajaysaini-sgvu/react-native-schedule-sms/issues/2 (TLDR change implementation to compile in build.gradle line: 24)

So i tried the same fix for this repo and it solved the issue. Is there something i’m missing here ?

https://github.com/react-community/react-native-languages/blob/6f8404e53fd22783bdcb7d6881ff612522337e37/android/build.gradle#L24

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:13 (1 by maintainers)

github_iconTop GitHub Comments

19reactions
gploteaucommented, Oct 14, 2018

Just replace in

node_modules/react-native-languages/android/build.gradle line: 24

implementation() by compile()

12reactions
denerFernandescommented, Sep 26, 2018

For me the solution was this:

Update dependencies in: /android/build.gradle (line 12) for: classpath 'com.android.tools.build:gradle:3.0.1'

After update version for Gradle in /android/gradle/wrapper/gradle-wrapper.properties to gradle-4.1-all.zip distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip

And run react-native run-android

Read more comments on GitHub >

github_iconTop Results From Across the Web

Could not find method compile() for arguments [com.facebook ...
This is how I resolved the issue. Step 1 -> Go to node_modules/react-native-os/android/build.gradle. Step 2 -> Under dependencies - ...
Read more >
react-native build error: Could not find method implementation ...
I have kept android emulator running. This is the error I get when I run react-native run-android : error Failed to install the...
Read more >
Fix "Error Could not find method implementation() for ...
In case you are using the “implementation” configuration in an older version of Gradle, the Gradle will not recognize it and throw this...
Read more >
Could not find method compile() for arguments [com.facebook ...
Could not find method compile() for arguments [com. facebook. react : react - native :+] on object. 46 views 3 weeks ago.
Read more >
Error Could not find method implementation for arguments
Hello @kartik,. Make sure your gradle version 3.. or higher before using "implementation" . Open project level gradle file under dependencies
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