Hi, i built my app and it all fine since last week, copy screen and modify as i needed, but now it shows error after i install it, it automatically closed right after i clicked the icon app and it show this error (not sure if this kinda adb logcat)
i’ve looked for the solution the whole day and there’s plenty with similar error, but other just shows the exact error (ex:…Unbound location null, etc). i can’t find any stange on my Screen1 and i dont find any error related to “ClassNotFoundException: Didn’t find class …” that satisfy what i’m facing
here is the only properties and block on screen1:
Forgot to mention, after modify i got another error which i didn’t found any discussion/topic similar to it:
java.lang.NoClassDefFoundError: Failed resolution of: Lkawa/standard/Scheme;
at java.lang.reflect.Method.invoke(Native Method)
Caused by: java.lang.ClassNotFoundException: kawa.standard.Scheme
… 19 more
i guess so, kinda similar problem as @Tony_Lange faced. If i add Label component, the apk size little bit smaller and unable to open, but if i remove some, the apk size is little bit bigger and able to open. Not sure what kinda bug is this, perhaps @Kodular would like to clarify. Thanks
i SOLVED my problem, as i said earlier i was copied and modified the component, then i only renamed which is visible component or component i gonna use for the block.
i was having a component named like example:
Space4_copy_copy_copy2_copy_copy2…, and so on.
Little did i know that it may cause the app not completely built as @Tony_Lange argument (discussable), so i rename all components i have on each screen to appropriate name and shorter name.
Voila!!! it works.
Lesson: don’t just use DRY (Don’t Repeat Yourself) on your block, but also on your components name.
Note: above is my stats using https://unchive.lodular.io, the way i do to my app may worked to you if you have smaller or bigger project.
i’m not sure if this the real solution, thus i would like to keep this topic open so that other who encounter similar issue can discuss here and wait for someone responsible to tell that long component name really affect the built apk.
Special Thanks to people reply on this topic before, appreciate it. @riadaska@Taifun
One of my projects kept closing the apk even after changing the long names, but it was because it had a notifications extension that was causing the problem, check your extensions and eliminate them one by one until you find the problem.