Android应用程序在USB调试中工作,但在Android模拟器(白屏)中不做

发布于 2025-01-27 22:51:49 字数 512 浏览 2 评论 0 原文

我使用Visual Studio Code运行“离子Cordova运行Android”。但是,这些应用在模拟器中显示了白屏幕。如果使用USB调试,则可以正确显示。如果使用APK安装,则该设备还正确显示。想要使用仿真器,因为我想调试“ http://10.0.2.2” ..这是我的仿真器设置..

仿真器设置

我所做的事情是按照选择

  1. 角度(D3D11)的openGL es渲染器在模拟器预先设置下
  2. 选择软件-GLES 2.0在创建模拟器期间
  3. 尝试r和q的 模拟性能的图形图形在创建虚拟设备期间的系统映像中,
  4. 基于模拟器设置的系统图像

系统图像选择

I run "ionic cordova run android" using visual studio code.. but the apps shows white screen in the emulator.. it display properly if using USB debugging.. the device also display properly if install using the apk.. the reason why I want to use emulator because I want to debug "http://10.0.2.2".. this is my emulator setting..

Emulator setting

Things that I have done is as per below

  1. Choose ANGLE (D3D11) for OpenGL ES Renderer at the emulator advance setting
  2. Choose Software - GLES 2.0 graphic for the Emulated Performance during create emulator
  3. Try both R and Q for the system image during create the virtual device
  4. Update the SDK based on the system image set at the emulator

System image selection

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

浅笑轻吟梦一曲 2025-02-03 22:51:49

问题

  • 我在不同的笔记本电脑(笔记本电脑A)上编译了源代码,并使用Google Inspect在Web控制台上显示错误显示
  • “ newTrustedFunctionForjit fn.bind fn.bind bind bind bind bind bind bind bind bind bind bind bind not函数”。

启动

  • 该问题与Chrome版本83有关而且浏览器需要升级来解决该问题。模拟器
  • 没有使用浏览器(使用Web视图),因此我无法更新Google版本

解决方案

  • ,将新的Android模型的新皮肤下载到笔记本电脑上,
  • 在笔记本电脑B上下载相同的皮肤(我最初随附这篇文章的笔记本电脑

是github的解释,

关于Chrome问题的解释

下面是我的新系统图像

  • 发行名称S
  • API级别31
  • ABI X86_64
  • 目标Android 12(Google API)

Issue

  • I compile the source code at different laptop (Laptop A) and it manage to display error at the web console using google inspect
  • it display "newtrustedfunctionforjit fn.bind is not a function"..

Founding

  • the issue is related to the chrome version 83 and the browser need an upgrade to solve the issue
  • The emulator is not using a browser (it using web view) hence I cannot update the google version

Solution

  • download new skin for newer android model into laptop A
  • download same skin on the laptop B (the laptop that I initially come with this post)

Below is the explanation from GitHub for angular

Explanation about the chrome issue

Below is my new System Image

  • Release Name S
  • API Level 31
  • ABI x86_64
  • Target Android 12 (Google APIs)

New System Image

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