”Application not installed” by trying to install *.apk at the phone (22 posts)

Topic tags: android application not installed
  • Profile picture of opus31337 opus31337 said 4 months ago:

    Hello,

    I’m trying to compile and install a HelloWorld-app(basicgame) at my android phone (just like it is described here http://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
    installed”.

    Does anyone have an idea, why it doesn’t work?

    p.s. i’m sorry for my english:(

  • Profile picture of sbook sbook255p said 4 months ago:

    Do you have your phone set up to install non-market (from unknown sources) applications?

    http://pocketnow.com/how-to/how-to-install-non-market-apps-on-your-android-phone

  • Profile picture of opus31337 opus31337 said 4 months ago:

    Thank you for the answer. But my phone was already seted up for it:(

  • Profile picture of normen normen1271p said 4 months ago:

    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.

  • Profile picture of opus31337 opus31337 said 4 months ago:

    @normen said:
    Do you use the SDK for deployment

    Yes, the latest version (3.0beta)

    @normen said:
    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…

    @normen said:
    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)

  • Profile picture of normen normen1271p said 4 months ago:

    @opus31337 said:
    ä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?)

  • Profile picture of opus31337 opus31337 said 4 months ago:

    @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:(

  • Profile picture of normen normen1271p said 4 months ago:

    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.

  • Profile picture of opus31337 opus31337 said 4 months ago:

    i did it just as you said:

    Installing C:UsersOPDocumentsjMonkeyProjectsTempAndroidmobilebinMyGame-debug.apk onto default emulator or device...
    error: device not found
    C: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: 1
    BUILD 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?

  • Profile picture of opus31337 opus31337 said 4 months ago:

    sometimes I’m getting 3 files by building the project: MyGame-release-unsigned.apk, MyGame-debug-unaligned.apk, MyGame-debug. What does it mean?

  • Profile picture of normen normen1271p said 4 months ago:

    read the android SDK manual

  • Profile picture of masktuxedo masktuxedo3p said 4 months ago:

    This should clear up your question on signing and aligning:

    http://developer.android.com/guide/developing/building/index.html

    and

    http://developer.android.com/guide/developing/building/building-cmdline.html

    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.

  • Profile picture of normen normen1271p said 4 months ago:

    @masktuxedo said:
    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.

  • Profile picture of masktuxedo masktuxedo3p said 4 months ago:

    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.

  • Profile picture of normen normen1271p said 4 months ago:

    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.