zmxv / react-native-sound

React Native module for playing sound clips
MIT License
2.79k stars 748 forks source link

Could not find method compileOnly() for arguments [com.facebook.react:react-native:+] #568

Closed rishabhrathod01 closed 5 years ago

rishabhrathod01 commented 5 years ago

Could not find method compileOnly() for arguments [com.facebook.react:react-native:+]

Hi,

I get this error when i try to run on android :

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

react-native --version

react-native-cli: 2.0.1 react-native: 0.56.1

hinhinvn1111111 commented 5 years ago

change compileOnly to compile. it works for me. good luck

rishabhrathod01 commented 5 years ago

Yeah, even i am doing the same to make it work for now but i couldn't understand the reason why it works.If you can help me with understanding differences between compileOnly, compile and implementation it will be great help