Error running ‘addmanage‘: Default Activity not found虚拟机AVD启动失败

粗暴一点:
1.直接点击edit configuration
2.选择gennerral/lauch为Nothing

就这样,点击绿色锤子编译一下,再也没报错了。

Install successfully finished in 3 s 319 ms.

【但是,我发现了一个问题,这样并没有解决问题,下一个又出来了,超时的问题】

解决Client not ready yet..Timed out waiting for process to appear on 无法自动启动安卓应用问题

 

解决办法:

 解决成功之后的效果展示:

 

 AndroidMainfest.xml文件具体添加内容:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.addmanage">
    <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>

猜你喜欢

转载自blog.csdn.net/qq_46687516/article/details/123809825