如何在Android Studio中创建Android示例项目?

时间:2021-05-05 15:02:31

Is there any easy way to create(import) Android Sample Project (in eclipse terminology) in Android Studio? I mean something like eclipse New Project->Android Sample Project dialog

在Android Studio中,是否有任何简单的方法可以创建(导入)Android示例项目(在eclipse术语中)?我的意思是像eclipse新项目->Android示例项目对话框。

2 个解决方案

#1


3  

On Android Studio 1.0.2

在Android上工作室1.0.2

File -> Import Sample...

文件- >导入示例……

Then, if you are looking for Support Samples, these live under

然后,如果你正在寻找支持样本,这些活在下面。

/sdk/extras/android/support/samples/

You'll need to go to File -> Import Project...

你需要去文件->导入项目…

Some of them still have Eclipse project structure, but AS will take care of that.

其中一些仍然有Eclipse项目结构,但是将会解决这个问题。

#2


7  

Have you installed the samples for the SDK from your Android SDK Manager? Instructions for doing so can be found here.

您是否已经从Android SDK管理器中安装了SDK的样本?这样做的说明可以在这里找到。

After those are installed, you can use the menu File->Import Project...

安装好后,您可以使用菜单文件->导入项目…

如何在Android Studio中创建Android示例项目?

#1


3  

On Android Studio 1.0.2

在Android上工作室1.0.2

File -> Import Sample...

文件- >导入示例……

Then, if you are looking for Support Samples, these live under

然后,如果你正在寻找支持样本,这些活在下面。

/sdk/extras/android/support/samples/

You'll need to go to File -> Import Project...

你需要去文件->导入项目…

Some of them still have Eclipse project structure, but AS will take care of that.

其中一些仍然有Eclipse项目结构,但是将会解决这个问题。

#2


7  

Have you installed the samples for the SDK from your Android SDK Manager? Instructions for doing so can be found here.

您是否已经从Android SDK管理器中安装了SDK的样本?这样做的说明可以在这里找到。

After those are installed, you can use the menu File->Import Project...

安装好后,您可以使用菜单文件->导入项目…

如何在Android Studio中创建Android示例项目?