Error: Unable to export or encrypt the private key java.lang.NullPointerException
Running the below command created App signing preferences for play.google.com
and can solve the issue
keytool -export -rfc -keystore C:UsersUSER_NAMEkey.jks -alias key -file C:UsersUSER_NAMEupload_key_public_certificate.pem