After upgrading the AGP or solving the error, another issue comes. Tried multiple times but found not reliable solution.