Android APK upload fails since APK is debuggable

When I upload the generated APK file on the Google Play website, I get the following error:

Upload failed
You uploaded a debuggable APK. For security reasons you need to disable debugging before it can be published in Google Play. Learn more about debuggable APKs.

How can I generate a non-debuggable APK?

Thanks.

Hey @worldmover -

Oops, I left debugging enabled when I was debugging the click issue. It’s disabled now, so a rebuild should fix it. Sorry about that

Thanks grazer. Will try it out later today