首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > Android >

premature end of file解决思路

2012-08-07 
premature end of file我写的xml文件:?xml version1.0 encodingutf-8?!--! Excerpted from Hell

premature end of file
我写的xml文件:

<?xml version="1.0" encoding="utf-8"?>
<!--
 ! Excerpted from "Hello, Android! 3e",
 ! published by The Pragmatic Bookshelf.
 ! Copyrights apply to this code. It may not be used to create training material, 
 ! courses, books, articles, and the like. Contact us if you are in doubt.
 ! We make no guarantees that this code is fit for any purpose. 
 ! Visit http://www.pragmaticprogrammer.com/titles/eband3 for more book information.
-->
<ScrollView
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:padding="10dip">
  <TextView
  android:id="@+id/about_content"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
  android:text="@string/about_text" />
</ScrollView>

为什么最后一行老是提示“premature end of file”?

[解决办法]
保存一下问题就解决了

热点排行