简体   繁体   English

如何将项目导入Android Studio?

[英]How to Import A Project Into Android Studio ?

I am trying Android Studio and its not be a smooth ride so far.I am trying to import the TrivialDrive Sample Project into Android studio, I keep getting the error 我正在尝试使用Android Studio,到目前为止还算不上顺利。我正在尝试将TrivialDrive示例项目导入Android Studio,但我不断收到错误消息

Cannot create directory C:\Program Files (x86)\Android\android-sdk\extras\google\play_billing\samples\TrivialDrive\.idea

If it helps I have the build.gradle in my project. 如果有帮助,我在我的项目中有build.gradle。

   dependencies {
        classpath 'com.android.tools.build:gradle:0.6.+'
    }

Any ideas what is wrong ? 任何想法有什么问题吗?

Your Work Space is inside the Program file's folder which is not accessible by any other application. 您的工作空间位于程序文件的文件夹中,任何其他应用程序都无法访问该文件夹。 I suggest you to create new WorkSpace in your D Drive and then import the project again. 我建议您在D驱动器中创建新的WorkSpace,然后再次导入项目。

C Drive is for System use. C驱动器供系统使用。 You should not use it for your personal use. 您不应将其用于个人用途。 Try to avoid using it. 尽量避免使用它。 If you were on OS less than Windows Vista then you won't get this error. 如果您使用的操作系统不是Windows Vista,则不会出现此错误。

When you launch Android Studio for the first time, you'll see a Welcome screen that offers several ways to get started: 首次启动Android Studio时,您会看到一个欢迎屏幕,其中提供了几种入门方法:

To start building a new app, click New Project.

This starts the New Project wizard, which helps you set up a project using an app template.
To import an existing Android app project, click Import Project.

Note: If you previously developed your Android project with Eclipse, you should first use the new export feature in the ADT plugin to prepare your project with the new Gradle build system. For more information, read Migrating from Eclipse.

For additional help using Android Studio, read Tips and Tricks. 有关使用Android Studio的其他帮助,请阅读提示和技巧。

http://developer.android.com/sdk/installing/studio.html http://developer.android.com/sdk/installing/studio.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM