react-native-i18n icon indicating copy to clipboard operation
react-native-i18n copied to clipboard

Not compile()

Open ViktorWong opened this issue 2 years ago • 3 comments

error: Could not find method compile() for arguments [com.facebook.react:react-native:+] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler

need to change compile() 为 implementation

ViktorWong avatar May 17 '22 09:05 ViktorWong

Need to edit build.gradle (Inside the node_module/react-native-i18n)

replace compile to implementation

dependencies {
  implementation "com.facebook.react:react-native:+" // From node_modules
}

Manjeetsingh18 avatar May 17 '22 21:05 Manjeetsingh18

Thanks @Manjeetsingh18 . This worked for me. I believe it isn't merged in master yet. Do we have any existing patch version which contains this change?

himu243 avatar Nov 26 '22 08:11 himu243