зеркало из https://github.com/mono/mail-archives.git
141 строка
7.0 KiB
HTML
141 строка
7.0 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE> [mono-android] cant make package when referencing a .JAR lib.
|
|
</TITLE>
|
|
<LINK REL="Index" HREF="index.html" >
|
|
<LINK REL="made" HREF="mailto:monodroid%40lists.ximian.com?Subject=%5Bmono-android%5D%20cant%20make%20package%20when%20referencing%20a%20.JAR%20lib.&In-Reply-To=4EDF8922.1060805%40jpobst.com">
|
|
<META NAME="robots" CONTENT="index,nofollow">
|
|
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
|
|
<LINK REL="Previous" HREF="007642.html">
|
|
<LINK REL="Next" HREF="007544.html">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#ffffff">
|
|
<H1>[mono-android] cant make package when referencing a .JAR lib.</H1>
|
|
<B>Piotr Kryger</B>
|
|
<A HREF="mailto:monodroid%40lists.ximian.com?Subject=%5Bmono-android%5D%20cant%20make%20package%20when%20referencing%20a%20.JAR%20lib.&In-Reply-To=4EDF8922.1060805%40jpobst.com"
|
|
TITLE="[mono-android] cant make package when referencing a .JAR lib.">piotr.kryger at gmail.com
|
|
</A><BR>
|
|
<I>Fri Dec 9 09:50:28 EST 2011</I>
|
|
<P><UL>
|
|
<LI>Previous message: <A HREF="007642.html">[mono-android] cant make package when referencing a .JAR lib.
|
|
</A></li>
|
|
<LI>Next message: <A HREF="007544.html">[mono-android] Can't debug with Mono For Android 4.0 in VS 2010
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#7702">[ date ]</a>
|
|
<a href="thread.html#7702">[ thread ]</a>
|
|
<a href="subject.html#7702">[ subject ]</a>
|
|
<a href="author.html#7702">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
<HR>
|
|
<!--beginarticle-->
|
|
<PRE>Thanks, setting build action to AndroidJavaLibrary fixed my problem.
|
|
|
|
2011/12/7 Jonathan Pobst <<A HREF="http://lists.ximian.com/mailman/listinfo/monodroid">monkey at jpobst.com</A>>
|
|
|
|
><i> Try changing your .jar file's build action to AndroidJavaLibrary.
|
|
</I>><i>
|
|
</I>><i> Adding the new action was supposed to be backwards compatible,
|
|
</I>><i> AndroidJavaSource is supposed to work for either .java or .jar, but maybe
|
|
</I>><i> it got busted.
|
|
</I>><i>
|
|
</I>><i> If that doesn't help, you can look at the command line VS or MD is using
|
|
</I>><i> to call javac and see if something is missing from it.
|
|
</I>><i>
|
|
</I>><i> Jonathan
|
|
</I>><i>
|
|
</I>><i>
|
|
</I>><i>
|
|
</I>><i> On 12/7/2011 6:36 AM, Piotr Kryger wrote:
|
|
</I>><i>
|
|
</I>>><i> I have similar problem.
|
|
</I>>><i> I use acra-4.2.3.jar and java class which imports some stuff from this
|
|
</I>>><i> jar.
|
|
</I>>><i> Build action for jar as well as for java class are AndroidJavaSource.
|
|
</I>>><i>
|
|
</I>>><i> When I try to deploy I see following lines:
|
|
</I>>><i>
|
|
</I>>><i> (SignAndroidPackage target) (1) ->
|
|
</I>>><i> (_CompileJava target) -> MyJavaClass.java(4,1): javac error :
|
|
</I>>><i> package org.acra does not exist [XXX.csproj]
|
|
</I>>><i>
|
|
</I>>><i>
|
|
</I>>><i> and more javac errors saying "package does not exist" or "cannot find
|
|
</I>>><i> symbol".
|
|
</I>>><i>
|
|
</I>>><i> Same project deploys fine if jar file and java class are excluded.
|
|
</I>>><i> Issue was not present prior to m4a 4.0 (I was using 1.2).
|
|
</I>>><i> I use VisualStudio 2010 and JDK 1.6.
|
|
</I>>><i>
|
|
</I>>><i> 2011/12/6 warren burch <<A HREF="http://lists.ximian.com/mailman/listinfo/monodroid">warrenburch at gmail.com</A>
|
|
</I>>><i> <mailto:<A HREF="http://lists.ximian.com/mailman/listinfo/monodroid">warrenburch at gmail.com</A>>**>
|
|
</I>>><i>
|
|
</I>>><i>
|
|
</I>>><i> This worked with the previous version of mono for android.
|
|
</I>>><i> I use Google admobs JAR file, have a helper .JAVA class and a managed
|
|
</I>>><i> caller.
|
|
</I>>><i> Package complains that classes references that are within the JAR
|
|
</I>>><i> file are
|
|
</I>>><i> not available.
|
|
</I>>><i>
|
|
</I>>><i> How can I make this work now?
|
|
</I>>><i>
|
|
</I>>><i> Cheers
|
|
</I>>><i> Warren
|
|
</I>>><i>
|
|
</I>>><i> --
|
|
</I>>><i> View this message in context:
|
|
</I>>><i> <A HREF="http://mono-for-android.**1047100.n5.nabble.com/cant-**">http://mono-for-android.**1047100.n5.nabble.com/cant-**</A>
|
|
</I>>><i> make-package-when-referencing-**a-JAR-lib-tp5051417p5051417.**html<<A HREF="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</A>>
|
|
</I>>><i> Sent from the Mono for Android mailing list archive at Nabble.com.
|
|
</I>>><i> ______________________________**_________________
|
|
</I>>><i> Monodroid mailing list
|
|
</I>>><i> <A HREF="http://lists.ximian.com/mailman/listinfo/monodroid">Monodroid at lists.ximian.com</A> <mailto:<A HREF="http://lists.ximian.com/mailman/listinfo/monodroid">Monodroid at lists.</A>**ximian.com<<A HREF="http://lists.ximian.com/mailman/listinfo/monodroid">Monodroid at lists.ximian.com</A>>
|
|
</I>>><i> >
|
|
</I>>><i>
|
|
</I>>><i>
|
|
</I>>><i> UNSUBSCRIBE INFORMATION:
|
|
</I>>><i> <A HREF="http://lists.ximian.com/**mailman/listinfo/monodroid<http://lists.ximian.com/mailman/listinfo/monodroid">http://lists.ximian.com/**mailman/listinfo/monodroid<http://lists.ximian.com/mailman/listinfo/monodroid</A>>
|
|
</I>>><i>
|
|
</I>>><i>
|
|
</I>>><i>
|
|
</I>>><i>
|
|
</I>>><i> ______________________________**_________________
|
|
</I>>><i> Monodroid mailing list
|
|
</I>>><i> <A HREF="http://lists.ximian.com/mailman/listinfo/monodroid">Monodroid at lists.ximian.com</A>
|
|
</I>>><i>
|
|
</I>>><i> UNSUBSCRIBE INFORMATION:
|
|
</I>>><i> <A HREF="http://lists.ximian.com/**mailman/listinfo/monodroid<http://lists.ximian.com/mailman/listinfo/monodroid">http://lists.ximian.com/**mailman/listinfo/monodroid<http://lists.ximian.com/mailman/listinfo/monodroid</A>>
|
|
</I>>><i>
|
|
</I>><i>
|
|
</I>><i>
|
|
</I>-------------- next part --------------
|
|
An HTML attachment was scrubbed...
|
|
URL: <A HREF="http://lists.ximian.com/pipermail/monodroid/attachments/20111209/4215dd02/attachment.html">http://lists.ximian.com/pipermail/monodroid/attachments/20111209/4215dd02/attachment.html</A>
|
|
</PRE>
|
|
|
|
|
|
|
|
<!--endarticle-->
|
|
<HR>
|
|
<P><UL>
|
|
<!--threads-->
|
|
<LI>Previous message: <A HREF="007642.html">[mono-android] cant make package when referencing a .JAR lib.
|
|
</A></li>
|
|
<LI>Next message: <A HREF="007544.html">[mono-android] Can't debug with Mono For Android 4.0 in VS 2010
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#7702">[ date ]</a>
|
|
<a href="thread.html#7702">[ thread ]</a>
|
|
<a href="subject.html#7702">[ subject ]</a>
|
|
<a href="author.html#7702">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
|
|
<hr>
|
|
<a href="http://lists.ximian.com/mailman/listinfo/monodroid">More information about the Monodroid
|
|
mailing list</a><br>
|
|
</body></html>
|