Found the answer here: https://android.googlesource.com/platform/tools/base/+/e6a5b9c7c1bca4da402de442315b5ff1ada819c7
adding in build.gradle in android section, lintOptions solved the issue for me:
android {
...
lintOptions {
disable 'InvalidPackage'
}
}
adding the same ignore statement in lint.xml did not worked for me.