Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/181.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/docker/10.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/user-interface/2.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
我的AndroidManifest.xml有什么问题?_Android - Fatal编程技术网

我的AndroidManifest.xml有什么问题?

我的AndroidManifest.xml有什么问题?,android,Android,我正在尝试开发一个基本的应用程序,在两个选项卡中显示信息,根据我的理解,每个选项卡中的信息需要有自己的活动,除了一个选项卡。我已经这样做了,所有的java代码看起来都是正确的,我已经在我的AndroidManifest.xml中声明了所有3个活动。当我启动应用程序时,它在启动时崩溃,当我运行logcat时,我发现: java.lang.RuntimeException:无法启动活动组件信息{android.wingdom.convention/android.wingdom.convention

我正在尝试开发一个基本的应用程序,在两个选项卡中显示信息,根据我的理解,每个选项卡中的信息需要有自己的活动,除了一个选项卡。我已经这样做了,所有的java代码看起来都是正确的,我已经在我的AndroidManifest.xml中声明了所有3个活动。当我启动应用程序时,它在启动时崩溃,当我运行logcat时,我发现:

java.lang.RuntimeException:无法启动活动组件信息{android.wingdom.convention/android.wingdom.convention.TabWidget}:android.content.ActivityNotFoundException:无法找到显式活动类{android.wingdom.convention/android.wingdom.convention.Schedule};您是否在AndroidManifest.xml中声明了此活动

我一直在仔细检查文件,没有发现任何错误,目前看起来如下:

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

<application android:icon="@drawable/icon" android:label="@string/app_name">
    <activity android:name=".TabWidget"
              android:label="@string/app_name"
          android:theme="@android:style/Theme.NoTitleBar">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
<activity android:name=".Map" />
<activity android:name=".Schedule" />
</activity>

</application>

您正在活动中定义活动

请尝试以下代码:

<activity android:name=".TabWidget"
              android:label="@string/app_name"
          android:theme="@android:style/Theme.NoTitleBar">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
</activity>
<activity android:name=".Map" />
<activity android:name=".Schedule" />