How to sign APK in debug mode with JME3?

I can’t install my APK on a virtual device, AVD Manager tells that my APK isn’t signed.

(Android Studio signs your app in debug mode automatically when you run or debug your project from the IDE - http://developer.android.com/tools/publishing/app-signing.html)

Please describe carefully how to do it.
If it’s impossible then tell how do you get out of this situation ?

I’m not sure what you mean “sign in debug mode” if you’re debugging the application usually you don’t need it signed.

You usually would sign the release version

USB Debugging and direct deploy via the android sdk.

Android Studio signs your app in debug mode automatically when you run or debug your project from the IDE - http://developer.android.com/tools/publishing/app-signing.html

I can’t install my APK on a virtual device, AVD Manager tells that my APK isn’t signed.

Are you using the SDK? because the standard ant build signs the apk for debug.

My JME uses SDK.
In JME: after I click “debug” in the “dist” appears “MyGame-release-unsigned.apk”.

If you’re using the SDK you can launch it directly onto your device from the IDE.

As for using an AVD for jme games Ive had no success as it is often much too slow too realistically debug.

In my opinion it’s best to debug directly onto your Android device if you have one.

Can I do it with using JMonkeyEngine SDK ?

Yes of course.

  1. Set up Android Deployment
  2. Disable “Save on Compile” in the config
  3. In the top menu change from to Android device
  4. Launch the app

Instead of opening the PC prompt it wlll go for the device you have plugged in.

I have a thread that went over pretty much every problem you’ll run into while trying to do Android games with JME

http://hub.jmonkeyengine.org/t/all-things-android-common-troubles-and-faq

The formatting is off though due to the forum switch.

1 Like

I ran it on a device. Thank you very much