How to exit android app?


I used to use:


But when I upgraded openFL, I get this error:

Error:(424, 2) Class<openfl.Lib> has no field exit

So, where exit() has moved?

Does “Sys.exit(0)” work? I vaguely remember using this previously successfully, Never heard of openfl.Lib.exit() so it may very well be the more correct way to do things.

You can do openfl.system.System.exit(0); now.

@IanHarrigan1982 that would work but prevent lime/openfl to clean up

Gotcha… One to remember… :wink:

Thanks :smile: I can compile now