Hi, I have a application that contains 1000+ PDF f...
# android
t
Hi, I have a application that contains 1000+ PDF file links and I grouped relevant links to a kotlin list, the 1 list currently has around 935 objects and I am getting a compilation error on my IDE. If anyone has any suggestions on how I should approach this please tell.
not kotlin but kotlin colored 1
c
Copy code
Caused by: java.io.FileNotFoundException: D:\SApapers\SAPapers\SAPapers\composeApp\build\tmp\kotlin-classes\debug\data\DataKt.class (The system cannot find the path specified)
Your constructor is „too large“
Copy code
exception: exception: java.lang.RuntimeException: Error generating class file data/DataKt.class (compiled from [D:\SApapers\SAPapers\SAPapers\composeApp\src\commonMain\kotlin\data\Data.kt]): Method too large: data/DataKt.<clinit> ()V
Suggestion: don’t create those PDF descriptions at compile time but create a JSON/XML/Yalm file with the information and parse it at runtime to create your objects.
t
Thank you for your help, I really appreciate it.