Version 2.2.1 Game crashing on launch with TypeError "Cannot read property of "Device"

Hello Devs,

I was using 2.1.2 before and my build ran successfully without crashes but when I opened my project with new version 2.2.1, it was running without problems on windows but game is crashing when i launch it on android devices with the mentioned error above.

Please if you have any idea about this, let me know. I need to push an important game update. Thank you.

Will the new project you created with version 2.2.1 crash?

Sorry for the late response.

It’s not crashing. When you run the build on android device. It’s not rendering anything. But I rolled back to old version and created a new android project and recompiled the whole thing again and that’s it for now. It’s working.

Ok,I suggest you delete the files in your project except assets and project.json and try to repackage the project.

1 Like