I used react-native-camera in my project and got this error:
A problem occurred evaluating project ':react-native-camera'.
Could not find method compileOnly() for arguments [com.facebook.react:react-native:+] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
Can anyone help me?