Reputation: 1
I cleared all the bugs... Recently before running this app it was showing "No default activity found" I changed configuration to "Nothing" & also added Android Manifest.xml file.
After successful build, Emulator shows app in settings>>app management.
But,
There is nothing in Apps Menu. Even I tried manually installing this app in my device. But it says "App Not Installed"
Share your experience. Help me out. Thank you.
Please include all manifest functions into this code, if I am missing something. This app is cloud storage app. This is my manifest file :
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
>
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity
android:name=".activities.MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>```
Upvotes: 0
Views: 1139
Reputation: 17
Add this in your activity tag
<category android:name="android.intent.category.DEFAULT" />
Upvotes: 0
Reputation: 13947
Sometimes android studio has quircks and bugs.
In this case when it complains of activity not found even though you know it's there do the following:
if none of the above work, that means you have some place in that activity that in theory compiles, in practice there is a problem with it.
Upvotes: 0