Android 模拟器启动后立即关闭

Android emulator instant closing after starting up

我创建了新项目。

当我在tns device --available-devices的时候。一切似乎都还好。

Available emulators
┌─────────────┬──────────┬─────────┬───────────────────┬──────────────────┬────────────┐
│ Device Name │ Platform │ Version │ Device Identifier │ Image Identifier │ Error Help │
│ test        │ Android  │ 7.1.1   │                   │ test             │            │
└─────────────┴──────────┴─────────┴───────────────────┴──────────────────┴────────────┘

当我做 tns run android 时,某些东西打开和关闭的速度很快(~1 秒)。

Heretns run android --log trace

我是全新的,我尝试了很多其他人的东西,但没有任何效果。

重新安装模拟器可能会导致缓存问题 &我个人建议您将手机用作更高效的模拟器

  1. 连接手机和 pc/laptop
  2. 之间的 USB 数据线
  3. 从您的手机启用开发者选项
  4. 启用 USB 调试

繁荣,现在您可以测试您的应用了