How to fix Eclipse validation error “No grammar constraints detected for the document”?

后端 未结 18 674
礼貌的吻别
礼貌的吻别 2020-12-24 05:01

Eclipse 3.5.2 is throwing an XML schema warning message:

No grammar constraints (DTD or XML schema) detected for the document.

The applica

18条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-24 05:33

    I was just having this problem last night (using eclipse V.kepler). I am completely new to java and eclipse and I am trying to teach myself how to make an android app. While I was working on the lessons offered at developers.android.com I had input this into my main_activity_actions.xml file:

    
    
    
    
    
    
    
    

    This gave me the same error as OP. I tried following the suggestion of adding

     
    

    just below the first line and it solved the issue.

提交回复
热议问题