| ----------- | --- |
| Version | 0.24.3 |
| Affected OS | android |
| OS Version | mac v10 |
Building android project quickly fails with:
Error:(29, 1) A problem occurred evaluating project ':react-native-device-info'.
Could not find method implementation() for arguments [com.facebook.react:react-native:+] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
I expected the android project to build.
I saw some of the PRs that went into making sure RN .57 would work with this library, and I thought I upgraded to the right version (0.24.3). Is there anything else I need to do to make it work?
Thanks!
Which version of the Android Gradle plugin are you using? implementation (instead of compile) is only available in v3.0.0 and later.
You were right, thank you!
my Gradle version is 2.14 锛宎s @sonicdoe said: implementation (instead of compile) is only available in v3.0.0 and later.
so i can not ues this solution .
my solution:
/node_modules/react-native-device-info/android/build.gradleimplementation with compile before:

after:

react-native run-androidit work for me !!!
Or stick to 0.24.2 :)