Open winster opened 7 years ago
Yes, this is correct. This is an input manager, not an activity.
You can get Android Studio not to complain by going to the "Edit Configurations" menu (tap "Shift" three times, type "Edit Configurations"), then change Launch Options > Launch to "Nothing".
I'll probably add a generic activity containing instructions, just to avoid any confusion.
Thanks a lot
thanks you @tjohns
I also got the same error; however, in my case it was straightforward since this error occurred in a fresh project and it turns out I have to add an intent inside activity tag to get rid of the error:
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
See reference:
@tjohns i agree with you that if we change that setting then app works fine but what if want to run the app without edit Edit Configuration
? I have checked this stack overflow question's answers to solve this issue in android studio 3.2
I have spend almost 5 hours and got the solution. I have copy that project and run in another system then its working fine, So just do following solution to fix this issue and it is work for me and i hope some one will get help with this.
Solution :
1) Delete the cash from your %Home%\.gradle\cash
and sync project again.
2) Also check that is there any duplicate tag in your Manifest.
@AndroidNinza thank you!!!! I spend one night to find solution, I'm trying your solution and it is downloading now, hope I can solve it and then go to bed:'-(
@AndroidNinza done!!!!!!!! thank you!!!!!!!!! 😭 😭 😭 perfect solution
@IDFDeveloper thank you very mach!!
@IDFDeveloper thank you very
1. Delete the caches from your `%Home%\.gradle\caches` and sync project again.
that worked really well for me. I tried file>invalidate caches/restart and that did not work for me
I lost over 6 hours hunting down the problem. I even redownload gradle, restarted Android studio, Invalidated cache/restart to no vail. Until a sister pointed me to this wonderful thread.
This came to my rescue.
@tjohns i agree with you that if we change that setting then app works fine but what if want to run the app without edit
Edit Configuration
? I have checked this stack overflow question's answers to solve this issue inandroid studio 3.2
I have spend almost 5 hours and got the solution. I have copy that project and run in another system then its working fine, So just do following solution to fix this issue and it is work for me and i hope some one will get help with this. Solution :1. Delete the cash from your `%Home%\.gradle\cash` and sync project again. 2. Also check that is there in no any duplicate tag in your Manifest.
I was Scrathing GOOGLE for this answer and at last Found https://github.com/googlesamples/android-CommitContentSampleIME/issues/2#issuecomment-428936292
I had to delete %Home%\.gradle
, %Home%\AndroidStudio3.2
before i got it to work.
I had to delete
%Home%\.gradle
,%Home%\AndroidStudio3.2
before i got it to work.
me too
Make sure your application label
and your activity label
are not the same string resource when declared in the Android Manifest
how do i delete this %home%.gradle\cash im not finding it.
Make sure your application
label
and your activitylabel
are not the same string resource when declared in theAndroid Manifest
This is accepted answer in my case
how do i delete this %home%.gradle\cash i am not finding it.
Go to your users home directory and there you will find .gradle folder
I deleted android studio cache; path: C:\Users\user.AndroidStudio3.3\system\caches (1). Close android studio (2). delete cache (3). start android studio I just noticed deleting cache also solve my XML autocompletion of attributes problem. The problem seems to be with android studio and not the gradle files of the project. None of the invalidate cache or delete iml and idea files worked for me.
i had these issues with my project:
Default activity not found
xml intellisense was not working
kotlin standard functions were not detecting All my above issues were resolved by Deleting System cache of Android Studio 3.3 at the home path, and it's working nicely for me,, Steps:
exit Android Studio
Go to path > C:\Users\YOUR_WINDOW_USER_NAME\.AndroidStudio3.3\system
Then you have a \caches
folder, delete this caches folder
Now open Android Studio and load your project Worked for me.. i wasted couple of hours resolving this issue and finally it got resolved in this way.
tanks this resolved my problem mexico....
i dont think this is a good sulution,we need the luncher and we config them but it cant run ,so we should find why the problem happen!
@tjohns i agree with you that if we change that setting then app works fine but what if want to run the app without edit
Edit Configuration
? I have checked this stack overflow question's answers to solve this issue inandroid studio 3.2
I have spend almost 5 hours and got the solution. I have copy that project and run in another system then its working fine, So just do following solution to fix this issue and it is work for me and i hope some one will get help with this. Solution :
- Delete the cash from your
%Home%\.gradle\cash
and sync project again.- Also check that is there any duplicate tag in your Manifest.
Thats worked. Thx dude !! Adamın dibisin..
@tjohns i agree with you that if we change that setting then app works fine but what if want to run the app without edit
Edit Configuration
? I have checked this stack overflow question's answers to solve this issue inandroid studio 3.2
I have spend almost 5 hours and got the solution. I have copy that project and run in another system then its working fine, So just do following solution to fix this issue and it is work for me and i hope some one will get help with this. Solution :
- Delete the cash from your
%Home%\.gradle\cash
and sync project again.- Also check that is there any duplicate tag in your Manifest.
Thank you Soo much you save my project 👍
@IDFDeveloper thank u so much !!!!! You save my day. I tried file>invalidate caches/restart and that did not work for me
I had a similar issue, I was using pixel 2 real device as a test device to install App. in this device I had enabled multiple users (Guest) . I removed the guest user and everything started to work as usual.
Check if there are any duplicated activities after the last merge. Was my issue.
how do i delete this %home%.gradle\cash i am not finding it.
Make sure your application
label
and your activitylabel
are not the same string resource when declared in theAndroid Manifest
Thanks man , this was the thing in my case.
Thanks man it works..
Since there is no activity defined in the manifest, getting error in Android studio.
Error running app: Default Activity not found