AlexanderZaytsev / react-native-i18n

React Native + i18n.js
MIT License
2.18k stars 491 forks source link

Not compile() #292

Open ViktorWong opened 2 years ago

ViktorWong commented 2 years ago

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

Manjeetsingh18 commented 2 years ago

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
}
himu243 commented 1 year ago

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?