java - Gradle 项目同步失败的基本功能

标签 java android android-studio gradle

<分区>

我的版本是 AS 1.5 今天,我打开我的项目并得到 this问题。

重新启动无效的缓存没有帮助...Uptade sdk 工具没有帮助...

我的构建.gradle:

dependencies {
    classpath 'com.android.tools.build:gradle:1.5.0'

    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}

我该如何解决?

最佳答案

修复它的最简单方法是关闭 Android Studio(以避免删除问题)并删除此目录:

 C:\Users\<username>\.gradle 

然后打开您的 AS 1.5 并尝试重建您的项目。

注意:.gradle 可能是一个隐藏文件夹。如果为真,请按照以下步骤操作:

To enable the viewing of hidden and protected system files in Windows 7 please follow these steps:

  1. Close all programs so that you are at your desktop.
  2. Click on the Start button.
  3. This is the small round button () in the lower left corner of your screen that has a Windows flag on it.
  4. Click on the Control Panel menu option.
  5. Click on the Appearance and Personalization link.
  6. Now click on the Show hidden files and folders option. Under the Hidden files and folders section select the radio button labeled Show hidden files, folders, and drives.
  7. Remove the checkmark from the checkbox labeled Hide extensions for known file types.
  8. Remove the checkmark from the checkbox labeled Hide protected operating system files (Recommended).
  9. Press the Apply button and then the OK button. You will now be at your desktop and Windows 7 will be configured to show all hidden files.

From: http://www.bleepingcomputer.com/tutorials/show-hidden-files-in-windows-7/

关于java - Gradle 项目同步失败的基本功能,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34478957/

相关文章:

android - 无需 USB 的远程调试 Web 应用程序

android - sqlite从 Assets 中的文本文件批量插入

Android Studio Designer 找不到类

android - 可扩展的 RecyclerView Android Studio 示例

java - 是否可以定义多次aop :aspectj-autoproxy element

java - MVC模式: What happen when exists views with data about two or more models?

java - 如果输入的值超过四,我的代码将不会运行

java - 在 Netty 4 MessageToMessageDecoder 中解码可变长度的消息

android - 我应该为位图使用什么容器?

php - E/ Volley : [1376] BasicNetwork. 执行请求 : Unexpected response code 404 for http://192. 168.0.109/connectphp/GetRestaurantData.php?restype=cafe