i re-installed Avast mobile security and i'm getting the same issue here.
device: Moto XT1524 = Moto E 2015 LTE (surnia)
o.s.: Android 7.1.2, lineage-14.1-20180325-nightly-surnia-signed.zip
android security patch level: 5 march 2018
i registered the device on
https://www.google.com/android/uncertified/(new requirement from Google for custom Android ROM users)
and
i tried logging in with the Google Account dedicated for my phone (different than current id) - error
i tried logging in with the current Avast account (that i'm posting here on forum) - getting the same error.
using Avast mobile security version 6.9.3 (latest currently on the Google Play Store)
there's something wrong with the Avast app itself... it's probably still trying to use a deprecated Android API? Now that Google has started to enforce device certification IDs maybe that old thing is no longer allowed?
edit: i have tried logging in with the Google Account into another app, it worked flawlessly there and the app appeared in the list at
https://myaccount.google.com/permissions/edit.