Please (re)search before posting as things like this have been explained many times already.

  • Delete the old device from your account
  • Install avast on the new one
  • Use your license file.