attentiveness / attentiveness/reading

android编译问题

Open
#140 3 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.