Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
6
Help us understand the problem. What is going on with this article?
@vocuno

Android StudioでDefault Activity not foundが出たときの対処

More than 5 years have passed since last update.

Android Studioインストール後、試しにRunしたらエラーが出たので対処したことをメモ。

環境

OS X 10.11.4
Android Studio 2.1

エラー内容

Android Studioをインストール後、新規プロジェクトを作成してMainActivityを作成(未修正)。その後、上部メニューからRun -> Run 'app'を実行したら以下のエラーが出た。


Could not identify launch activity: Default Activity not found
Error while Launching activity

対処方法

起動するActivityを明示的に指定してやる。
設定を開く。
Run -> Edit Configurations... -> Android Application -> app
RunDegugConfig_20160502_14.05.56.png
Launch Options -> Launch
「Defauit Activity」を「Specified Activity」に変更。
Activity:に「...」ボタンで先ほど作成したMainActivityを選択。

以上。

6
Help us understand the problem. What is going on with this article?
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
vocuno

Comments

No comments
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account Login
6
Help us understand the problem. What is going on with this article?