Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

运行到Android APP 模拟器:pnpm dev:app,修改代码热更新无效,每次修改项目都需要在 HBuilderX 选择运行到模拟器才能更新 #41

Open
taomin15201212 opened this issue Dec 30, 2024 · 2 comments

Comments

@taomin15201212
Copy link

Bug report(问题描述)

运行到Android APP 模拟器:pnpm dev:app,修改代码热更新无效,白屏,需要在 HBuilderX 选择运行到模拟器才能更新

Steps to reproduce(问题复现步骤)

APP 平台:pnpm dev:app,然后打开 HBuilderX,导入刚刚生成的 dist/dev/app 文件夹,选择运行到 模拟器( 开发时优先使用 ),更新项目模拟器中app不会热更新,白屏,每次修改项目都需要在 HBuilderX 选择运行到模拟器才能更新

@taomin15201212 taomin15201212 changed the title 运行到Android APP 模拟器:pnpm dev:app,修改代码热更新无效,需要在 HBuilderX 选择运行到模拟器才能更新 运行到Android APP 模拟器:pnpm dev:app,修改代码热更新无效,每次修改项目都需要在 HBuilderX 选择运行到模拟器才能更新 Dec 30, 2024
@feige996
Copy link
Owner

feige996 commented Jan 7, 2025

需要分2步来看,首先看运行到hbx里面的代码是否有热更新,如果有热更新,那就是模拟器的问题(可以考虑更新一个模拟器)。如果没有更新,那就要看看如何解决。

@nanfb
Copy link

nanfb commented Jan 8, 2025

需要分2步来看,首先看运行到hbx里面的代码是否有热更新,如果有热更新,那就是模拟器的问题(可以考虑更新一个模拟器)。如果没有更新,那就要看看如何解决。

image
hbuilder控制台有显示监测到修改
image
但是模拟器确实会出现首页白屏,修改失效。只能重启解决,我用的是mumu模拟器

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants