Android studio no error but Jenkins build failed

Hi,
My android studio does not throw any error and the app runs fine, but when build through Jenkins it throws “error: cannot find symbol” for some changes that i did.