Android monitor.exe不支持jdk8以上

Layout Inspector

Android studio自带的Layout Inspector不能检查第三方app的界面元素, 只能检查debug编译类型的app的界面元素.

如果想获取第三方app的界面布局情况, 有三种办法

  1. 使用"开发助手专业版App", 网上搜一下在手机装上, 在手机上能在浮层上看到界面布局的轮廓和View的名字, 这个办法如果碰到界面比较复杂的情况, 会很难显示
  2. 使用无障碍模式自己写一个App, 可以在无障碍模式里面获取界面上所有的Text和所有的View的id Rect范围
  3. 使用monitor.exe

使用monitor.exe

使用的路径是

Android\Sdk\tools\lib\monitor-x86\monitor.exe

点击后报错

因为Android monitor.exe不支持jdk8以上, 参考资料

https://stackoverflow.com/questions/18459945/how-to-solve-could-not-create-the-virtual-machine-error-of-java-virtual-machine

https://stackoverflow.com/questions/46577610/android-device-monitor-not-opening

https://blog.csdn.net/qq_34388113/article/details/123902943

https://developer.android.com/studio/profile/monitor?hl=zh-cn


相关推荐
峥嵘life14 小时前
Android16 EDLA中GMS导入和更新
android·linux·学习
Huanzhi_Lin14 小时前
验证apk签名
android·apk签名·apksigner
独自破碎E15 小时前
【大顶堆+小顶堆】数据流中的中位数
android
得一录15 小时前
Android AIDL 在智能体和IOT设备中的使用
android·人工智能·物联网·aigc
独行soc15 小时前
2026年渗透测试面试题总结-1(题目+回答)
android·开发语言·网络·安全·web安全·渗透测试·php
IT瑞先生15 小时前
php unicode与中文互转
android·开发语言·php
aqi0016 小时前
FFmpeg开发笔记(九十九)基于Kotlin的国产开源播放器DKVideoPlayer
android·ffmpeg·kotlin·音视频·直播·流媒体
Heynchy16 小时前
Android 注解的重要元素【Retention】【三】
android·java·开发语言
故事不长丨17 小时前
《Android EventBus详解与实战:从入门到精通,组件通信不再难》
android·事件·eventbus·广播·组件通信
橙子1991101617 小时前
Kotlin 中的继承与实现
android