Don't see my app when running Android Studio emulator
Solution 1
When you click Run (The little green arrow in the toolbar at the top, or keyboard shortcut: SHIFT+F10
), you should be presented with a dialog box that asks you WHAT device you wanna run your app on. It won't ask you WHAT you want to run, if that was your concern.
From that dialog, just select Launch emulator and click OK.
Solution 2
I had this problem as well! Here's the way I fixed it:
- Run the emulator
- Without closing the emulator, get to this screen and click on the button in the top left that looks like a returning green arrow coming out of a gray box. It should be above the stop button (red square). bottom left of android studio, click on run the the very bottom left and then click one of the little android logos to the left of the emulator run tab
- Select the running emulator in the pop up window
tempomax
Updated on June 05, 2022Comments
-
tempomax about 2 years
I followed the introductory tutorial on creating my first android app. However, when I run the emulator I don't see my app icon anywhere so I can't test it.
Here is my AndroidManifest.xml file:
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.me.learning"> <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:supportsRtl="true" android:theme="@style/AppTheme"> <activity android:name="com.example.me.learning.MyActivity" android:label="@string/app_name" android:theme="@style/AppTheme.NoActionBar"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <activity android:name="com.example.me.learning.DisplayMessageActivity" android:label="@string/title_activity_display_message" android:parentActivityName="com.example.me.learning.MyActivity" android:theme="@style/AppTheme.NoActionBar"> <meta-data android:name="android.support.PARENT_ACTIVITY" android:value="com.example.me.learning.MyActivity" /> </activity> </application> </manifest>
Here is the console output for the AVD:
Hax is enabled Hax ram_size 0x60000000 HAX is working and emulator runs in fast virt mode. console on port 5554, ADB on port 5555
Console for the app:
03/10 16:18:36: Launching app
So both the avd and the app seem to load okay, but I don't see app anywhere in the emulator. What am I missing?
The app doesn't show up.
-
Timmiej93 over 8 yearsI believe OP means the emulator starts, but the app doesn't load. If you hit the green arrow, the app should start automatically when your emulator is fully booted. Maybe you made an error somewhere in your code, are you getting an error in Android Studio?
-
tempomax over 8 yearsYeah, I get that dialog box, and I select the particular device to do the emulation on (Nexus 6 API 23). The emulator boots up and I can mess around in it, but I don't see my app anywhere.
-
tempomax over 8 years@Timmiej93 I do not think I have any errors. Android Studio doesn't show anything in red.
-
Timmiej93 over 8 yearsAre you sure you have the
Android Monitor
open, with thelogcat
tab selected? -
Vucko over 8 yearsRun it again. On the first time you start the emulator, it just 'boots up' the system on the emulator etc. Also you should see the icon in menu and it should be default android logo.