Uniapp使用mumu安卓模拟器来运行调试的方法

[ 2024-05-07 14:20:11 | 作者: admin ]
字号: | |
p.s. 我在hbuilderx中设置mumu模拟器端口,然后指定了android studio的adb完整路径,没有设置环境变量path就可以正常调试了



1、设置Mumu的显示为手机竖屏
attachments/202405/07_142206_6522fa13a7524c56bfd46cfc550d5243.png


2、查看运行模拟器的端口号
attachments/202405/07_142351_07fb6472dafc46889388c2775ce9dc82.png
attachments/202405/07_142355_92aa565382aa4e9594a64533c0742589.png
attachments/202405/07_142403_fae79b21d04546f198d1ba00342b8f10.png
attachments/202405/07_142408_21e1c15ae3064fe49de9178cfb815f67.png




3、uni-app里设置ADB
uni-app里步骤:运行 ===> 运行到手机或模拟器 ===> ADB路径设置
attachments/202405/07_142642_f7c088537d114f36bab6ee136c022774.png


  settings.json
attachments/202405/07_142748_b0e9759e5ea443089874e69d6a3c845e.png



4、配置环境变量(这一步我没有操作,只要第三步指定adb路径了也可以正常运行)
attachments/202405/07_143050_bb1d64fb52a745e796d60e04e91cb7aa.png
attachments/202405/07_143150_2dbf58200f6146fc9b1a808d03f89d81.png




文章来源:
https://blog.csdn.net/Seven_Ting/article/details/136443622
[最后修改由 admin, 于 2024-06-28 21:49:52]
评论Feed 评论Feed: http://blog.xg98.com/feed.asp?q=comment&id=2968

这篇日志没有评论。

此日志不可发表评论。