【问题标题】:I can not see hello world app in Android Studio我在 Android Studio 中看不到 hello world 应用
【发布时间】:2021-05-06 15:06:22
【问题描述】:

您好,我已经正确安装了 Android Studio。我为 e.q Marshmallow 制作了 AVD,并在同一平台上进行了项目。按下 RUN 后,AVD 开启。我可以在模拟的 android 手机上做所有事情(其他问题 - 运行这个之后我的电脑速度急剧下降)但我应该看到我的“Hello world”应用程序,那里不存在。我收到以下错误

执行时出现意外错误:am start -n "com.example.zad2/com.example.zad2.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER 启动活动时出错

zad2 是我的项目名称。

在 Stacfoverflow 上,我看到了将一些过滤器代码添加到清单中的提示,但我已经有了它:

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

<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.Zad2">
    <activity android:name=".MainActivity">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
</application>

【问题讨论】:

    标签: android android-studio kotlin


    【解决方案1】:

    是的,不要麻烦朋友。我找到了这篇文章:Session 'app': Error Launching activity 我从 AVD 中卸载了我的应用程序 :)

    【讨论】:

      猜你喜欢
      • 2016-04-05
      • 1970-01-01
      • 2011-10-17
      • 1970-01-01
      • 2020-09-03
      • 2016-12-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多