A problem occurred ':gradle-plugin:react-native-gr...
# community-support
a
A problem occurred 'gradle pluginreact-native-gradle-plugin'. java.util.zip.ZipException: zip END header not found New Asked by A 1421 3 mins ago | npx react-native run-android info Installing the app... info 💡 Tip: Make sure that you have set up your development environment correctly, by running npx react-native doctor. To read more about doctor command visit: https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor FAILURE: Build completed with 2 failures. 1: Task failed with an exception. Where: Settings file 'D:\app4\AwesomeProject\android\settings.gradle' line: 2 What went wrong: Error resolving plugin [id: 'com.facebook.react.settings'] A problem occurred configuring project 'gradle pluginreact-native-gradle-plugin'. java.util.zip.ZipException: zip END header not found Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. Get more help at https://help.gradle.org. ============================================================================== 2: Task failed with an exception. What went wrong: Failed to query the value of property 'buildFlowServiceProperty'. Could not isolate value org.jetbrains.kotlin.gradle.plugin.statistics.BuildFlowService$Parameters_Decorated@5a0eb741 of type BuildFlowService.Parameters A problem occurred configuring project 'gradle pluginreact-native-gradle-plugin'. > java.util.zip.ZipException: zip END header not found Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. Get more help at https://help.gradle.org. ============================================================================== BUILD FAILED in 4s error Failed to install the app. Command failed with exit code 1: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081 FAILURE: Build completed with 2 failures. 1: Task failed with an exception. ----------- * Where: Settings file 'D:\app4\AwesomeProject\android\settings.gradle' line: 2 * What went wrong: Error resolving plugin [id: 'com.facebook.react.settings'] > A problem occurred configuring project 'gradle pluginreact-native-gradle-plugin'. > java.util.zip.ZipException: zip END header not found * Try: > Run with --stacktrace option to get the stack trace. > Run with --info or --debug option to get more log output. > Run with --scan to get full insights. > Get more help at https://help.gradle.org. ============================================================================== 2: Task failed with an exception. ----------- * What went wrong: Failed to query the value of property 'buildFlowServiceProperty'. > Could not isolate value org.jetbrains.kotlin.gradle.plugin.statistics.BuildFlowService$Parameters_Decorated@5a0eb741 of type BuildFlowService.Parameters > A problem occurred configuring project 'gradle pluginreact-native-gradle-plugin'. > java.util.zip.ZipException: zip END header not found * Try: > Run with --stacktrace option to get the stack trace. > Run with --info or --debug option to get more log output. > Run with --scan to get full insights. > Get more help at https://help.gradle.org. ============================================================================== BUILD FAILED in 4s. info Run CLI with --verbose flag for more details.
v
Please do not post such walls of text, but a sort message and then longer snippets in it's thread. That makes following the channel much easier, especially on mobile. Besides that, is there a question hidden somewhere? :-)
n
https://github.com/expo/expo/issues/34613 <-- there are some people complaining about this exact same issue here. Perhaps one of their proposed workarounds works to resolve this?
v
For anyone following from India here, the ministry of electronics in India caused the Kotlin Gradle Plugin URLs of 1.9.24 to be blocked. This causes the "this is blocked" HTML page to be downloaded as jar file as the blocking is not accompanied with an according HTTP status response, which can then not be read by Gradle as jar file of course. Update KGP version to 1.9.25 and it should work. (Until they block that too eventually)