使用Android Studio进行Flutter开发... 我得到的错误:
Finished with error: **ProcessException**: Process 1.
1. "D:\Projects\FlutterAndroidProjects\Calculator\calculator\android\gradlew.bat"
**exited abnormally**:
2. Unzipping C:\Users\Muhammad_Kamran\.gradle\wrapper\dists\gradle-4.10.2-all\9fahxiiecdb76a5g3aw9oi8rv\gradle-4.10.2-all.zip to C:\Users\Muhammad_Kamran\.gradle\wrapper\dists\gradle-4.10.2-all\9fahxiiecdb76a5g3aw9oi8rv
**Exception in thread "main"** java.util.zip.ZipException: **error in opening zip file**
1. at java.util.zip.ZipFile.open(Native Method)
2. at java.util.zip.ZipFile.<init>(ZipFile.java:225)
3. at java.util.zip.ZipFile.<init>(ZipFile.java:155)
4. at java.util.zip.ZipFile.<init>(ZipFile.java:169)
5. at org.gradle.wrapper.Install.unzip(Install.java:214)
6. at org.gradle.wrapper.Install.access$600(Install.java:27)
7. at org.gradle.wrapper.Install$1.call(Install.java:74)
8. at org.gradle.wrapper.Install$1.call(Install.java:48)
9. at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)
10. at org.gradle.wrapper.Install.createDist(Install.java:48)
11. at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:128)
12. at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
Command: D:\Projects\FlutterAndroidProjects\Calculator\calculator\android\gradlew.bat -v
答案 0 :(得分:-1)
关于Google服务的全部内容 我按照您所说的将其更改为google-services:4.2.0,它可以与我配合使用。
答案 1 :(得分:-1)
这是因为文件已损坏,因此请删除现有的gradle文件
.gradle \ wrapper \ dists将是一个隐藏文件,并且在项目,android文件夹和您的家中将有多个此类文件夹
找到文件夹并删除损坏的文件并运行它