· Mobile Engineer at Consolices

Error compiling app on my local device android emulator

Troubleshooting

Every time, I just try build project from an android emulator device locally. It shows compilation error on device logs.

Here is the device logs.


Launching lib/main.dart on sdk gphone x86 in debug mode...

Upgrading build.gradle

Running Gradle task 'assembleDebug'...                          

Exception in thread "main" java.util.zip.ZipException: zip END header not found

at java.base/java.util.zip.ZipFile$Source.findEND(Unknown Source)

at java.base/java.util.zip.ZipFile$Source.initCEN(Unknown Source)

at java.base/java.util.zip.ZipFile$Source.<init>(Unknown Source)

at java.base/java.util.zip.ZipFile$Source.get(Unknown Source)

at java.base/java.util.zip.ZipFile$CleanableResource.<init>(Unknown Source)

at java.base/java.util.zip.ZipFile.<init>(Unknown Source)

at java.base/java.util.zip.ZipFile.<init>(Unknown Source)

at java.base/java.util.zip.ZipFile.<init>(Unknown Source)

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.Install.createDist(Install.java:48)

at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:128)

at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)

Running Gradle task 'assembleDebug'...                             491ms

Error: Gradle task assembleDebug failed with exit code 1

What have you tried so far?

I tried to contact help support team. They asked to provide device logs. Unfortunately, I was not able grab any crash logs on iOS devices and successful in getting it from an Android emulator. Due to workload pressure. I was not able to provide on time. And now they have ended the conversation without my consent. Now, I am unable to reach out to them even I can not create any new ticket.

Did you check FlutterFlow's Documentation for this topic?
Yes
2