从Expo SDK 40更新到Expo SDK 41后,Android Studio赢得了启动模拟器

发布于 2025-02-11 19:48:26 字数 507 浏览 1 评论 0原文

我要在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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

讽刺将军 2025-02-18 19:48:26

我只是为自己解决了这个问题,看来您的模拟器没有分配的存储空间。
这是您可以增加模拟器上的存储的方式

我的仿真器我增加了设备内部存储 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 to 8GB and enabled No SDCard. This has allowed me to emulate my expo react-native app on Android while running on my M1 silicon chip MacBook.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文