Solve the problem of can't find method exceptions.