The local availability replica of availability group '%1!s!' cannot become the primary replica. The last-known primary availability ...

The local availability replica of availability group '%1!s!' cannot become the primary replica.  The last-known primary availability replica is of a higher version than the local availability replica.  Upgrade the local instance of SQL Server to the same or later version as the server instance that is hosting the current primary availability replica, and then retry the command.