I have installed java 8 and netbeans 8.2. I added android support on netbeans using https://bitbucket.org/nbandroid/nbandroid/wiki/Installation . I pointed sdk location created by android studio. I have created AVD. I created my first android project on netbeans. But when I am running or cleaning and building that app I am getting error message "build.xml:1: Premature end of file." What could be the cause of this problem. I am able to create and run android apps on android studio successfully so I think there is no problem with android sdk. I tried netbeans 8.1 also but same problem is happenning.