同时使在AndroidManifest.xml错误&[我的第一个应用程序"从developer.android.com [英] Error in AndroidManifest.xml while making "My First App" from developer.android.com

查看:148
本文介绍了同时使在AndroidManifest.xml错误&[我的第一个应用程序"从developer.android.com的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我学习通过developer.android.com给我做了,直到启动另一项活动的培养Android开发。当我试图运行我的code,我得到以下错误在AndroidManifest.xml:

I am learning Android development through the training given on developer.android.com and I have done till "Starting Another Activity". When I tried to run my code, I get the following error in AndroidManifest.xml :

错误:错误解析XML:XML或文本声明没有实体的启动

error: Error Parsing XML: XML or text declaration not at start of entity

我想因为我使用的Eclipse IDE,并没有需要创建自己的标签我没有编辑AndroidManifest.xml中上线。这是我的Andr​​oidManifest.xml:

I suppose I have not edited a line on AndroidManifest.xml as I am using eclipse IDE and did not need to create the labels myself. Here is my AndroidManifest.xml:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.myfirstapp"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk
    android:minSdkVersion="8"
    android:targetSdkVersion="17" />

<application
    android:allowBackup="true"
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/AppTheme" >
    <activity
        android:name="com.example.myfirstapp.MainActivity"
        android:label="@string/app_name" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <activity
        android:name="com.example.myfirstapp.DisplayMessageActivity"
        android:label="@string/title_activity_display_message"
        android:parentActivityName="com.example.myfirstapp.MainActivity" >
        <meta-data
            android:name="android.support.PARENT_ACTIVITY"
            android:value="com.example.myfirstapp.MainActivity" />
    </activity>
</application>

</manifest>

的误差示出在code的第一行。请帮助。

The error is showing in the first line of code. Please help.

推荐答案

你的项目无法正确刷新这就是为什么误差秀

Your Project is not refresh Properly thats why error is show

在Eclipse中项目 - &GT;清洁位置

In eclipse Project-->Clean Location

然后就干净&放大器;构建项目。

then Just clean & build your project.

这篇关于同时使在AndroidManifest.xml错误&[我的第一个应用程序&QUOT;从developer.android.com的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆