React-native-sound: Android Build Error: com.zmxv.RNSound not exists And can not found Symbol: new RNSoundPackage()

Created on 30 May 2018  路  3Comments  路  Source: zmxv/react-native-sound

Versions && Environment I use

  • react: 16.2.0
  • react-native: 0.53.3
  • react-native-sound: 0.10.9
  • Win 10
  • node 8.9.1
  • npm 5.7.1

Reproduce step

  • npm install react-native-sound --save

  • react-native link react-native-sound

  • react-native run-android

Problem

react-native-sound-error

Help, please 馃槩

Most helpful comment

I got the same issue. I managed to get passed it by manually linking it by following the instructions in https://github.com/zmxv/react-native-sound/wiki/Installation

For me, the android/app/build.gradle didn't have the compile dependency.

i.e. this step:
Edit android/app/build.gradle to declare the project dependency:

dependencies {
  ...
  compile project(':react-native-sound')
}

All 3 comments

I found a relate issue https://github.com/zmxv/react-native-sound/issues/379 But it is not the same error

I got the same issue. I managed to get passed it by manually linking it by following the instructions in https://github.com/zmxv/react-native-sound/wiki/Installation

For me, the android/app/build.gradle didn't have the compile dependency.

i.e. this step:
Edit android/app/build.gradle to declare the project dependency:

dependencies {
  ...
  compile project(':react-native-sound')
}

@SNVID thanks you! it works!

Was this page helpful?
0 / 5 - 0 ratings