Error running 'app': Default Activity not found












0















I do find multiple solutions on here, but non of them work for me...
I cloned an ixisting Androi project, it worked perfectly fine, I added and changed some code, added a fragment and a resource for the fragment. While doing this, everything kept working fine, but suddenly I got this error...



I tried several things:
1. In "Edit Configuration" changed the "Default Activity" to specific activity, but than I get the error that it is not specified in the AndroidManifest.xml (which it is).
2. I tried using the full package path in the manifest ("com.example.something.ActivityLogin" instead of ".ActivityLogin")



    <activity android:name=".ActivityLogin"
android:launchMode="singleInstance"
android:screenOrientation="portrait"
android:configChanges="orientation|keyboardHidden"
android:windowSoftInputMode="adjustResize">

<intent-filter>
<action android:name="android.intent.action.MAIN" />

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

</activity>



  1. Invalidated caches and restarted

  2. Tried reinstalling Androi Studio


And now for the craziest one:
5. Removed the entire project, pulled the master from git, and the issue is still present!



Also, I did not touch the AndroidManifest nor the ActivityLogin at all, I did not refactor anything...



I'm not sure where to look further, I'm guessing it is an Android Studio (3.2.1 from October 9, 2018) related issue? Also, another project keeps running just fine...










share|improve this question


















  • 1





    Possible duplicate of Error: Default Activity Not Found

    – Martin Zeitler
    Dec 15 '18 at 21:11
















0















I do find multiple solutions on here, but non of them work for me...
I cloned an ixisting Androi project, it worked perfectly fine, I added and changed some code, added a fragment and a resource for the fragment. While doing this, everything kept working fine, but suddenly I got this error...



I tried several things:
1. In "Edit Configuration" changed the "Default Activity" to specific activity, but than I get the error that it is not specified in the AndroidManifest.xml (which it is).
2. I tried using the full package path in the manifest ("com.example.something.ActivityLogin" instead of ".ActivityLogin")



    <activity android:name=".ActivityLogin"
android:launchMode="singleInstance"
android:screenOrientation="portrait"
android:configChanges="orientation|keyboardHidden"
android:windowSoftInputMode="adjustResize">

<intent-filter>
<action android:name="android.intent.action.MAIN" />

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

</activity>



  1. Invalidated caches and restarted

  2. Tried reinstalling Androi Studio


And now for the craziest one:
5. Removed the entire project, pulled the master from git, and the issue is still present!



Also, I did not touch the AndroidManifest nor the ActivityLogin at all, I did not refactor anything...



I'm not sure where to look further, I'm guessing it is an Android Studio (3.2.1 from October 9, 2018) related issue? Also, another project keeps running just fine...










share|improve this question


















  • 1





    Possible duplicate of Error: Default Activity Not Found

    – Martin Zeitler
    Dec 15 '18 at 21:11














0












0








0








I do find multiple solutions on here, but non of them work for me...
I cloned an ixisting Androi project, it worked perfectly fine, I added and changed some code, added a fragment and a resource for the fragment. While doing this, everything kept working fine, but suddenly I got this error...



I tried several things:
1. In "Edit Configuration" changed the "Default Activity" to specific activity, but than I get the error that it is not specified in the AndroidManifest.xml (which it is).
2. I tried using the full package path in the manifest ("com.example.something.ActivityLogin" instead of ".ActivityLogin")



    <activity android:name=".ActivityLogin"
android:launchMode="singleInstance"
android:screenOrientation="portrait"
android:configChanges="orientation|keyboardHidden"
android:windowSoftInputMode="adjustResize">

<intent-filter>
<action android:name="android.intent.action.MAIN" />

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

</activity>



  1. Invalidated caches and restarted

  2. Tried reinstalling Androi Studio


And now for the craziest one:
5. Removed the entire project, pulled the master from git, and the issue is still present!



Also, I did not touch the AndroidManifest nor the ActivityLogin at all, I did not refactor anything...



I'm not sure where to look further, I'm guessing it is an Android Studio (3.2.1 from October 9, 2018) related issue? Also, another project keeps running just fine...










share|improve this question














I do find multiple solutions on here, but non of them work for me...
I cloned an ixisting Androi project, it worked perfectly fine, I added and changed some code, added a fragment and a resource for the fragment. While doing this, everything kept working fine, but suddenly I got this error...



I tried several things:
1. In "Edit Configuration" changed the "Default Activity" to specific activity, but than I get the error that it is not specified in the AndroidManifest.xml (which it is).
2. I tried using the full package path in the manifest ("com.example.something.ActivityLogin" instead of ".ActivityLogin")



    <activity android:name=".ActivityLogin"
android:launchMode="singleInstance"
android:screenOrientation="portrait"
android:configChanges="orientation|keyboardHidden"
android:windowSoftInputMode="adjustResize">

<intent-filter>
<action android:name="android.intent.action.MAIN" />

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

</activity>



  1. Invalidated caches and restarted

  2. Tried reinstalling Androi Studio


And now for the craziest one:
5. Removed the entire project, pulled the master from git, and the issue is still present!



Also, I did not touch the AndroidManifest nor the ActivityLogin at all, I did not refactor anything...



I'm not sure where to look further, I'm guessing it is an Android Studio (3.2.1 from October 9, 2018) related issue? Also, another project keeps running just fine...







android android-studio






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Dec 15 '18 at 20:24









SparkyRihSparkyRih

246




246








  • 1





    Possible duplicate of Error: Default Activity Not Found

    – Martin Zeitler
    Dec 15 '18 at 21:11














  • 1





    Possible duplicate of Error: Default Activity Not Found

    – Martin Zeitler
    Dec 15 '18 at 21:11








1




1





Possible duplicate of Error: Default Activity Not Found

– Martin Zeitler
Dec 15 '18 at 21:11





Possible duplicate of Error: Default Activity Not Found

– Martin Zeitler
Dec 15 '18 at 21:11












2 Answers
2






active

oldest

votes


















0














Well, I knew it wasn't my code, it was Android Studio...
This did the trick: https://stackoverflow.com/a/52680053/5427848






share|improve this answer
























  • link to other answer can't be a good answer.

    – Vladyslav Matviienko
    Dec 15 '18 at 21:46











  • if it works for you, well done.

    – C Forge
    Dec 16 '18 at 3:08



















0














<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>


Build-Clean Project or Build-Rebuild Project






share|improve this answer

























    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53796966%2ferror-running-app-default-activity-not-found%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Well, I knew it wasn't my code, it was Android Studio...
    This did the trick: https://stackoverflow.com/a/52680053/5427848






    share|improve this answer
























    • link to other answer can't be a good answer.

      – Vladyslav Matviienko
      Dec 15 '18 at 21:46











    • if it works for you, well done.

      – C Forge
      Dec 16 '18 at 3:08
















    0














    Well, I knew it wasn't my code, it was Android Studio...
    This did the trick: https://stackoverflow.com/a/52680053/5427848






    share|improve this answer
























    • link to other answer can't be a good answer.

      – Vladyslav Matviienko
      Dec 15 '18 at 21:46











    • if it works for you, well done.

      – C Forge
      Dec 16 '18 at 3:08














    0












    0








    0







    Well, I knew it wasn't my code, it was Android Studio...
    This did the trick: https://stackoverflow.com/a/52680053/5427848






    share|improve this answer













    Well, I knew it wasn't my code, it was Android Studio...
    This did the trick: https://stackoverflow.com/a/52680053/5427848







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Dec 15 '18 at 21:10









    SparkyRihSparkyRih

    246




    246













    • link to other answer can't be a good answer.

      – Vladyslav Matviienko
      Dec 15 '18 at 21:46











    • if it works for you, well done.

      – C Forge
      Dec 16 '18 at 3:08



















    • link to other answer can't be a good answer.

      – Vladyslav Matviienko
      Dec 15 '18 at 21:46











    • if it works for you, well done.

      – C Forge
      Dec 16 '18 at 3:08

















    link to other answer can't be a good answer.

    – Vladyslav Matviienko
    Dec 15 '18 at 21:46





    link to other answer can't be a good answer.

    – Vladyslav Matviienko
    Dec 15 '18 at 21:46













    if it works for you, well done.

    – C Forge
    Dec 16 '18 at 3:08





    if it works for you, well done.

    – C Forge
    Dec 16 '18 at 3:08













    0














    <intent-filter>
    <action android:name="android.intent.action.MAIN" />
    <category android:name="android.intent.category.DEFAULT"/>
    <category android:name="android.intent.category.LAUNCHER" />
    </intent-filter>


    Build-Clean Project or Build-Rebuild Project






    share|improve this answer






























      0














      <intent-filter>
      <action android:name="android.intent.action.MAIN" />
      <category android:name="android.intent.category.DEFAULT"/>
      <category android:name="android.intent.category.LAUNCHER" />
      </intent-filter>


      Build-Clean Project or Build-Rebuild Project






      share|improve this answer




























        0












        0








        0







        <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.DEFAULT"/>
        <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>


        Build-Clean Project or Build-Rebuild Project






        share|improve this answer















        <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.DEFAULT"/>
        <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>


        Build-Clean Project or Build-Rebuild Project







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Jan 18 at 12:30

























        answered Dec 17 '18 at 17:51









        Pınar KaramanPınar Karaman

        1301214




        1301214






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53796966%2ferror-running-app-default-activity-not-found%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Homophylophilia

            Updating UILabel text programmatically using a function

            Cloud Functions - OpenCV Videocapture Read method fails for larger files from cloud storage