You can clean a project to resolve any dependencies or similar error from all previous build results. Clean builds update all resources within the scope of the build.
To clean and build a project:
From the Project menu, deselect Build Automatically.
When this option is selected, you can clean a project but you cannot perform a clean and build (automatic builds are always incremental).
From the Project menu, select Clean.
The Clean dialog box appears.
Do one of the following:
To clean all projects in the workspace, select Clean all projects.
To clean a specific project or group, select Clean projects selected below, then select the projects to clean.
Select Start a build immediately.
This option enables you to clean and build the selected projects in a single step. When you select this option, you must determine whether to build all projects after the clean, or limit the build to the selected projects.
Click OK.
Design Studio cleans and builds the selected projects.