I'm getting an error when I try to deploy a solution using Linking.

With linking disabled every things works fine but the apk is large ~20MB.

I set Linking = Sdk Assemblies Only
(User Shared Runtime is unchecked.)

The error seems to relate to Android.Widget.TextView?

Error Text:

Packaging Failed
Could not create the Android package. See the Output (Build) window for more
details

"C:\1private\dev\dotNET\FieldMetrix Proj -
CS\mfaFieldMetrix\mfaFieldMetrix.csproj" (SignAndroidPackage target) (1) ->
(_LinkAssemblies target) -> 
  C:\Program Files
(x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(524,5): error MSB4018:
The "LinkAssemblies" task failed unexpectedly.
[C:\1private\dev\dotNET\FieldMetrix Proj -
CS\mfaFieldMetrix\mfaFieldMetrix.csproj]
C:\Program Files
(x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(524,5): error MSB4018:
Mono.Cecil.ResolutionException: Failed to resolve System.Void
Android.Widget.TextView::SetTextSize(System.Int32,System.Single)
[C:\1private\dev\dotNET\FieldMetrix Proj -
CS\mfaFieldMetrix\mfaFieldMetrix.csproj]
C:\Program Files
(x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(524,5): error MSB4018:   
at Mono.Linker.Steps.MarkStep.MarkMethod(MethodReference reference)
[C:\1private\dev\dotNET\FieldMetrix Proj -
CS\mfaFieldMetrix\mfaFieldMetrix.csproj]
C:\Program Files
(x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(524,5): error MSB4018:   
at Mono.Linker.Steps.MarkStep.MarkInstruction(Instruction instruction)
[C:\1private\dev\dotNET\FieldMetrix Proj -
CS\mfaFieldMetrix\mfaFieldMetrix.csproj]
C:\Program Files
(x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(524,5): error MSB4018:   
at Mono.Linker.Steps.MarkStep.MarkMethodBody(MethodBody body)
[C:\1private\dev\dotNET\FieldMetrix Proj -
CS\mfaFieldMetrix\mfaFieldMetrix.csproj]
C:\Program Files
(x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(524,5): error MSB4018:   
at Mono.Linker.Steps.MarkStep.ProcessMethod(MethodDefinition method)
[C:\1private\dev\dotNET\FieldMetrix Proj -
CS\mfaFieldMetrix\mfaFieldMetrix.csproj]
C:\Program Files
(x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(524,5): error MSB4018:   
at Mono.Linker.Steps.MarkStep.ProcessQueue()
[C:\1private\dev\dotNET\FieldMetrix Proj -
CS\mfaFieldMetrix\mfaFieldMetrix.csproj]
C:\Program Files
(x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(524,5): error MSB4018:   
at Mono.Linker.Steps.MarkStep.Process() [C:\1private\dev\dotNET\FieldMetrix
Proj - CS\mfaFieldMetrix\mfaFieldMetrix.csproj]
C:\Program Files
(x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(524,5): error MSB4018:   
at Mono.Linker.Steps.MarkStep.Process(LinkContext context)
[C:\1private\dev\dotNET\FieldMetrix Proj -
CS\mfaFieldMetrix\mfaFieldMetrix.csproj]
C:\Program Files
(x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(524,5): error MSB4018:   
at Mono.Linker.Pipeline.Process(LinkContext context)
[C:\1private\dev\dotNET\FieldMetrix Proj -
CS\mfaFieldMetrix\mfaFieldMetrix.csproj]
C:\Program Files
(x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(524,5): error MSB4018:   
at MonoDroid.Tuner.Linker.Process(LinkerOptions options, LinkContext&
context) [C:\1private\dev\dotNET\FieldMetrix Proj -
CS\mfaFieldMetrix\mfaFieldMetrix.csproj]
C:\Program Files
(x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(524,5): error MSB4018:   
at Xamarin.Android.Tasks.LinkAssemblies.Execute()
[C:\1private\dev\dotNET\FieldMetrix Proj -
CS\mfaFieldMetrix\mfaFieldMetrix.csproj]

--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/Linking-problem-relating-to-Android-Widget-TextView-tp5482472p5482472.html
Sent from the Mono for Android mailing list archive at Nabble.com.
_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

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

Reply via email to