【问题标题】:How to Import A Project Into Android Studio ?如何将项目导入 Android Studio ?
【发布时间】:2014-02-13 22:02:00
【问题描述】:

我正在尝试 Android Studio,但到目前为止它并不是一帆风顺。我正在尝试将 TrivialDrive 示例项目导入 Android Studio,但我不断收到错误

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

如果有帮助,我的项目中有 build.gradle。

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

有什么想法吗?

【问题讨论】:

  • 无法创建目录。可能是你没有权利在这个文件夹里写。

标签: android android-studio importerror


【解决方案1】:

当您首次启动 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.

有关使用 Android Studio 的更多帮助,请阅读提示和技巧。

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

【讨论】:

    【解决方案2】:

    您的工作空间位于程序文件的文件夹中,任何其他应用程序都无法访问。我建议你在 D 盘中创建新的 WorkSpace,然后再次导入项目。

    C 盘供系统使用。您不应将其用于个人用途。尽量避免使用它。如果您使用的操作系统低于 Windows Vista,则不会出现此错误。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-07-15
      • 2017-07-12
      • 1970-01-01
      • 2013-09-01
      • 1970-01-01
      • 2016-10-29
      • 2015-06-21
      • 2017-07-26
      相关资源
      最近更新 更多