2016-09-29 27 views
-1

我前陣子升級的Android工作室到2.2,當我去到我的項目開了一個我所有的佈局文件與我的一些類一起搞砸的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 
[email protected] 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文件的佈局是正確的(這是個好消息)以及類

有其他人看到這個問題,並知道如何解決它?清潔項目沒有做任何事情

+0

在Android Studio以外的文本編輯器中打開文件時該如何查看文件? –

+0

@BrendanL他們看起來很正常,所以我沒有丟失任何數據 – tyczj

+1

請嘗試'無效緩存並重新啓動',如果你還沒有。 – Shaishav

回答

1

因爲,這似乎是其中一個正常的文件的文件內容無法得到妥善的工具呈現的問題,我建議嘗試以下操作:

File > Invalidate Cache/Restart > Invalidate and Restart

然而,我不明白這個問題的真正原因。如果您可以重現該問題,則可能需要提交錯誤報告here