Wednesday, January 29, 2014

Errors occurred during the build. Errors running builder 'Android Package Builder' on project 'HelloAndroid'. sun/security/x509/X500Name

Problem:

Got the error 

"Errors occurred during the build. Errors running builder 'Android Package Builder' on project 'HelloAndroid'. sun/security/x509/X500Name"

While attempting to run an android project on an emulator.

Description:

 In my case the problem was that I had installed IBM JDK as the default java runtime. Android requires Sun JDK(Now Oracle JDK) for runtime or else it requires signed certificate to run in jvm other than what is supplied by Oracle.

Resolution:

Installed Oracle JDK and relaunched the Android ADT.

Solution Link:

“resource is out of sync with the filesystem” in eclipse after importing an Android project.

Problem:

Got the error : “resource is out of sync with the filesystem” for the default.properties file after importing an existing android project into a new workspace.

Resolution:
Right click on the project -> select "Refresh"

Source for resolution:

avoiding “resource is out of sync with the filesystem”