Thank you for your response Is there any similar kind of code that can be commented out for the PhoneGap build as well? Because currently, I am using the PhoneGap repository( https://github.com/moodlehq/moodlemobile-phonegapbuild ).
I tried to create a development environment for Moodle mobile2, but I am getting many errors. I have already posted my query on moodle forums, but I haven't received any solutions. https://moodle.org/mod/forum/discuss.php?d=393740#p1588882