XML tag has empty body less... (Ctrl+F1) Reports empty tag body. The validation works in XML / JSP

那個遊俠發表於2018-03-29

android清單檔案的activity警告 好幾次了 第一反應就是上網查 總記不住 只要換行或者以“ / ”結尾就好了。

網上說:

It appears to have worked by getting rid of the closing tags and replacing them with the self closing tags

<activity
    android:name="com.np.npvideoserver.UserConfig"
    android:configChanges="orientation|keyboard"></activity>

改成

<activity
    android:name="com.np.npvideoserver.UserConfig"
    android:configChanges="orientation|keyboard">
</activity>

<activity
    android:name="com.np.npvideoserver.UserConfig"
    android:configChanges="orientation|keyboard"/>

 

相關文章