'Package appears to be corrupt' when change the 'io.ionic.starter' and build --release

When I try to build --release with my custom package name

<widget id="com.mydomain.name" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">

The apk won’t be installed, it gives me error “Apk not installed. The package appears to be corrupt”.
But when I changed the package id to default:

<widget id="io.ionic.starter" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">

The apk will be successfully installed and have no error.

I have tried remove the platform and add it again, the apk with my custom package name won’t be installed.