简体   繁体   English

Android Studio Bumblebee 布局检查器实时渲染不起作用

[英]Android Studio Bumblebee Layout inspector live rendering not working

Layout inspector live inspection stopped working when I upgraded my Android studio to Bumblebee 2021.1.1.当我将 Android 工作室升级到 Bumblebee 2021.1.1 时,布局检查员实时检查停止工作。 Patch 2. It used to work before.补丁2。它曾经工作过。 It shows "Activity must be hardware accelerated for live inspection" I added hardwareAcceleration to true for my activity.它显示“活动必须为实时检查进行硬件加速”我为我的活动添加了 hardwareAcceleration 为 true。 But it didn't help.但这没有帮助。 Did anybody notice this?有没有人注意到这一点? 在此处输入图像描述

I had this problem with Android Studio Electric Eel (Canary) and adding the hardwareAccelerated tag to the manifest didn't work, but adding this to onCreate in the main activity did the trick:我在使用 Android Studio Electric Eel (Canary) 时遇到了这个问题,并且将 hardwareAccelerated 标记添加到清单中不起作用,但是将其添加到主要活动中的 onCreate 就可以了:

    window.setFlags(
        WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED,
        WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED
    )

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM