thingsboard / flutter_thingsboard_pe_app

ThingsBoard PE Mobile Application
https://thingsboard.io/products/mobile-pe/
BSD 3-Clause "New" or "Revised" License
89 stars 72 forks source link

several problems in the source code of release 1.2.0 & java.util.zip.ZipException #140

Open MichaelKerscher opened 1 month ago

MichaelKerscher commented 1 month ago

Hi,

a) If I open the Flutter project from the master branch in VS code, I get 12 errors, 2 warnings and 27 infos (mostly about obsolete elements that should no longer be used). - Is this occurrence known?

image

b) When building despite the error messages, I get a java.util.zip.ZipException: image

According to my research, the distributionUrl in the project directory in gradle-wrapper.properties is incorrect. I cannot find the archive gradle-7.5.1-all.zip in MVN REPOSITORY. After the Gradle version 7.4.x comes 8.0.x: image

Am I right?

Best regards!

ybeshkarov commented 1 month ago

Hello, which version of Flutter did you use?

MichaelKerscher commented 1 month ago

Thanks for your quick response!

I use Flutter 3.24.2 - channel stable and Dart 3.5.2 and DevTools 2.37.2

ybeshkarov commented 1 month ago

The master or release/1.2.0 branch works with Flutter 3.19.6. A newer flutter brings an issue during the building process.

MichaelKerscher commented 1 month ago

Ok, thank you!

So i have downgraded Flutter to 3.19.6 - Dart 3.34 and DevTools 2.31.1.

Only after flutter run I still get the java.util.zip.ZipException: image (The screenshot also shows the remaining problems after git checkout 3.19.6.)

Can you imagine how the java.util.zip.ZipException occurs and how it can be eliminated?

ybeshkarov commented 3 weeks ago

Never seen this before. Did you mange to resolve it?

MichaelKerscher commented 4 days ago

No, unfortunately not. The only thing I have found out so far is that it works on my private computer. There I really only have to download the source code of release 1.2.0 and can execute it in VS code. Only at work I get this problem with the java.util.zip.ZipException: invalid block type.