找不到android studio 3.2默认活动 [英] android studio 3.2 default activity not found
本文介绍了找不到android studio 3.2默认活动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
最近我将android studio更新为3.2,但是当旧的打开的项目出现错误未找到默认活动" 时.
Recently I updated my android studio to 3.2 but when the old open project I getting the error "default activity not found".
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.qualifiedapps.birthdaywishes">
<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>
推荐答案
所有给定的解决方案都不适合我.对我有用的是:
None of the given solutions worked for me. The thing that worked for me was:
- 退出Android Studio
- 找到AndroidStudio3.2(或任何版本)文件夹
- 转到AndroidStudio3.2->系统->缓存
- 删除该文件夹
- 重新启动Android Studio
它将重新索引您的文件,然后该文件将正常工作
It will re-index your files and that thing will work
这篇关于找不到android studio 3.2默认活动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文