Unable to build a bare RN android app after installing expo-av

Please provide the following:

  1. SDK Version: 47.0.0
  2. Platforms(Android/iOS/web/all): Android

Anyone seen an error message like below after running expo run:android?

* What went wrong:
Execution failed for task ':expo-av:extractReactNativeAARRelease'.
> Expected directory '/node_modules/react-native/android' to contain exactly one file, however, it contains no files.

I’m using react-native: “0.71.0”,“expo”: “^47.0.0”, and “expo-av”: “~13.0.2”.
i’ve done the following:

  1. npx react-native init [project-name]
  2. cd [project-name]
  3. npx install-expo-modules@latest
  4. npx install expo-av
  5. add the permission in the androindManifest.xml file.
  6. expo run:android

are there any steps I’ve missed?

Hi @kcc1

Sorry, I don’t know the answer your question. But maybe this will give you some hints:

npx create-expo-app project-name
cd project-name
npx expo install expo-av
# add the permission in `app.json` (although I think that's handled automatically)
npx expo prebuild -p android

Verify that works. Then compare it with your bare RN app to see what might be the problem.

1 Like

@kcc1 any solution you found ? i am facing the same issue

Hi @studentsite.tk

Do you also have a Bare app?

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.