2017-05-25 37 views
0

image showing no suggestions for xml autocompletionAndroid的工作室 - XML編輯器自動完成未用新的XML文件

Android Studio中創建了一個新的XML文件

工作,你可以看到當我按下Ctrl +空格鍵爲自動完成它說沒有建議

我曾嘗試在堆棧溢出類似的問題所有的解決方案,但沒有一次成功

沒有任何依賴的gradle我可以加?

非常感謝

+0

嘗試文件 - >無效緩存,並重新啓動:d –

+0

我想你應該清理並重建項目。或者你可以嘗試重新啓動個人電腦或Android工作室。 –

回答

0

確保您的最後一個右括號之前鍵入代碼>,例如:

<LinearLayout 
xmlns:android="http://schemas.android.com/apk/res/android" 
android:layout_width="match_parent" 
android:layout_height="match_parent" 
android:orientation="vertical"> // code needs to be typed before this bracket 

//not here 

</LinearLayout>