Skip to content

android编译问题 #140

@cwinl

Description

@cwinl

错误:
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问题

参考如下链接:
zoontek/react-native-localize#13 (comment)

编辑 android/build.gradle 和 android/gradle/wrapper/gradle-wrapper.properties
修改为3.0.1 和4.1

然后react-native run-android 成功

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions