Unable to use CompCreator, any example I use or make gives following error upon load:
Error from Companion: java.lang.RuntimeException: invalid syntax in eval form: :38:1: caught exception in inliner for # - java.lang.RuntimeException: no such class: cn.kevinkun.CompCreator.CompCreator gnu.bytecode.ObjectType.getReflectClass(ObjectType.java:179) gnu.bytecode.ClassType.getModifiers(ClassType.java:103)
How to avoid runtime errors with the companion app
After importing an extension, please restart the companion app.
If you like to use an extension on a different screen, in Screen1 additionally drag the extension into the working area.
While starting the companion app, all necessary assets and also the imported extensions of your project will be copied to your device. So in case the no such class error shows up, the extension code to run the extension is not available on your device. Without that code the companion app is not able to execute methods from the extension.
After importing, you must drag the extension into the Designer, on top of the Designer background (image of phone) and it will snap to a row below the image - after that, the extension is installed.
That is not a 100% solution since the Emulator is not compatible with everything you throw at it.
If you have the AI2 Companion on a device for testing, it is better to use it rather than the Emulator - you are then testing how Android executes your code and how Android displays your GUI.
Guys this is a bug.
I've tried with the simplest app, just a button or something like that add any extension at all and Companion with not work period until you remove the extension.
Can one of the devs point me in a direction to look so I can go after the code that does this.