Home > Mobile >  Android studio 3.0 after the upgrade, the new interface controls cannot display at runtime.
Android studio 3.0 after the upgrade, the new interface controls cannot display at runtime.

Time:09-18

Android studio 3.0 after the upgrade, the new interface controls at runtime cannot display, and Java classes for the new control in the background is null,
When the new interface controls preview button visible

CodePudding user response:

It has nothing to do, and 3.0, did you see if you use a linear layout, then there is no set direction attribute

CodePudding user response:

Use HierarchyViewer in the SDK tools have a look at your layout, to know the reason, methods of baidu

CodePudding user response:

refer to the second floor ghostgoodbye response:
see your layout with the HierarchyViewer in the SDK tools, a method to know the reason, baidu

Brothers, use HierarchyViewer tools, indeed found new control does not exist, but this kind of situation should be how to deal with?

CodePudding user response:


Everybody is good, will be landing interface font changes little, after the program is running, found the font as big as the original (reset), and this is how to return a responsibility? Have been run cache program?

CodePudding user response:

reference zbluestar reply: 3/f
Quote: refer to the second floor ghostgoodbye response:

With the HierarchyViewer in the SDK tools have a look at your layout, to know the reason, method baidu once

Brothers, use HierarchyViewer tools, indeed found new control does not exist, but this kind of situation should be how to deal with?

Through the HierarchyViewer check, layout file is not loaded, or set to invisible, different situations may use different layout file (usually this kind of situation is less), you want to find the reason carefully,
HierarchyViewer shows all of the controls is it in your XML file is consistent, and look at it carefully

CodePudding user response:

ConstrainLayout and linelayout 's visibility=visible in the attributes.
  • Related