gpt4 book ai didi

android - 线程 "main"java.util.zip.ZipException : error in opening zip file 中的 react-native run-android 异常

转载 作者:塔克拉玛干 更新时间:2023-11-02 19:08:24 25 4
gpt4 key购买 nike

我努力

react-native run-android 

遇见这个问题

JS server already running.
Running C:\Users\丶丶困困兽兽犹犹斗斗\AppData\Local\Android\sdk/platform-tools/adb -s 192.168.76.101:5555 reverse tcp:8081 tcp:8081
Building and installing the app on the device (cd android && gradlew.bat installDebug...
Unzipping C:\Users\丶丶困困兽兽犹犹斗斗\.gradle\wrapper\dists\gradle-2.4-all\6r4uqcc6ovnq6ac6s0txzcpc0\gradle-2.4-all.zip to C:\Users\丶丶困困兽兽犹犹斗斗\.gradle\wrapper\dists\gradle-2.4-all\6r4uqcc6ovnq6ac6s0txzcpc0Exception 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.<init>(ZipFile.java:114)
at java.util.zip.ZipFile.<init>(ZipFile.java:131)
at org.gradle.wrapper.Install.unzip(Install.java:159)
at org.gradle.wrapper.Install.access$500(Install.java:26)
at org.gradle.wrapper.Install$1.call(Install.java:69)
at org.gradle.wrapper.Install$1.call(Install.java:46)
at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)
at org.gradle.wrapper.Install.createDist(Install.java:46)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:126)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)

SDK运行良好,可以在adb devices中找到设备

最佳答案

问题是无法解压你的 gradle-2.4-all.zip,所以请删除现有文件

gradle-2.4-all.zip

从你的文件夹:

C:\Users\丶丶困困兽兽犹犹斗斗.gradle\wrapper\dists\gradle-2.4-all\6r4uqcc6ovnq6ac6s0txzcpc0\

下载一个新的 gradle-2.4-all.zip 文件并将其放在我们删除的同一文件夹中,然后再次尝试运行您的代码:react-native run-android

可能有效。您可以从以下链接下载 gradle zip 文件:https://services.gradle.org/distributions

关于android - 线程 "main"java.util.zip.ZipException : error in opening zip file 中的 react-native run-android 异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40814686/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com