jsierles / react-native-audio

Audio recorder library for React Native
MIT License
1.16k stars 539 forks source link

Could not find com.android.support:appcompat-v7:${supportVersion}. #332

Open pothos-dev opened 5 years ago

pothos-dev commented 5 years ago

Version

Tell us which versions you are using ( you can see the versions in your package.json ):

react-native-audio : 4.3.0 gradle-wrapper: 4.10.1 gradle: 3.3.0

Expected behaviour :

./gradlew app:build correctly builds the Android native code.

Actual behaviour

FAILURE: Build failed with an exception.

* What went wrong:
Could not resolve all files for configuration ':react-native-audio:debugCompileClasspath'.
> Could not find com.android.support:appcompat-v7:${supportVersion}.
  Required by:
      project :react-native-audio

The culprit here seems to be the usage of single quotes in build.gradle, which will not substitute the variable ${supportVersion}. After converting the quotes to double quotes, the library compiles.

ensargunesdogdu commented 5 years ago

I am having the same issue

maleonix commented 5 years ago

Thanks @bearbytes ;-). I have same problem with the version "react-native-audio": "^4.3.0.

anthonycaron commented 5 years ago

Same here with version "react-native-audio": "^4.3.0.

meiqi1992 commented 5 years ago

same issue, resolved? @bearbytes

nikbelikov commented 4 years ago

No hope

nxhoang commented 4 years ago

same issue, resolved? @bearbytes

as mentioned, replacing single quotes by double quotes in build.gradle (node_modules\react-native-audio\android)