首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Build.gradle启动失败

Build.gradle启动失败
EN

Stack Overflow用户
提问于 2016-07-15 00:54:33
回答 0查看 8.3K关注 0票数 0

我正在做我的项目,但是我的笔记本死机了很长一段时间。所以,我重启了它并运行了Android Studio,但是这个项目不起作用。所有的活动和类都是正常的,但是Android Studio显示mt build.gradle错误。我的build.gradle(应用程序)文件变空了!此文件中没有任何内容!我不知道,有什么问题。以下是来自Android Studio的信息

代码语言:javascript
复制
Error:(1, 0) Cause: startup failed:
build file 'C:\Users\dns\MyApplication\app\build.gradle': 1: unexpected char: 0x0 @ line 1, column 1.

还有这个:

代码语言:javascript
复制
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文件:

代码语言:javascript
复制
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 }
EN

回答

页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/38379994

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档