从Expo SDK 40更新到Expo SDK 41后,Android Studio赢得了启动模拟器
我要在Mac M1上启动仿真器,它会启动手机仿真器,但是我的项目没有上传到手机上。
我在终端中遇到此错误:
›在Android上打开... ›打开模拟器Pixel_5_API_33 ›开放经验://172.16.100.190:19000 on Pixel_5_api_33 无法在Android上启动项目:运行ADB的错误:ADB:无法安装/user/me/.expo/android-apk-cache/exponent-2.19.7.apk:fafer [install_failed_insuff_istafity_storage] > 按 ? │显示本下载的所有命令
比预期的要长。您也可以尝试尝试从网站上下载客户端 https://expo.dev/tools ⠦在Pixel_5_api_33上安装Expo GO 2.19.7
iOS模拟器似乎工作正常
I go to start emulator on my mac m1 and it'll bring up the phone emulator however my project is not uploaded to the phone.
I am getting this error in the terminal:
› Opening on Android...
› Opening emulator Pixel_5_API_33
› Opening exp://172.16.100.190:19000 on Pixel_5_API_33
Couldn't start project on Android: Error running adb: adb: failed to install /Users/me/.expo/android-apk-cache/Exponent-2.19.7.apk: Failure [INSTALL_FAILED_INSUFFICIENT_STORAGE]
› Press ? │ show all commands
This download is taking longer than expected. You can also try downloading the clients from the website at https://expo.dev/tools
⠦ Installing Expo Go 2.19.7 on Pixel_5_API_33
The ios emulator seems to be working fine
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我只是为自己解决了这个问题,看来您的模拟器没有分配的存储空间。
这是您可以增加模拟器上的存储的方式
我的仿真器我增加了设备
内部存储
to <<<代码> 8GB 并启用no sdcard
。这使我能够在M1 Silicon Chip MacBook上运行时在Android上模仿我的Expo React-native应用程序。I just solved this issue for myself, it appears your emulator doesn't have enough storage assigned to it.
Here's how you can increase the storage on your emulator
For my emulator I increased the device
Internal Storage
to8GB
and enabledNo SDCard
. This has allowed me to emulate my expo react-native app on Android while running on my M1 silicon chip MacBook.