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:\\Users\\USER_NAME\\key.jks -alias key -file C:\\Users\\USER_NAME\\upload_key_public_certificate.pem