Could not find method implementation() for arguments [com.facebook.react:react-native:+]
See original GitHub issueWhen 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 ?
Issue Analytics
- State:
- Created 5 years ago
- Comments:13 (1 by maintainers)
Top 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 >
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
Just replace in
implementation() by compile()
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