Sertilou
Sertilou

Reputation: 51

Unity Android can't publish APK, signed as debug

I am trying to upload an APK built in Unity3D to the Play Store, but it says I can't upload it because it's signed as debug mode. However, it's not! I've done absolutely everything in every forum:

What else must I do? I think that's all.

Upvotes: 3

Views: 2346

Answers (3)

Volkan Ege Dindar
Volkan Ege Dindar

Reputation: 103

Hello friends if you already publish your app and you want to do an update follow this.

  1. If you are sure about your keystorage settings and if development build is not active continue with second part.
  2. If you are using Facebook SDK or some Google services there's a configuration problem. Go to Assets > Plugins > Android > AndroidManifest.xml and find android:debuggable= and just set it false like:

    android:debuggable="false"

That's all guys. Thank you and bye bye!

Upvotes: 3

DataGreed
DataGreed

Reputation: 13899

Okay, so in order to sign the app for distribution via Play Store you also have to add a key and sign your apk with it. To do this:

  1. Find the Publishing Settings under Player Settings
  2. Create a new keystore by selecting a keystore name and password (confirm the password), select "browse" to save the keystore
  3. Select "Create a new key" under Key Alias
  4. A new window opens; enter the necessary information.
  5. Select the newly created key.
  6. Build

Your app is now signed, you can upload it to Play Store

Upvotes: 2

Nick Fortescue
Nick Fortescue

Reputation: 13832

All the Play store does is look at your APK using public tools. You can reproduce exactly what it does.

To check the signing key (which will need to match to update the app):

`keytool -list -printcert -jarfile app.apk`

To look at the manifest you use a tool called aapt which comes with the android SDK. This stackoverflow question tells you how to use it to tell if your APK is debuggable.

If your APK is debuggable as defined by the method above then you haven't changed everything you need.

Upvotes: 0

Related Questions