Error running 'app': Default Activity not found
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>
- Invalidated caches and restarted
- 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
add a comment |
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>
- Invalidated caches and restarted
- 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
1
Possible duplicate of Error: Default Activity Not Found
– Martin Zeitler
Dec 15 '18 at 21:11
add a comment |
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>
- Invalidated caches and restarted
- 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
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>
- Invalidated caches and restarted
- 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
android android-studio
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
add a comment |
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
add a comment |
2 Answers
2
active
oldest
votes
Well, I knew it wasn't my code, it was Android Studio...
This did the trick: https://stackoverflow.com/a/52680053/5427848
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
add a comment |
<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
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Well, I knew it wasn't my code, it was Android Studio...
This did the trick: https://stackoverflow.com/a/52680053/5427848
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
add a comment |
Well, I knew it wasn't my code, it was Android Studio...
This did the trick: https://stackoverflow.com/a/52680053/5427848
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
add a comment |
Well, I knew it wasn't my code, it was Android Studio...
This did the trick: https://stackoverflow.com/a/52680053/5427848
Well, I knew it wasn't my code, it was Android Studio...
This did the trick: https://stackoverflow.com/a/52680053/5427848
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
add a comment |
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
add a comment |
<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
add a comment |
<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
add a comment |
<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
<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
edited Jan 18 at 12:30
answered Dec 17 '18 at 17:51
Pınar KaramanPınar Karaman
1301214
1301214
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
1
Possible duplicate of Error: Default Activity Not Found
– Martin Zeitler
Dec 15 '18 at 21:11