question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Type Hierarchy stopped working in Android Studio

See original GitHub issue

As you can see in the Type Hierarchy (right side), I don’t see any dropdown button which can show ImageProvider’s subclasses.

However, you can see (in the middle window) that there are many classes which extends ImageProvider. I should be seeing them in the Type Hierarchy but I don’t.

It only works the first time I open Android Studio (or IntelliJ IDEA), and after that it just shows * sign and doesn’t work as intended. This question has already been asked on Stack Overflow, here’s the link

enter image description here

Flutter Doctor:

[✓] Flutter (Channel dev, 2.9.0-0.1.pre, on macOS 12.0.1 21A559 darwin-arm, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 13.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2020.3)
[☠] IntelliJ IDEA Community Edition (the doctor check crashed)
    ✗ Due to an error, the doctor check did not complete. If the error message below is not helpful, please let us know about this issue at
      https://github.com/flutter/flutter/issues.
    ✗ FormatException: Unexpected extension byte (at offset 5)
[✓] VS Code (version 1.63.1)
[✓] Connected device (2 available)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:31 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
NanoMichaelcommented, Jun 29, 2022

I’m having the same problem. The plugin does not show the type hierarchy completely. For example, the hierarchy of the type Widget shows only a few of its children.

image

UPDATE

After some tests, I found it gives the wrong hierarchy tree, for example, the hierarchy of the type Layer:

image

TextureLayer, PictureLayer, and PlatformViewLayer is not the child of the ContainerLayer, instead, it’s Layer’s child.

0reactions
iLoveDocscommented, Jan 15, 2022

@stevemessick For the changes, I only edited some strings there (I don’t remember them now), but no Dart file or code was modified at all.

Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

intellij idea - Type Hierarchy stopped working in Android Studio
As you can see in the Type Hierarchy (right side), I don't see any dropdown button which can show ImageProvider 's subclasses.
Read more >
Performance and view hierarchies - Android Developers
Android Studio's Lint tool can help you gain a sense of inefficiencies in the view hierarchy. To use this tool, select Analyze >...
Read more >
Source code hierarchy | IntelliJ IDEA Documentation - JetBrains
Type hierarchies show parent and child classes of a class. ... a class, but is defined in the superclass, IntelliJ IDEA displays the...
Read more >
Layout Inspector. Debugging UI issues can be tricky… - Medium
Android Studio 4.0 comes with an updated Layout Inspector that lets you debug ... The Layout Inspector only displays a UI hierarchy from...
Read more >
Code Formatting changes the order of <include> components ...
P2, Android Studio 3.5.9 Canary XML Tag Re-Arrangement spoils the view ... Follow the video showing the problem with formatting the code.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found