Skip to content
This repository has been archived by the owner on Aug 21, 2020. It is now read-only.

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

Open
pothos-dev opened this issue Jul 12, 2019 · 6 comments · May be fixed by #333
Open

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

pothos-dev opened this issue Jul 12, 2019 · 6 comments · May be fixed by #333

Comments

@pothos-dev
Copy link

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
Copy link

I am having the same issue

@maleonix
Copy link

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

@anthonycaron
Copy link

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

@meiqi1992
Copy link

same issue, resolved? @bearbytes

@nikbelikov
Copy link

No hope

@nxhoang
Copy link

nxhoang commented Feb 18, 2020

same issue, resolved? @bearbytes

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
7 participants