[Mono-bugs] [Bug 667523] Cannot build Monodroid project in Visual Studio - missing AndroidManifest.xml

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Jan 27 19:23:40 EST 2011


https://bugzilla.novell.com/show_bug.cgi?id=667523

https://bugzilla.novell.com/show_bug.cgi?id=667523#c1


--- Comment #1 from Martin Gilchrist <martinpg at javamarket.com> 2011-01-28 00:23:39 UTC ---
Today, I had exactly the same problem on a different machine! In Visual Studio
2010, I was able to build a project, I then made a change to the main.xml file
for the project, and now when I try to rebuild the project, I get this error:

Error    1    System.InvalidOperationException: Command failed. Command:
C:\Program Files\Android\android-sdk-windows\platform-tools\aapt "package" "-M"
"C:\Users\martin.INTAPP\AppData\Local\Temp\zfhxutq4.m40\AndroidManifest.xml"
"-J" "C:\Users\martin.INTAPP\AppData\Local\Temp\zfhxutq4.m40" "-F"
"C:\Users\martin.INTAPP\AppData\Local\Temp\zfhxutq4.m40\resources.apk" "-S"
"C:\Users\martin.INTAPP\Documents\Visual Studio
2010\Projects\Enemies\Enemies\obj\Debug\res" "-I" "C:\Program
Files\Android\android-sdk-windows\platforms\android-8\android.jar"   
C:\Users\martin.INTAPP\Documents\Visual Studio
2010\Projects\Enemies\Enemies\aresgen    Enemies

Running at the command line, provides the following error message:

Microsoft Windows [Version 6.0.6002]
Copyright (c) 2006 Microsoft Corporation.  All rights reserved.

C:\Windows>"C:\Program Files\Android\android-sdk-windows\platform-tools\aapt"
"package" "-M"
"C:\Users\martin.INTAPP\AppData\Local\Temp\zfhxutq4.m40\AndroidManifest.xml"
"-J" "C:\Users\martin.INTAPP\AppData\Local\Temp\zfhxutq4.m40" "-F"
"C:\Users\martin.INTAPP\AppData\Local\Temp\zfhxutq4.m40\resources.apk" "-S"
"C:\Users\martin.INTAPP\Documents\Visual Studio
2010\Projects\Enemies\Enemies\obj\Debug\res" "-I" "C:\Program
Files\Android\android-sdk-windows\platforms\android-8\android.jar"
C:\Users\martin.INTAPP\AppData\Local\Temp\zfhxutq4.m40\AndroidManifest.xml:
error: Unable to open file for read: No such file or directory

What is it about changing the main.xml file that is causing this error to
occur?

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list