Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/232.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Android应用程序意外关闭,解析器异常_Java_Android - Fatal编程技术网

Java Android应用程序意外关闭,解析器异常

Java Android应用程序意外关闭,解析器异常,java,android,Java,Android,从gps活动转到浏览活动后,我的应用程序关闭。下面是错误 > com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper] > Parser exception for C:\filepath\AndroidManifest.xml: Element type > "activity" must be followed by either attribute specifications, ">"

从gps活动转到浏览活动后,我的应用程序关闭。下面是错误

> com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper]
> Parser exception for C:\filepath\AndroidManifest.xml: Element type
> "activity" must be followed by either attribute specifications, ">" or
> "/>"
我在地图上找到了原因,即:

“…找不到外部的罐子。我想那应该是 已添加到工作区中,且未从其来源(例如从)调用 \下载,显然不是。”

是否有解决方案或提示来解决此问题

清单文件是

<?xml version="1.0" encoding="utf-8"?>

<manifest xmlns:android="http://schemas.android.com/apk/res/android"

    package="coms.molaroute.mu"

    android:versionCode="1"

    android:versionName="1.0" >

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

     <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>

    <uses-permission android:name="android.permission.INTERNET"/>

    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>

    <application

        android:icon="@drawable/ic_launcher"

        android:label="@string/app_name" >
        <activity
            android:name=".AlertWebsite"

            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=".PlanJourney"></activity>

    <activity android:name=".SendAlert"></activity>

        <activity android:name=".GetLocation"></activity>

    </application>

</manifest>

这是Eclipse IDE中的常见错误

  • 检查清单文件的语法错误
  • 清理项目(例如,生成->清理或删除/bin文件夹)
  • 转到项目/包资源管理器
  • 右键单击清单文件
  • 验证

现在一切正常。

您的AndroidManifest.xml中存在语法错误。查看您定义活动的位置。如果您想让读者帮您发现错误,请发布文件。在此处发布您的menifest文件。它似乎与语法错误有关。在清单中,您缺少标记
可以,但每个标记都是打开和关闭的