Ionic 3.6 Build Error

Randomly my build fails when I run

ionic cordova  run android

It fails with following error:

:\androidSdk\platform-tools\adb.exe: Command failed with exit code 1 Error output:
Failed to install F:/[Ionic Project Root]/platforms/android/build/outputs/apk/android-debug.apk: Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES: Failed to collect certificates from /data
/app/vmdl1815657945.tmp/base.apk using APK Signature Scheme v2: SHA-256 digest of contents did not verify]

[ERROR] An error occurred while running cordova run android (exit code 1).

Why does this happen? And how can I solve this?

Ionic Information:

cli packages: (F:\[Ionic Project Root]\node_modules)

    @ionic/cli-utils  : 1.8.0
    ionic (Ionic CLI) : 3.8.0

global packages:

    Cordova CLI : 6.5.0

local packages:

    @ionic/app-scripts : 2.1.3
    Cordova Platforms  : android 6.1.2
    Ionic Framework    : ionic-angular 3.6.0


    Node : v8.1.0
    npm  : 5.0.3
    OS   : Windows 10

Removing and re-adding the Android platform will probably fix this. Maybe there even is a clean command that might be enough, don’t remember right now.

But I cannot keep adding and removing platform every time I see that error right?
Plus the build time is usually 1.5 - 2 mins for me.
My Machine Config is:
i5 2nd Gen Processor
And still it takes long time to build an APK.
And some times like in 5 attempts I see this error 3 times.
So usually I spend 5-8 mins only building the APK.

Do anybody know why the error props up?

From looking at the error message

I would guess something is messing with your files during the build process. Anti virus, broken hard disk, security software…

But this is just a guess.