3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【Android Studio】アクティビティを持たないアプリをAVDでエミュレートする方法

Last updated at Posted at 2018-07-11

仕事中に遭遇したトラブルと解決策のメモ。ググっても情報が出なかった。
日本語化済みのAndroid Studioを使用しているため、英語のまま使用している方は適時読み替えて下さい。

##問題
"Add no Activity"でプロジェクトを作成し、アクティビティを作成しないまま実行しようとすると
「デフォルトのアクティビティがねえよ!」
と跳ねられて実行できません。

SnapCrab_NoName_2018-7-11_20-40-25_No-00.png

##解決策
1.構成の編集を開きます。
SnapCrab_NoName_2018-7-11_20-42-10_No-00.png

2.「起動オプション」内の「起動」プルダウンで「何もありません。」を選択します。
SnapCrab_NoName_2018-7-11_20-42-17_No-00.png

以上の手順で実行可能となりAVDでエミュレートできます。

3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?