reading icon indicating copy to clipboard operation
reading copied to clipboard

android编译问题

Open cwinl opened this issue 6 years ago • 3 comments

错误: 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 成功

cwinl avatar Aug 10 '19 07:08 cwinl

是降版本了吗

Richard-Cao avatar Aug 12 '19 02:08 Richard-Cao

是降版本了吗

升级版本了

cwinl avatar Aug 12 '19 02:08 cwinl

是降版本了吗

升级版本了

👍,可以提个pr

Richard-Cao avatar Aug 12 '19 08:08 Richard-Cao