buildscript {
ext.kotlin_version = '1.7.20'
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.1.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.google.gms:google-services:4.3.5'
}
}
allprojects {
repositories {
google()
mavenCentral()
}
}
rootProject.buildDir = '../build'
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
project.evaluationDependsOn(':app')
}
task clean(type: Delete) {
delete rootProject.buildDir
}
1条答案
按热度按时间t8e9dugd1#
当您无法在Flutter SDK所在的文件夹中写入时会发生此错误。在Flutter项目中安装新包时,Flutter无法保存下载的包,可能会发生此错误。或者在其他写入情况下。查看解决方案:
您可能已禁用未经授权的更改以保护文件夹免受勒索软件的攻击。要允许它,请转到Windows安全=>病毒和威胁防护=>管理设置=>受控文件夹访问=>关闭受控文件夹访问。