Task :expo-av:configureCMakeDebug[arm64-v8a] FAILED

This issue has been created since 2022-11-20.

Description

I shifted to M1 machine and getting this error for expo-av, I couldn't find anything related to this error, it is happening only in android.

Command used to run project: npx react-native run-android Build Error:

> Task :expo-av:configureCMakeDebug[arm64-v8a] FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':expo-av:configureCMakeDebug[arm64-v8a]'.
> [CXX1405] exception while building Json A problem occurred starting process 'command '/Users/macbook/Library/Android/sdk/cmake/3.18.1/bin/cmake''

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

Package.json:

"expo": "^46.0.0",
"expo-av": "~12.0.4",
"react-native": "0.69.6",

I have created a detailed SO question also -> https://stackoverflow.com/q/74497904/11685381

If anyone need any more details, please feel free to ask, I'm happy to provide, I just can't get past this error.

Version

0.69.6

Output of npx react-native info

info Fetching system and libraries information...
System:
OS: macOS 12.5
CPU: (8) arm64 Apple M1
Memory: 551.00 MB / 16.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 19.0.1 - /opt/homebrew/bin/node
Yarn: 1.22.19 - /opt/homebrew/bin/yarn
npm: 7.24.2 - ~/Desktop/myproject/node_modules/.bin/npm
Watchman: Not Found
Managers:
CocoaPods: 1.11.3 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.1, iOS 16.1, macOS 13.0, tvOS 16.1, watchOS 9.1
Android SDK:
API Levels: 29, 30, 31, 33
Build Tools: 30.0.3, 31.0.0, 33.0.0
System Images: android-31 | Google APIs ARM 64 v8a, android-31 | Google Play ARM 64 v8a, android-33 | Google APIs ARM 64 v8a, android-33 | Google Play ARM 64 v8a
Android NDK: Not Found
IDEs:
Android Studio: 2021.3 AI-213.7172.25.2113.9123335
Xcode: 14.1/14B47b - /usr/bin/xcodebuild
Languages:
Java: 11.0.17 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.0.0 => 18.0.0
react-native: 0.69.6 => 0.69.6
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found

Steps to reproduce

I was able to reproduce exact build issue, below are the steps that I followed, I have also created a repo if anyone wants...

  1. on an M1 MacBook -> npx react-native init m1project --version 0.69.6
  2. npx react-native run-android -> It was working.
  3. npx [email protected]
  4. npx expo install expo-av
  5. npx react-native run-android -> Got the same build error as mentioned in the title and SO question.

Snack, code example, screenshot, or link to a repository

Here is the link of repo that I created: https://github.com/theartificialguy/rn-m1

mai-hu-mukesh-parmar wrote this answer on 2022-11-22

Open Android Studio -> SDK Manager -> SDK Tools -> CMake
uncheck the check options and install it again and try to build it again

cortinico wrote this answer on 2022-11-23

That's unrelated to React Native but it's a Expo AV issue:
https://github.com/expo/expo/tree/master/packages/expo-av

So please an issue on https://github.com/expo/expo/issues instead

More Details About Repo
Owner Name facebook
Repo Name react-native
Full Name facebook/react-native
Language JavaScript
Created Date 2015-01-09
Updated Date 2022-12-10
Star Count 106395
Watcher Count 3660
Fork Count 22685
Issue Count 2288

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
Only 6 Images are getting Trained - Sparsity Training 0 2021-01-05 2022-08-22
RuntimeError: shape '[1024, 512, 3, 3]' is invalid for input of size 4554552 1 2021-01-14 2022-09-13
UnboundLocalError: Caught UnboundLocalError in DataLoader worker process 0. 1 2020-12-24 2022-08-22
Implement test programs for `assert()` 0 2022-06-14 2022-10-21
[Other] Name of downloaded File contains (escaping?) character '+' 7 2022-03-22 2022-10-05
Command center feature/client 1 2021-11-19 2022-05-17
Help, how to set batch to 2 or more on one GPU! 3 2019-07-03 2022-09-27
how to infer one image? 3 2019-07-17 2022-11-01
A little bug in test script 1 2019-08-26 2022-10-06
test my images error 38 2019-06-06 2022-09-24
Start tilix using XWayland 1 2021-12-08 2022-10-06
[BUG] Missing route_N attributes for some route relations 0 2022-02-05 2022-12-03
Doesn't work in Safari 0 2021-05-17 2022-11-29
Xcode 13 SPM warning 0 2022-01-04 2022-11-26
Level "Restore file from the past" canot be finished with "cards" 1 2021-04-24 2022-11-01
integrity could not be verified on 26 Sep built 1 2021-10-01 2022-11-08
current windows lost focus when mouse move across monitor 1 2021-08-11 2022-12-07
Switching branch in non bare repo brings up newtr 1 2021-04-22 2022-11-23
possible to update to vite.js? 1 2021-03-03 2022-09-12
os.read on Windows fails to end reading sometimes 2 2022-03-14 2022-11-13
Making it machine-translatable will make hts-specs available to more people on the planet. 11 2021-08-16 2022-11-26
"RuntimeError: Racing with another loop to spawn a process" when spawning many processes from multiple threads 0 2022-10-28 2022-11-25
interface3.pdf: about variants 2 2022-02-28 2022-12-03
foreign key on update/delete cascade 1 2021-10-13 2022-09-09
Blog post import/export 4 2019-03-16 2022-11-13
hysteria 0.7.0 can't run as server mode? 1 2021-04-28 2022-10-30
Support Europe/Spain region 0 2022-11-23 2022-12-02
Process substitutions are broken with magic syntax 6 2021-08-11 2022-10-29
How do you make everyone invisible but not yourself? 2 2021-10-12 2022-10-29
`fisher list` should show me both what I have now and what I'll have after `fisher update` 4 2020-11-10 2022-10-18
BigInt default type mappings table shows INT instead of BIGINT for MySQL 0 2022-10-27 2022-11-18
[Doc] add MMHuman3D link 0 2021-12-03 2022-04-25
[MultiplayerSample]Client can not connect to Server if using TCP protocol and enable MulitplayerCompression Gem 1 2022-06-10 2022-10-09
[BUG] - 'calculate-min-required-utxo' function crashes with --byron-era parameter 0 2022-07-22 2022-10-16
`personal_data` FAQ entry is outdated 15 2021-09-11 2022-11-15
Ctrl+Z and Ctrl+U on Windows 7 2021-07-11 2022-12-01
TypeError: Cannot destructure property 'task' of 'c' as it is null. 1 2021-12-01 2022-01-10
Can't connect to database after update docker image to 1.25.0 14 2022-05-26 2022-11-05
.AspNetCore.Identity.Application cookie is set to session cookie when I add Additional Claims 2 2021-09-08 2022-11-04
Error building rocBLAS for gfx1030 (on gfx10 branch) 5 2021-02-07 2022-11-18
Add Support for MicroProfile Metrics 3 2019-12-11 2022-12-01
package isn't available on npm 2 2021-10-07 2022-11-24
Move executable options into config.php 4 2021-05-18 2022-11-16
Unable to mock vararg methods where the last parameter is not variable 0 2022-10-24 2022-12-09
Check CMake Project Name vs Module 0 2022-05-10 2022-11-20
it shouldnt ask in a notification if the info has already being submited 1 2022-11-08 2022-12-01
bump up Log4j-core version to 2.15.0 0 2021-12-10 2022-11-09
Remove repeated calls to reward/power actors to get data inside OnDeferredCronEvent 1 2021-09-21 2022-12-03
Add Ingester information into `queries` system table 1 2022-05-10 2022-11-20
🐛[BUG]水印穿透,应如何防穿透 1 2021-11-04 2022-01-16