Thanks, setting build action to AndroidJavaLibrary fixed my problem. 2011/12/7 Jonathan Pobst <[email protected]>
> Try changing your .jar file's build action to AndroidJavaLibrary. > > Adding the new action was supposed to be backwards compatible, > AndroidJavaSource is supposed to work for either .java or .jar, but maybe > it got busted. > > If that doesn't help, you can look at the command line VS or MD is using > to call javac and see if something is missing from it. > > Jonathan > > > > On 12/7/2011 6:36 AM, Piotr Kryger wrote: > >> I have similar problem. >> I use acra-4.2.3.jar and java class which imports some stuff from this >> jar. >> Build action for jar as well as for java class are AndroidJavaSource. >> >> When I try to deploy I see following lines: >> >> (SignAndroidPackage target) (1) -> >> (_CompileJava target) -> MyJavaClass.java(4,1): javac error : >> package org.acra does not exist [XXX.csproj] >> >> >> and more javac errors saying "package does not exist" or "cannot find >> symbol". >> >> Same project deploys fine if jar file and java class are excluded. >> Issue was not present prior to m4a 4.0 (I was using 1.2). >> I use VisualStudio 2010 and JDK 1.6. >> >> 2011/12/6 warren burch <[email protected] >> <mailto:[email protected]>**> >> >> >> This worked with the previous version of mono for android. >> I use Google admobs JAR file, have a helper .JAVA class and a managed >> caller. >> Package complains that classes references that are within the JAR >> file are >> not available. >> >> How can I make this work now? >> >> Cheers >> Warren >> >> -- >> View this message in context: >> http://mono-for-android.**1047100.n5.nabble.com/cant-** >> make-package-when-referencing-**a-JAR-lib-tp5051417p5051417.**html<http://mono-for-android.1047100.n5.nabble.com/cant-make-package-when-referencing-a-JAR-lib-tp5051417p5051417.html> >> Sent from the Mono for Android mailing list archive at Nabble.com. >> ______________________________**_________________ >> Monodroid mailing list >> [email protected] >> <mailto:Monodroid@lists.**ximian.com<[email protected]> >> > >> >> >> UNSUBSCRIBE INFORMATION: >> >> http://lists.ximian.com/**mailman/listinfo/monodroid<http://lists.ximian.com/mailman/listinfo/monodroid> >> >> >> >> >> ______________________________**_________________ >> Monodroid mailing list >> [email protected] >> >> UNSUBSCRIBE INFORMATION: >> http://lists.ximian.com/**mailman/listinfo/monodroid<http://lists.ximian.com/mailman/listinfo/monodroid> >> > >
_______________________________________________ Monodroid mailing list [email protected] UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
