繁体   English   中英

线程“main”中的异常 java.util.zip.ZipException:测试应用程序时打开 zip 文件时出错

[英]Exception in thread "main" java.util.zip.ZipException: error in opening zip file When testing the application

在此处输入图像描述 在 Android Studio 中,应用程序在 Real device 上运行,它以 ABK 格式导出。但是过了一会儿,这个错误出现了 我读到了 gradle 但不明白要删除和替换哪个文件

--- the error: Exception in thread "main" java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.(ZipFile .java:225) at java.util.zip.ZipFile.(ZipFile.java:155) at java.util.zip.ZipFile.(ZipFile.java:169) at org.gradle.wrapper.Install.unzip(Install. java88888888888gradle.WRAPPER.INSTALL.ACCESS $ 600(install.java:27)at org.8853617844448888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888880.CARN8888888888888888880.GALL( call(Install.java:48) at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65) at org.gradle.wrapper.Install.createDist(Install.java:48) at org.gradle.wrapper.WrapperExecutor .execute(WrapperExecutor.java:128) 在 org.gradle .wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)emphasized text [.] Gradle 在尝试更新自身时抛出错误。 正在重试更新...

我该如何解决。 使用 Android Studio 版本 3.6.1.. flutter.. dart.. Windows

当您使用的 gradle 版本损坏时,通常会引发此错误。 要解决此问题,您可以尝试修改您正在使用的 gradle 版本。 此页面上查找可与您的构建一起使用的 gradle 版本,并更新位于/android/gradle/wrapper上的 gradle-wrapper.properties 中定义的 gradle distributionUrl。 然后用flutter cleanflutter pub get再次重建 Flutter 项目

尝试使用 sudo 运行它,如果可行,则意味着您的权限有问题,请将 flutter 文件夹的所有者从 root 更改为您。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM