Android – Unable to upload new APK file to Android Play store

androidgoogle-play

I'm getting below error while trying to upload new APK file.

Upload failed

You uploaded a debuggable APK. For security reasons you need to
disable debugging before it can be published in Google Play.

Best Answer

If you're using Android Studio, the simplest way is to open the "Build Variant" toolbar on the left bottom and change it from "Debug" to "Release" then "Build" -> "Generated Signed APK".