Can I transform java code into kotlin and how because when i convert them and fix error the application crashs in the launch phase