I still don't get the output of the error. Even by increasing the
mandroid verbosity.

What I get is build succeeded for the C#/MonoDroid code and then I am
asked to select which device/emulator to run it on. Then three
different command windows appear and disappear, one of them seeming to
execute javac (to compile the Java code?). Then I get the error window
which tells me to look in the output window in VS. But nothing failing
is showing up there.

When I put the java code into eclipse it does not show any errors or
warnings and compiles fine, though crashes as there are some parts
missing, which I have in the other code.

My development environment is a totally new installation of VS2010
along with MonoDroid and Win Phone 7 development tools and I have
followed the instructions on the xamarin website on how to install and
set up MonoDroid.

How do you usually add new java sources to a project? I just started
by copying an existing source from one of the example projects on
github and copied that java source every time I needed a new java
file. Is this a wrong way to do it?

On Wed, Sep 7, 2011 at 8:19 PM, Jonathan Pryor <j...@xamarin.com> wrote:
> On Sep 6, 2011, at 10:22 AM, Tomasz Cielecki wrote:
>> Though I find it a lot cumbersome to debug on those Java classes as my debug 
>> window in VS does not show output from the Java compiler
>
> You mean the Output window (as suggested by the screenshot) and viewing javac 
> errors? You need to increase the MSBuild verbosity level:
>
>        
> http://android.xamarin.com/Documentation/Troubleshoot#monodroid.exe_exited_with_code_1
>
> Though you later state:
>
>> Increasing verbosity seems not to show what the java classes fail on.
>> The only output I get there is for the C# code in the project, javac
>> output is for some reason omitted entirely.
>
>
> This seems rather odd. You could try increasing mandroid verbosity:
>
>        
> http://android.xamarin.com/Documentation/Build_Process#Mandroid_Arguments
>
> Using <MandroidExtraArgs>-v=10</MandroidExtraArgs> will preserve generated 
> intermediate files and print out the full javac command (assuming MSBuild 
> doesn't truncate it; see above steps on setting the MSBuild verbosity level). 
> If this doesn't show your javac errors, at least you'll see what javac 
> command mandroid is using to compile the code.
>
>  - Jon
>
> _______________________________________________
> Monodroid mailing list
> Monodroid@lists.ximian.com
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
>



-- 
Med Venlig Hilsen / With Best Regards
Tomasz Cielecki
http://ostebaronen.dk
_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to