简体   繁体   English

android studio上的颤振设置

[英]flutter setup on android studio

I'm facing problem in flutter setup on android studio.我在 android studio 上设置颤振时遇到问题。 how to resolve this problem ?如何解决这个问题? anyone have faced this problem plz help me out.任何人都遇到过这个问题,请帮助我。

Exception in thread "main" java.util.zip.ZipException: zip END header not found
    at java.base/java.util.zip.ZipFile$Source.zerror(ZipFile.java:1581)
    at java.base/java.util.zip.ZipFile$Source.findEND(ZipFile.java:1476)
    at java.base/java.util.zip.ZipFile$Source.initCEN(ZipFile.java:1483)
    at java.base/java.util.zip.ZipFile$Source.<init>(ZipFile.java:1288)
    at java.base/java.util.zip.ZipFile$Source.get(ZipFile.java:1251)
    at java.base/java.util.zip.ZipFile$CleanableResource.<init>(ZipFile.java:732)
    at java.base/java.util.zip.ZipFile$CleanableResource.get(ZipFile.java:849)
    at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:247)
    at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:177)
    at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:191)
    at org.gradle.wrapper.Install.unzip(Install.java:214)
    at org.gradle.wrapper.Install.access$600(Install.java:27)
    at org.gradle.wrapper.Install$1.call(Install.java:74)
    at org.gradle.wrapper.Install$1.call(Install.java:48)
    at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)
    at org.gradle.wrapper.Insta`enter code here`ll.createDist(Install.java:48)
    at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:128)
    at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
Exception: Gradle task assembleDebug failed with exit code 1

检查您的 'JAVA_HOME' 路径变量是否已设置并且您已正确安装 Java。

I recently faced this kind of issue.我最近遇到了这种问题。 All I did was delete the .gradle folder from C:\Users<youraccount> .我所做的只是从 C:\Users<youraccount> 中删除 .gradle 文件夹。 Try rerunning after deleting that and it will build it again.删除后尝试重新运行,它将再次构建它。

After that maybe you will face issues in your app/gradle file in android folder in the project.之后,您可能会在项目的 android 文件夹中的 app/gradle 文件中遇到问题。 If you open that, there may be errors of GradleException which you have to replace with FilenotFoundException如果打开它,可能会出现GradleException错误,您必须将其替换为FilenotFoundException

Also, do run flutter doctor to know about any issues present in your setup.另外,请运行flutter doctor以了解设置中存在的任何问题。

Please do let me know if it works for you.请让我知道它是否适合您。

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

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