我正在做我的项目,但是我的笔记本死机了很长一段时间。所以,我重启了它并运行了Android Studio,但是这个项目不起作用。所有的活动和类都是正常的,但是Android Studio显示mt build.gradle错误。我的build.gradle(应用程序)文件变空了!此文件中没有任何内容!我不知道,有什么问题。以下是来自Android Studio的信息
Error:(1, 0) Cause: startup failed:
build file 'C:\Users\dns\MyApplication\app\build.gradle': 1: unexpected char: 0x0 @ line 1, column 1.还有这个:
Load Settings
Cannot load settings from file 'C:\Users\dns\MyApplication\.idea\misc.xml': Error on line 1: Content is not allowed in prolog.
Please correct the file content我需要知道什么?也许,我需要找到这些文件?我没有改变它们中的任何东西。
感谢您的帮助!
这是我的gradle文件:
Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { jcenter() } 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 } } allprojects { repositories { jcenter() } } task clean(type: Delete) { delete rootProject.buildDir }https://stackoverflow.com/questions/38379994
复制相似问题