I have converted the code with the help of HMS toolkit to support both GMS and HMS. but after the conversion, it crashes and throws exception.
Process: c