Why does AI Companion keep crashing?

My AI Companion keeps crashing. Is there something wrong with the code? This is what the code looks like:

Duplicate Blocks????

and perhaps other issues.

Thank you for the input! Unfortunately, it does not seem to work still... Like when I get into the AI Companion, it shows my app screen for only 2 seconds, and automatically crashes and brings me back to the home screen.

I'm using android, BTW

Check if it works without extension. Check if the APK works after compiling.

You may check adb logcat to understand the reason.