Android Studio No "Import Sample" in the File menu

Why doesn’t Android Studio show the import selection option in the β€œFile” menu even if I downloaded the sample projects to my disk?

I have Android Studio 2.2.2 with the correct sdk path.

enter image description here

This is mistake? or??

enter image description here

+5
source share
5 answers

You should go to File β†’ New β†’ Import Sample.

+1
source

As a workaround, you can import samples ( for example, examples here ) from Git with the file β†’ Create β†’ Project from version control β†’ git

+1
source

Have you checked the Google Developer Sample plugin option? In my case, this option was not active.

Settings β†’ Plugins β†’ Google Developer Examples.

After checking this option, I can finally import the sample project.

+1
source

To see this menu option: File β†’ New β†’ Import Example

you need to enable: Settings β†’ Plugins β†’ Google Virtual Tools for Android Studio

+1
source

If you are looking for an example for a specific programming problem, you can right-click on some code, for example. viewpager and select:

find a sample code,

A window appears below with an example of the same design. Now you can double-click and open a browser and bring git to this server. From there you can download.

Before you had to look through examples to find a specific example of your problem, you can now search. This could be an advantage.

I am using android studio on mac. Version 2.2.2.

0
source

Source: https://habr.com/ru/post/1258645/


All Articles