KWGT | Major issue with custom widget | "None of these files have been found in ZIP stream: [Ljava.lang.String;@ec87569"

I invested many hours of work into a widget and now nothing works anymore. Of course I made backups at 4 places: on the smartphone in a backup folder, in the KWGT structure, on the PC and on Google Drive. File names and widget names were slightly renamed. The import function seems not to work via Explore, Library or Backups. The UI is really hard to understand. None of the backups can be loaded. Sometimes I can randomly load the widget by chance. But then many custom icons and many custom fonts are unavailable/broken, even though all the files are available in the intended folders.

When I try to import a widget I get following error message:
“None of these files have been found in ZIP stream: [Ljava.lang.String;@ec87569”

AlsoI get the following error message:
“Error: preset: load failed, File not found: org.kustom.sdccard.000,archive:widgets/HS_Ma…”

Uninstalled and reinstalled KWGT several times. Restarted the phone several times. Cleared the cache several times. Please help me, I highly appreciate your support!

Try removing any underscores from the .kwgt file (so this_file.kwgt to thisfile.kwgt).

Also, what do you mean by “File names and widget names were slightly renamed”?

1 Like

Hi there,

Instead of importing, have you tried to simply copy the widget file into the widgets folder (under the Kustom installation folder) ?

Also, did you use a fixed path for files that are used in the widget? From the second error message, it seems that the widget try to load a file but failed due to the missing file or incorrect path.

1 Like

I tested it and it seems that the issue is not caused by the underscores.

What do you mean? Putting the file into the widgets folder does not replace the loading functionality. Also, where I can change fixed paths vs relative paths?

I could recover some configuration manually and re-built everything. Issue solved.

hmm… so from my understanding I tried this and eventually gave up because problem lies in the metadata of the zip file. here is detailed version how i found it. I was originally trying to edit the preset.json on my vscode on my computer becuase app was not working correctly so it was unlocked file and I knew how to order structure in json format the way kustom apps did, so I did that and repacked everything and when i tried to load file in my kwgt it had same error as you were getting. so i did some digging because something is missing that was clear because everything was same order. so to do some detective work i tried to remake simple kwgt preset that had only one element of text and same i tried to make from kwgt app and exported in my computer and looked in json of file that was made from kwgt app copied everything same over to file i made and packed in zip renamed it to .kwgt extension and it still didn’t work so then I thought there has to be something wrong and that’s when i noticed error message closely and and got idea that you can also have string in zip file’s metadata so i uploaded both file to some online website that showed metadata of zip files and guess what in one of the attribute of original file that was exported from kwgt had preset.json while one i made didn’t had that and I didn’t knew how to put it in my own zip’s metadata even though i am programmer and I know dev did code in kotlin/java which i know of course but I found that it would be too time consuming to create program that changes that attribute so i eventually gaveup otherwise if not that problem I would have gone upone creating the web editor using node but in style of json so people would/could have alternative to make kustom widgets/wallpapers online. i’ll try to link website here If i can since it was in last 3 month I might be able to and you can go upone there and upload simple kwgt file containing single text element one from app made and one from the vscode/whatever code editor you use so you have idea what is different also size might be different but it is not the issue which causes this problem. ok found that site and also tried to upload app made file and got that differentiate info. so attribute that is different is “zip_file_name” and it’s value is “preset.json”. site doen’t allow to share your uploaded file properties so you have to upload your own but result should be same. here check it out it should show my uploaded file result https://www.metadata2go.com/result#j=17e7cca4-f039-455d-928c-eec443fccbe2 hope this helps. let me know if you found any tools that could edit metadata but i’m pretty sure it is only editable when the compressed file is created thus once it’s created no longer editable.

1 Like

Thank you so much for your detailed feedback, I highly appreciate that. As reported before, I could recover some configuration manually and re-built everything. I noticed that sometimes the fonticon sets need to be re-selected, as well the font types. It helped me to get the proper formatting and missing icons back.

This topic was automatically closed 25 days after the last reply. New replies are no longer allowed.