When create new platform from template, may meet E=-2 issue, you can remove following line in Xproject-configuration/microui/microui.xml
<eventgenerators>
delete=> <eventgenerator name="WADAPPS" class="ej.wadapps.platform.EventGenerator"/> <=delete
<command name="COMMANDS"/>
<touch name="TOUCH" display="DISPLAY"/>
</eventgenerators>