I faced a problem linking a library to my project. There is main application A and module M. I added library X to the module externally. Then I added the same library to the main application merging it to the code. So, library X is included in module M as 'external' and in application A as 'merged in code'. No classes from X are used in the main application. Only module M used library X and its classes. All is compiled well but when I run the application it raises the error during loading the module: Main Thread (Suspended: VerifyError: Error #1014: Class 'class_definition' could not be found.). How should I compile the library to avoid such run time errors?
Merged into code will not do anything if the main app doesn't actually use
You would have to list every class in the library. That is not a typical
config as most folks don't want to burden the main app like that.
You can make a module out of library X and load it into the main app's
>You would have to list every class in the library
How can I do that? Did you mean import all classes somewhere in main app? What kind of config?
Import and declare:
import com.MyClass; MyClass;
import com.MyOtherClass; MyOtherClass;