Unable to run app on device

Hello, i can’t run a basic app on my Samsung Galaxy S connected to my PC.

I followed this instructions https://wiki.jmonkeyengine.org/legacy/doku.php/jme3:android and i get the following message :



[xml]init:

Deleting: C:UsersFirePhoenixDocumentsjmonkeyBasicGamebuildbuilt-jar.properties

deps-jar:

Updating property file: C:UsersFirePhoenixDocumentsjmonkeyBasicGamebuildbuilt-jar.properties

compile:

Copying 1 file to C:UsersFirePhoenixDocumentsjmonkeyBasicGamebuild

Copy libraries to C:UsersFirePhoenixDocumentsjmonkeyBasicGamedistlib.

To run this application from the command line without Ant, try:

java -jar “C:UsersFirePhoenixDocumentsjmonkeyBasicGamedistMyGame.jar”

Copying 13 files to C:UsersFirePhoenixDocumentsjmonkeyBasicGamemobilelibs

jar:

run-android:

MyGame.install:

Install file not specified.



‘ant install’ now requires the build target to be specified as well.





ant debug install

ant release install

ant instrument install

This will build the given package and install it.



Alternatively, you can use

ant installd

ant installr

ant installi

ant installt

to only install an existing package (this will not rebuild the package.)

C:UsersFirePhoenixDocumentsjmonkeyBasicGamenbprojectmobile-impl.xml:5: The following error occurred while executing this line:

E:android-sdk-windowstoolsantbuild.xml:1194: The following error occurred while executing this line:

E:android-sdk-windowstoolsantbuild.xml:1261: No message

BUILD FAILED (total time: 2 seconds)

[/xml]



I made the changes posted on this page http://hub.jmonkeyengine.org/groups/android/forum/topic/android-sdk-r17-libs-folder-issue/ and i get another message :



[xml]init:

Deleting: C:UsersFirePhoenixDocumentsjmonkeyBasicGamebuildbuilt-jar.properties

deps-jar:

Updating property file: C:UsersFirePhoenixDocumentsjmonkeyBasicGamebuildbuilt-jar.properties

compile:

Copying 1 file to C:UsersFirePhoenixDocumentsjmonkeyBasicGamebuild

Copy libraries to C:UsersFirePhoenixDocumentsjmonkeyBasicGamedistlib.

To run this application from the command line without Ant, try:

java -jar “C:UsersFirePhoenixDocumentsjmonkeyBasicGamedistMyGame.jar”

Copying 13 files to C:UsersFirePhoenixDocumentsjmonkeyBasicGamemobilelibs

jar:

run-android:

Building debug android application version.

C:UsersFirePhoenixDocumentsjmonkeyBasicGamenbprojectmobile-impl.xml:7: Execute failed:

java.io.IOException: Cannot run program “ant” (in directory “C:UsersFirePhoenixDocumentsjmonkeyBasicGamemobile”): CreateProcess error=2, Le fichier spécifié est introuvable

at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)

at java.lang.Runtime.exec(Runtime.java:615)

at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:862)

at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:481)

at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:495)

at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:631)

at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:672)

at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:498)

at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)

at sun.reflect.GeneratedMethodAccessor50.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:601)

at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)

at org.apache.tools.ant.Task.perform(Task.java:348)

at org.apache.tools.ant.Target.execute(Target.java:390)

at org.apache.tools.ant.Target.performTasks(Target.java:411)

at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)

at org.apache.tools.ant.Project.executeTarget(Project.java:1368)

at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)

at org.apache.tools.ant.Project.executeTargets(Project.java:1251)

at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:284)

at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:539)

at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153)

Caused by: java.io.IOException: CreateProcess error=2, Le fichier spécifié est introuvable

at java.lang.ProcessImpl.create(Native Method)

at java.lang.ProcessImpl.<init>(ProcessImpl.java:189)

at java.lang.ProcessImpl.start(ProcessImpl.java:133)

at java.lang.ProcessBuilder.start(ProcessBuilder.java:1021)

… 22 more

BUILD FAILED (total time: 1 second)

[/xml]



Thanks

Make sure you got your android SDK and the jme SDK updated to the latest version.

The android sdk tool is updated (19 revision) and i have the jme3 beta version (not updated).

First of all you seem to have the fix for r17 in place, remove it. Then update the jme sdk and go to the android settings panel to make sure all settings are updated and press ok.

Thanks, now it works fine.