android - 每次当我向我的系统打开班主任的项目时,它都会显示此错误。运行应用程序时出错:未找到默认活动
问题描述
我是Android的初学者。每次当我将班主任的项目打开到我的系统时,它都会显示此错误。
Error running app: Default activity not found.
我应该怎么做才能匹配我老师的同一个项目?我尝试了很多解决方案。
我的清单文件是
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.assigncheckbox">
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
解决方案
可能是因为您没有将此活动添加到您的AndroidManifest.xml
<activity
android:name=".yourActivity"
/>
推荐阅读
- sql - 当 SELECT 子句中存在 ISNULL 时,如何舍入值中的小数?
- java - 是否可以使用 ByteBuddy Advice 机制将本机方法封装在线程中?
- java - 有没有办法从 Kafka 消息中读取任意 JSON 并将该任意 JSON 作为相同内容的 Kafka 消息转发?
- mysql - 数据未推送到 mysql 表中
- amazon-web-services - AWS - 调用 GetObject 操作时发生错误 (AccessDenied):访问被拒绝
- windows - 如何在 Windows 上安装 Humhub
- python - MXNet Gluon 除以 0 时输出 0 而不是 nan
- c# - 为什么“-”==“-”是假的?
- oracle - 通过 IP 问题限制登录
- ruby-on-rails - ActiveAdmin - 选择在导航/菜单栏上显示为配置文件名称的字段 - Rails