I used WifiConfiguration.preSharedKey for setting a 64 character hex key when targeting API28.
And then, I updated a Target API Version in order to upload app to goog