我正在使用 Android Studio 1.0,突然间无法通过手机运行我的应用程序,因为它告诉我找不到默认活动。
将“默认活动”更改为我想要启动的特定活动会导致错误,似乎选择的活动没有在 AndroidManifest.xml 中声明。但这并不正确,因为我已经在 .xml 文件中声明了它,我既没有删除也没有添加新内容,它一直存在,现在却不起作用了。
感谢您的阅读,希望能得到答复或评论 :D
编辑:这是我的 AndroidManifest.xml:
将“默认活动”更改为我想要启动的特定活动会导致错误,似乎选择的活动没有在 AndroidManifest.xml 中声明。但这并不正确,因为我已经在 .xml 文件中声明了它,我既没有删除也没有添加新内容,它一直存在,现在却不起作用了。
感谢您的阅读,希望能得到答复或评论 :D
编辑:这是我的 AndroidManifest.xml:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="pack.aproject" >
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name=".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=".SecondPageActivity">
</activity>
</application>
</manifest>