Hello All,
I am trying to build and run a project on my Android device, but I keep running into issues. When building the project I get this error:
Building debug android application version.
Android SDK Tools Revision 20
Installed at C:Program Files (x86)Androidandroid-sdk
Project Name: MyGame
Project Type: Application
Switching between debug and non debug build: Deleting previous compilation output…
C:Jmonkey ProjectsBasicGamenbprojectmobile-impl.xml:10: The following error occurred while executing this line:
C:Program Files (x86)Androidandroid-sdktoolsantbuild.xml:447:
java.io.FileNotFoundException: C:Jmonkey ProjectsBasicGamemobileMANIFEST.MF (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
My IDE and SDK are both updated to the latest version. Anyone have any idea what’s going on?
Thanks
Does the file exist? If yes, make sure you don’t have it opened in another application or window.
Ok I figured it out. There was no manifest file named “MANIFEST.MF” in the mobile directory, just the “AndroidManifest.xml” file. I renamed that file to “MANIFEST.MF” and now it’s running.
Is something configured improperly? I can just rename the file for all of my projects but I am trying to learn more about ANT and would be curious to know what’s going on.
:facepalm: Well that was surely not a solution. :roll: You broke your android project now. Disable android deployment, press ok and enable it again to recreate the project
Well it doesn’t seem broken, it’s running fine on my device now :). I didn’t actually rename AndroidManifest.xml, I made a copy and renamed the copy. If I had just renamed it yes, my project would indeed be broken.
Here is the line from build.xml
<xpath input="${manifest.abs.file}" expression="/manifest/application/@android:debuggable"
output=“build.is.packaging.debug” default=“false”/>
It seems to me that when building an app targeted at Android, the property ${manifest.file} should be set to AndroidManifest.xml instead of MANIFEST.MF right?
what build.xml is that? there is no android directives in the main build.xml file. the one in /mobile/ is generated by the android SDK script, did you update your android SDK to the latest version?
That is the Android SDK build file in android-sdktoolsant. I am using Android SDK rev.20 which was just released a few days ago.
@imonmars said:
That is the Android SDK build file in android-sdktoolsant. I am using Android SDK rev.20 which was just released a few days ago.
Then the current command line tool creates inconsistent project / build file combinations, sorry :/. They seem to break it on every even release, lets hope its fixed in v21 -.-
Edit: It would seem to me that it should be done the other way round though, replacing the reference to MANIFEST.MF with one to AndroidManifest.xml in the build file
Anyone solved it? None of above methods have worked for me.
@simme909 said:
Anyone solved it? None of above methods have worked for me.
renaming the reference in the android sdk build script didn't work? I don't quite believe that.
which script do you mean? the ones in SDK folder or in /mobile?
@normen said:
renaming the reference in the android sdk build script didn't work? I don't quite believe that.
sorry cannot find the script
this is line 445-448:
get the project manifest package →
<xpath input="${manifest.abs.file}"
expression="/manifest/@package" output=“project.app.package”
dont see anything wrong, right?
EDIT* srry some html problem
Note that I’m using OSX so it could be something platform specific problem. right?
No, its a problem in the SDK as discussed in this whole thread. Check where “manifest.abs.file” is created.
@normen said:
No, its a problem in the SDK as discussed in this whole thread. Check where "manifest.abs.file" is created.
It doesn't tell me :/
@normen said:
:facepalm: check in the build file code
I've searched for ".MF" in both scripts and returns no result.