i setup dev environment用于我的新M1笔记本电脑,并在尝试构建Android上的New Architecture时面临奇怪的错误:
[CXX1428] exception while building Json
A problem occurred starting process
'command /Users/my/Library/Android/sdk/cmake/3.22.1/bin/cmake'
- 我被设法修复了它以删除所有缓存:
rm -rf android/app/build/ android/app/.cxx/
./android/gradlew clean -p android
- 并重新安装了一些Android SDK组件:
2.1打开Android Studio
->打开Settings
->然后Appearance & Behavior
-> System Settings
-> Android SDK
->选择SDK Tools
->启用Show Package Details
2.2,然后取消标记所有CMake
,NDK
,Command build tools
版本:
2.3然后Apply
2.4最后再次安装:
-
latest
命令行工具 -
3.22.1
cmake -
23.1.7779620
ndk