【发布时间】:2021-09-09 04:45:04
【问题描述】:
新的android studio版本android-studio-2021.1.1.11,尝试创建示例空Android应用程序,它显示此错误。
我正在用 KOTLIN 尝试这个
无法识别启动活动:未找到默认活动
启动活动时出错。
AndroidManifest.xml 包含以下内容:
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.myapplication"> <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/Theme.MyApplication" /> </manifest>
解决该错误的任何解决方案,由于该错误,android 应用程序无法打开。
我是初学者。请详细给出解决方案
【问题讨论】:
-
您是否在 Manifest 文件中添加了您的活动?
标签: java android android-studio kotlin