Hi Jon,

Re.: Aside: <uses-library/> is to make use of Dalvik libraries that are
already present on the device, such as Google Maps. You should _not_ use
<uses-library/> for any other purpose.

Ok, thanks for clearing this up!


Re.: This is where I'm confused. The stackoverflow issue was that you were
getting a java.lang.NoClassDefFoundError; the above suggests an error within
mandroid.

Yes, that's what I got initially but moved to the error reported now.
Removing that <uses-library/> from the manifest got me back to the
Java.Lang.NoClassDefFoundError as reported at StackOverflow.


Re.: Based on the above error message, it looks like mandroid can't find a
dependent assembly, e.g it's processing A.dll, A.dll references B.dll, and
B.dll can't be found. (In the above case, B.dll would be
Steema.TeeChart.TChart.dll.)

Yes, exactly. That's the problem.


Re.: If that is the problem, the solution is to add an assembly reference in
your project to Steema.TeeChart.TChart.dll, so that mandroid can find it. If
that isn't the solution, I'm afraid that you'll need to file a bug report,
attaching your project, so that I can investigate further. :-(

I have a reference to that assembly in the project references section. Given
the problem is NoClassDefFoundError again what do you suggest. Should I send
something that you can run to reproduce the problem at your end?


Glad this mailing list is at work again :). Thanks!


Best Regards,
 
Narcís Calvet
Steema Software
http://www.steema.com 
http://twitter.com/SteemaSoftware 
https://www.facebook.com/SteemaSoftware 


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Jonathan Pryor
Sent: dimarts, 19 / juliol / 2011 14:34
To: Discussions related to Mono for Android
Subject: Re: [mono-android] Unable to find library

On Jul 19, 2011, at 4:42 AM, Narcís Calvet wrote:
> After having added the “uses-library” tag in the manifest,

Aside: <uses-library/> is to make use of Dalvik libraries that are already
present on the device, such as Google Maps. You should _not_ use
<uses-library/> for any other purpose.

> having “decorated” the activty as Greg Shackles suggested at SO and tried
everything I could think of I get this error now when deploying the
application:
>  
> Build FAILED.
>  
> "C:\Monodroid\TestProject\MonoDroidDemo.csproj" (SignAndroidPackage
target) (1) ->
> (_CompileAndroidPackage target) ->
>   AndroidManifest.xml : error 1: Unable to find library
'Steema.Test.MyCustomActivity'.
[C:\Monodroid\TestProject\MonoDroidDemo.csproj]
>   monodroid : error 1: System.InvalidOperationException:
AndroidManifest.xml : error 1: Unable to find library
'Steema.TeeChart.TChart'. [C:\Monodroid\TestProject\MonoDroidDemo.csproj]
>  
> Any idea on what may be missing or wrong?

This is where I'm confused. The stackoverflow issue was that you were
getting a java.lang.NoClassDefFoundError; the above suggests an error within
mandroid.

Based on the above error message, it looks like mandroid can't find a
dependent assembly, e.g it's processing A.dll, A.dll references B.dll, and
B.dll can't be found. (In the above case, B.dll would be
Steema.TeeChart.TChart.dll.)

If that is the problem, the solution is to add an assembly reference in your
project to Steema.TeeChart.TChart.dll, so that mandroid can find it. If that
isn't the solution, I'm afraid that you'll need to file a bug report,
attaching your project, so that I can investigate further. :-(

Thanks,
 - Jon

_______________________________________________
Monodroid mailing list
[email protected]

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


_______________________________________________
Monodroid mailing list
[email protected]

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

Reply via email to