attentiveness / attentiveness/reading
android编译问题
- Dominant language
- JavaScript
- Stars
- 3.4k
- Forks
- 868
- PR merge metrics
- No merged PRs in 30d
Description
错误:
Could not find method implementation() for arguments [com.facebook.react:react-native:+] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
怀疑是gradle问题
参考如下链接:
https://github.com/react-native-community/react-native-localize/issues/13#issuecomment-424871956
编辑 android/build.gradle 和 android/gradle/wrapper/gradle-wrapper.properties
修改为3.0.1 和4.1
然后react-native run-android 成功
Contributor guide
Research direction
Start with android/build.gradle and android/gradle/wrapper/gradle-wrapper.properties, then run react-native run-android to reproduce the reported implementation() error. The report mentions versions 3.0.1 and 4.1 and says the build succeeded afterward; done means confirming the Android build works with the documented configuration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, javascript, react-native
- Domain
- build-system, mobile
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100