Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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. Patch 2. It used to work before. It shows "Activity must be hardware accelerated for live inspection" I added hardwareAcceleration to true for my activity. But it didn't help. Did anybody notice this? enter image description here

like image 847
Madhan Avatar asked Jun 25 '26 19:06

Madhan


1 Answers

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:

    window.setFlags(
        WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED,
        WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED
    )
like image 200
RubenGM Avatar answered Jun 28 '26 08:06

RubenGM



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!