Manghud
Manghud

Reputation: 1376

Error running 'app: No target device found. Android Studio 3.6 Preview

Aa beginner, failed to run my first Android Application on Android Studio 3.6. How can I make the right setting to see the preview device in the emulator?

I tried the same question and discussion, but failed to solve my problem.enter image description here

Upvotes: 6

Views: 18407

Answers (3)

SnakeException
SnakeException

Reputation: 1186

Here's the problem: You don't have any virtual devices. Here's a screenshot of what you probably should have to run (In AS 3.6 Preview):

enter image description here

Compare this to your picture where it says "No devices". So, I'm going to walk you through creating an AVD.

Now, since I do have AVDs, I'm just going to create one. click on that drop-down menu that for you says "No devices" and click "Open AVD Manager":

enter image description here

In the popup click "Create Virtual Device..."

enter image description here

In the Virtual Device configuration popup select the device you want and click "Next".

enter image description here

Choose the system image you want (you can go to the other tabs to see what's there) and click "Next"

enter image description here

Then name your AVD and click "Finish"

enter image description here

Now you should see your new Android Virtual Device:

enter image description here

Closing out of it, you can now run your application with the green "Run" arrow!

I hope this helped!

Upvotes: 12

Athira
Athira

Reputation: 1213

After connecting the device , go to Files -> Invalidate Caches/Restart -> Invalidate and Restart

Upvotes: -1

Anupam
Anupam

Reputation: 2853

First try this-

Go to the bottom left of Android Studio then click on the square (the one which show/hide the tool on the left, bottom and right) then on Designer. A new tab should be on the right part of android studio, with gradle and maven project.

If still doesn't work, try this -

If you double click on your .xml file tab at the top it will maximize the designer window. Then on the left you can drag the window to shrink and it will reveal the palette. Then just click on the tab on the left to open the project window.

Upvotes: 0

Related Questions