在我从 Drill Disk 成功恢复并尝试运行我遇到错误的项目后,android 项目文件被错误删除
Build file 'E:\AndroidStudioProjects\side\app\build.gradle' line: 25
Could not compile build file 'E:\AndroidStudioProjects\side\app\build.gradle'.
> startup failed:
build file 'E:\AndroidStudioProjects\side\app\build.gradle': 25: unexpected char: 0x0 @ line 25,
column 2.
}
^
我已经尝试从 Github 项目的 Build.Gradle 文件中粘贴它,但仍然出现错误:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.3'
classpath 'com.google.gms:google-services:4.3.5'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
center()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
我不想拉取或创建新实例,因为我已经在旧文件中进行了更改,所以如果我再做一次,又会花费很多时间。
所以请任何专家帮助我解决我应该做的事情,我已经参考了 Stackoverflow 上与此主题相关的旧帖子,但我无法获得解决方案?