Android Studio 2.2 布局文件有错误信息
Android Studio 2.2 layout files have wrong information
我不久前将 android studio 升级到 2.2,当我去打开我的一个项目时,我的所有布局文件和我的一些 类
例如,我的一个布局文件在 android studio
中看起来像这样
���� 3�
��� actionBarDivider I
ConstantValue E actionBarItemBackground F actionBarPopupTheme ?
actionBarSize D actionBarSplitStyle A actionBarStyle @ actionBarTabBarStyle ; actionBarTabStyle : actionBarTabTextStyle < actionBarTheme B actionBarWidgetTheme C actionButtonStyle ` actionDropDownStyle \ actionLayout � actionMenuTextAppearance G actionMenuTextColor H actionModeBackground K actionModeCloseButtonStyle J actionModeCloseDrawable M actionModeCopyDrawable O actionModeCutDrawable N actionModeFindDrawable S actionModePasteDrawable P actionModePopupWindowStyle U actionModeSelectAllDrawable Q actionModeShareDrawable R actionModeSplitBackground L actionModeStyle I actionModeWebSearchDrawable T actionOverflowButtonStyle = actionOverflowMenuStyle > actionProviderClass � actionViewClass � activityChooserViewStyle h alertDialogButtonGroupStyle � alertDialogCenterButtons � alertDialogStyle � alertDialogTheme �
allowStacking � alpha � arrowHeadLength � arrowShaftLength � autoCompleteTextViewStyle �
background backgroundSplit backgroundStacked
backgroundTint@ backgroundTintModeA barLength � borderlessButtonStyle e buttonBarButtonStyle b buttonBarNegativeButtonStyle � buttonBarNeutralButtonStyle � buttonBarPositiveButtonStyle � buttonBarStyle a
buttonGravity5 buttonPanelSideLayout ! buttonStyle � buttonStyleSmall �
buttonTint � buttonTintMode �
checkboxStyle � checkedTextViewStyle � closeIcon � closeItemLayout collapseContentDescription7 collapseIcon6 color � colorAccent � colorBackgroundFloating � colorButtonNormal � colorControlActivated � colorControlHighlight � colorControlNormal � colorPrimary � colorPrimaryDark � colorSwitchThumbNormal �
commitIcon � contentInsetEnd contentInsetEndWithActions contentInsetLeft contentInsetRight contentInsetStart contentInsetStartWithNavigation controlBackground � customNavigationLayout defaultQueryHint � dialogPreferredPadding Z dialogTheme Y displayOptions divider dividerHorizontal g dividerPadding � dividerVertical f drawableSize � drawerArrowStyle dropDownListViewStyle y dropdownListPreferredItemHeight ] editTextBackground n
editTextColor m
editTextStyle � elevation $expandActivityOverflowButtonDrawable gapBetweenBars � goIcon � height hideOnContentScroll homeAsUpIndicator _
homeLayout icon iconifiedByDefault � imageButtonStyle o indeterminateProgressStyle initialActivityCount isLightTheme itemPadding layout � listChoiceBackgroundIndicator � listDividerAlertDialog [ listItemLayout %
listLayout " listMenuViewStyle � listPopupWindowStyle z listPreferredItemHeight t listPreferredItemHeightLarge v listPreferredItemHeightSmall u listPreferredItemPaddingLeft w listPreferredItemPaddingRight x logo
一些布局文件实际上包含我的 类 中的代码...
如果我查看磁盘上的 xml 文件布局是正确的(这是个好消息)以及 类
有没有其他人看到过这个问题并知道如何解决?清理项目没有做任何事情
因为这似乎是一个正常文件的文件内容无法通过该工具正确呈现的问题,我建议尝试以下操作:
File > Invalidate Cache/Restart > Invalidate and Restart
但是,我不明白这个问题的真正原因。如果您可以重现该问题,您可能需要提交错误报告 here。
我不久前将 android studio 升级到 2.2,当我去打开我的一个项目时,我的所有布局文件和我的一些 类
例如,我的一个布局文件在 android studio
中看起来像这样���� 3�
��� actionBarDivider I
ConstantValue E actionBarItemBackground F actionBarPopupTheme ?
actionBarSize D actionBarSplitStyle A actionBarStyle @ actionBarTabBarStyle ; actionBarTabStyle : actionBarTabTextStyle < actionBarTheme B actionBarWidgetTheme C actionButtonStyle ` actionDropDownStyle \ actionLayout � actionMenuTextAppearance G actionMenuTextColor H actionModeBackground K actionModeCloseButtonStyle J actionModeCloseDrawable M actionModeCopyDrawable O actionModeCutDrawable N actionModeFindDrawable S actionModePasteDrawable P actionModePopupWindowStyle U actionModeSelectAllDrawable Q actionModeShareDrawable R actionModeSplitBackground L actionModeStyle I actionModeWebSearchDrawable T actionOverflowButtonStyle = actionOverflowMenuStyle > actionProviderClass � actionViewClass � activityChooserViewStyle h alertDialogButtonGroupStyle � alertDialogCenterButtons � alertDialogStyle � alertDialogTheme �
allowStacking � alpha � arrowHeadLength � arrowShaftLength � autoCompleteTextViewStyle �
background backgroundSplit backgroundStacked
backgroundTint@ backgroundTintModeA barLength � borderlessButtonStyle e buttonBarButtonStyle b buttonBarNegativeButtonStyle � buttonBarNeutralButtonStyle � buttonBarPositiveButtonStyle � buttonBarStyle a
buttonGravity5 buttonPanelSideLayout ! buttonStyle � buttonStyleSmall �
buttonTint � buttonTintMode �
checkboxStyle � checkedTextViewStyle � closeIcon � closeItemLayout collapseContentDescription7 collapseIcon6 color � colorAccent � colorBackgroundFloating � colorButtonNormal � colorControlActivated � colorControlHighlight � colorControlNormal � colorPrimary � colorPrimaryDark � colorSwitchThumbNormal �
commitIcon � contentInsetEnd contentInsetEndWithActions contentInsetLeft contentInsetRight contentInsetStart contentInsetStartWithNavigation controlBackground � customNavigationLayout defaultQueryHint � dialogPreferredPadding Z dialogTheme Y displayOptions divider dividerHorizontal g dividerPadding � dividerVertical f drawableSize � drawerArrowStyle dropDownListViewStyle y dropdownListPreferredItemHeight ] editTextBackground n
editTextColor m
editTextStyle � elevation $expandActivityOverflowButtonDrawable gapBetweenBars � goIcon � height hideOnContentScroll homeAsUpIndicator _
homeLayout icon iconifiedByDefault � imageButtonStyle o indeterminateProgressStyle initialActivityCount isLightTheme itemPadding layout � listChoiceBackgroundIndicator � listDividerAlertDialog [ listItemLayout %
listLayout " listMenuViewStyle � listPopupWindowStyle z listPreferredItemHeight t listPreferredItemHeightLarge v listPreferredItemHeightSmall u listPreferredItemPaddingLeft w listPreferredItemPaddingRight x logo
一些布局文件实际上包含我的 类 中的代码...
如果我查看磁盘上的 xml 文件布局是正确的(这是个好消息)以及 类
有没有其他人看到过这个问题并知道如何解决?清理项目没有做任何事情
因为这似乎是一个正常文件的文件内容无法通过该工具正确呈现的问题,我建议尝试以下操作:
File > Invalidate Cache/Restart > Invalidate and Restart
但是,我不明白这个问题的真正原因。如果您可以重现该问题,您可能需要提交错误报告 here。