我的版本是 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:
- Close all programs so that you are at your desktop.
- Click on the Start button.
- This is the small round button () in the lower left corner of your screen that has a Windows flag on it.
- Click on the Control Panel menu option.
- Click on the Appearance and Personalization link.
- 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.
- Remove the checkmark from the checkbox labeled Hide extensions for known file types.
- Remove the checkmark from the checkbox labeled Hide protected operating system files (Recommended).
- 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/