January 12, 2012 at 22:31 #23538
I’m trying to compile and install a HelloWorld-app(basicgame) at my android phone (just like it is described here http://hub.jmonkeyengine.org/wiki/doku.php/jme3:android).
I successfully built an apk-file and copied it to the phone. But by trying to install it, there was an error message: “application not
Does anyone have an idea, why it doesn’t work?
p.s. i’m sorry for my english:(January 13, 2012 at 17:48 #162303
Do you have your phone set up to install non-market (from unknown sources) applications?January 16, 2012 at 14:25 #162304
Thank you for the answer. But my phone was already seted up for it:(January 16, 2012 at 14:51 #162305
Do you use the SDK for deployment an do you do things like they are described in the manual? Can you update the SDK to the version that just came out and try again? It displays the android device log so you can see any error output.January 16, 2012 at 15:17 #162306
Do you use the SDK for deployment
Yes, the latest version (3.0beta)
an do you do things like they are described in the manual?
yes. i just created new BasicGame(a blue cube) and tryed to transport it to my phone…
Can you update the SDK to the version that just came out and try again? It displays the android device log so you can see any error output.
oh, there are really some updates for android aviable… i’m downloding it now;) “the android device log”… ähm… i can’t connect my phone to the pc and run applications with SDK on it:((i mean, without to copy apk to the phone)January 16, 2012 at 15:19 #162307
ähm… i can’t connect my phone to the pc and run applications with SDK on it:((i mean, without to copy apk to the phone)
Öh, warum? ^^ (Why can’t you?)January 16, 2012 at 15:28 #162309
@normen said: Why can’t you?
i don’t know how:) it doesn’t connect automatically and i couldn’t do it manual… i didn’t also found some information about it there:(January 16, 2012 at 15:29 #162310
Its described in the manual. Set the project as main project, connect your phone, select “Android Device” next to the play button and make sure “compile on save” is disabled in the project settings. Then when you run your application its run on the device.January 16, 2012 at 15:42 #162311
i did it just as you said:
Java123456Installing C:UsersOPDocumentsjMonkeyProjectsTempAndroidmobilebinMyGame-debug.apk onto default emulator or device…error: device not foundC:UsersOPDocumentsjMonkeyProjectsTempAndroidnbprojectmobile-impl.xml:6: The following error occurred while executing this line:D:Program FilesAndroidandroid-sdktoolsantbuild.xml:1124: The following error occurred while executing this line:D:Program FilesAndroidandroid-sdktoolsantbuild.xml:1138: exec returned: 1BUILD FAILED (total time: 54 seconds)
do i have to install some additional software to be able to connect an android phone to the pc(like itunes for iphone) or something like that?January 16, 2012 at 15:51 #162312
sometimes I’m getting 3 files by building the project: MyGame-release-unsigned.apk, MyGame-debug-unaligned.apk, MyGame-debug. What does it mean?January 16, 2012 at 16:01 #162313
read the android SDK manualJanuary 18, 2012 at 01:32 #162314
This should clear up your question on signing and aligning:
When you build with eclipse it will automatically sign (with debug key, or the real release key if you export the apk), and align for you, so you will not notice it.January 18, 2012 at 01:40 #162315
When you build with eclipse it will automatically sign (with debug key, or the real release key if you export the apk), and align for you, so you will not notice it.
This is a feature of the android SDK projects in general, not just under eclipse. Thats why the jmp build process creates the same files.January 18, 2012 at 01:46 #162316
I thought only eclipse would sign with the debug key automatically (so you might not even know about it when you “run” from eclipse). If you build from the command line for example, I believe you have to create a debug key and include it in your build script.January 18, 2012 at 01:55 #162317
No, you press “play” in the jME SDK just like in eclipse and the application runs on your phone.. or desktop for that matter, different than eclipse :P Thats why he gets the “-debug.apk”, its a normal feature of the android ant build script (which is also used by eclipse). For real (deployment) signing you have to specify a key in eclipse like in any other IDE which also just sets the values in the properties file of the android project. You can even open the mobile folder of the jME SDK projects in eclipse as an android project because of this.
You must be logged in to reply to this topic.