Bug 41276 - TableView problem
Summary: TableView problem
Alias: None
Product: Forms
Classification: Xamarin
Component: Android ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: E.Z. Hart [MSFT]
Depends on:
Reported: 2016-05-24 07:30 UTC by Pavel
Modified: 2017-06-19 17:21 UTC (History)
14 users (show)

Tags: BZCU
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Pavel 2016-05-24 07:30:31 UTC

I have got project in Xamarin.Forms v2.2.0.31 use support libray v 23.3.0

If I use TableView it cause error System.MissingMethodException: Method 'TextView.SetTextAppearance' not found.

in:  GetCellCore(item, convertView, parent, context)

Problem occured only in Android 4.4 on Samsung Galaxy Tab S III (cyanogenMod version 11).
In emulator with Android 4.4 problem did't occured.

Comment 1 Al Clark [MSFT] 2016-05-24 14:44:39 UTC
Hi Pavel.  Are you able to replicate this on any other physical device?  Could you please provide the following information?

1. Your full version information:

Visual Studio
Help -> About Microsoft Visual Studio -> Copy Info [button]

Xamarin Studio in OS X
Xamarin Studio -> About Xamarin Studio -> Show Details -> Copy Information [button]

2. A sample that exhibits the problem.
Comment 2 Pavel 2016-05-24 14:57:10 UTC
ad 1.
Microsoft Visual Studio Professional 2015
Version 14.0.25123.00 Update 2
Microsoft .NET Framework
Version 4.6.01038

Installed Version: Professional

Visual Basic 2015   00325-60003-49665-AA539
Microsoft Visual Basic 2015

Visual C# 2015   00325-60003-49665-AA539
Microsoft Visual C# 2015

Visual C++ 2015   00325-60003-49665-AA539
Microsoft Visual C++ 2015

Visual F# 2015   00325-60003-49665-AA539
Microsoft Visual F# 2015

Windows Phone SDK 8.0 - ENU   00325-60003-49665-AA539
Windows Phone SDK 8.0 - ENU

Application Insights Tools for Visual Studio Package   5.2.60328.3
Application Insights Tools for Visual Studio

ASP.NET and Web Tools 2015 (RC1 Update 1)   14.1.11120.0
ASP.NET and Web Tools 2015 (RC1 Update 1)

ASP.NET Web Frameworks and Tools 2012.2   4.1.41102.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563

ASP.NET Web Frameworks and Tools 2013   5.2.40314.0
For additional information, visit http://www.asp.net/

Azure App Service Tools v2.8.1   14.0.11123.0
Azure App Service Tools v2.8.1

BusinessObjectEditor   1.0
Information about my package

Common Azure Tools   1.7
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

CreateLayoutWizard   1.0
Create layout wizard.

DataFactoryProject   1.0
Microsoft Data Factory Package

DevExpress.DeploymentTool   1.0
A useful tool for deploying DevExpress assemblies.

DevExpress.ExpressApp.Design.DynamicPackage   1.0
DevExpress VSIX Package

DevExpress.ExpressApp.DesignPackage   1.0
DevExpress VSIX Package

Entity Framework Power Tools   1.0
Adds useful design-time DbContext features to the Visual Studio Solution Explorer context menu. 

When right-clicking on a file containing a derived DbContext class, the following context menu functions are supported:

1) View Entity Data Model - Displays the underlying Code First model in the Entity Framework designer.
2) View Entity Data Model XML - Displays the EDMX XML representing the underlying Code First model.
3) Generate Views - Generates pre-compiled views used by the EF runtime to improve start-up performance. Adds the generated views file to the containing project.

GitHub.VisualStudio   1.0
A Visual Studio Extension that brings the GitHub Flow into Visual Studio.

JavaScript Language Service   2.0
JavaScript Language Service

JavaScript Project System   2.0
JavaScript Project System

Microsoft Azure Data Factory Node Node   1.0
Azure Data Factory extension for Visual Studio Server Explorer.

Microsoft Azure HDInsight HQL Service   2.0.2900.0
Language service for Hive query

Microsoft Azure HDInsight Tools for Visual Studio   2.0.2900.0
An integrated development environment for HDInsight application development.

Microsoft Azure Mobile Services Tools   1.4
Microsoft Azure Mobile Services Tools

Microsoft Azure Tools   2.8
Microsoft Azure Tools for Microsoft Visual Studio 2015 - v2.8.31121.1

Node.js Tools   1.1.31117.00
Adds support for developing and debugging Node.js apps in Visual Studio

Node.js Tools - Profiling   1.1.31117.00
Profiling support for Node.js projects.

NuGet Package Manager   3.4.3
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

Office Developer Tools for Visual Studio 2015 ENU   14.0.23025
Microsoft Office Developer Tools for Visual Studio 2015 ENU

OpenRiaServices Extension   1.0
Some OpenRiaServices stuff

PreEmptive Analytics Visualizer   1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

SQL Server Data Tools   14.0.60311.1
Microsoft SQL Server Data Tools

TypeScript tools for Visual Studio

Visual Studio Tools for Apache Cordova   Update 9
Visual Studio Tools for Apache Cordova

Visual Studio Tools for Universal Windows Apps   14.0.25219.00
The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.

Workflow Manager Tools 1.0   1.0
This package contains the necessary Visual Studio integration components for Workflow Manager.

Xamarin (a9c7826)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android (ee215fc)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.iOS (be25da5)
Visual Studio extension to enable development for Xamarin.iOS.

ad 2.
 I found that error also occurred in Emulators for Visual Studio.

<ContentPage ..>
<TableView /> <!--work-->

      <!--error occured if I add-->
    <TableView HasUnevenRows="true">
              <Label Text="some text"  FontSize="Medium" FontAttributes="Bold" />
Comment 3 AndyB 2016-05-26 21:00:14 UTC
I also get this bug after updating to Xamarin Forms but for me it happens randomly in List views of Labels.  I dont have an example solution to replicate but I do have some info:

Happened on my Galaxy S5 (Android version 5.0)

Application Output in Xamarin Studio:

[art] JNI RegisterNativeMethods: attempt to register 0 native methods for md5b60ffeb829f638581ab2bb9b1a7f4f3f.BaseCellView
[art] JNI RegisterNativeMethods: attempt to register 0 native methods for md5b60ffeb829f638581ab2bb9b1a7f4f3f.TextCellRenderer_TextCellView
[Mono] DllImport attempting to load: '/system/lib/liblog.so'.
[Mono] DllImport loaded library '/system/lib/liblog.so'.
[Mono] DllImport searching in: '/system/lib/liblog.so' ('/system/lib/liblog.so').
[Mono] Searching for '__android_log_print'.
[Mono] Probing '__android_log_print'.
[Mono] Found as '__android_log_print'.
[MonoDroid] System.MissingMethodException: Method 'TextView.SetTextAppearance' not found.
[MonoDroid]   at Xamarin.Forms.Platform.Android.BaseCellView..ctor (Android.Content.Context context, Xamarin.Forms.Cell cell) [0x0011e] in C:\BuildAgent3\work\aad494dc9bc9783\Xamarin.Forms.Platform.Android\Cells\BaseCellView.cs:59 
[MonoDroid]   at Xamarin.Forms.Platform.Android.TextCellRenderer+TextCellView..ctor (Android.Content.Context context, Xamarin.Forms.Cell cell) [0x00000] in C:\BuildAgent3\work\aad494dc9bc9783\Xamarin.Forms.Platform.Android\Cells\TextCellRenderer.cs:73 
[MonoDroid]   at Xamarin.Forms.Platform.Android.TextCellRenderer.GetCellCore (Xamarin.Forms.Cell item, Android.Views.View convertView, Android.Views.ViewGroup parent, Android.Content.Context context) [0x00011] in C:\BuildAgent3\work\aad494dc9bc9783\Xamarin.Forms.Platform.Android\Cells\TextCellRenderer.cs:16 
[MonoDroid]   at Xamarin.Forms.Platform.Android.CellRenderer.GetCell (Xamarin.Forms.Cell item, Android.Views.View convertView, Android.Views.ViewGroup parent, Android.Content.Context context) [0x00057] in C:\BuildAgent3\work\aad494dc9bc9783\Xamarin.Forms.Platform.Android\Cells\CellRenderer.cs:46 
[MonoDroid]   at Xamarin.Forms.Platform.Android.CellFactory.GetCell (Xamarin.Forms.Cell item, Android.Views.View convertView, Android.Views.ViewGroup parent, Android.Content.Context context, Xamarin.Forms.View view) [0x00023] in C:\BuildAgent3\work\aad494dc9bc9783\Xamarin.Forms.Platform.Android\Cells\CellFactory.cs:19 
[MonoDroid]   at Xamarin.Forms.Platform.Android.ListViewAdapter.GetView (Int32 position, Android.Views.View convertView, Android.Views.ViewGroup parent) [0x001f3] in C:\BuildAgent3\work\aad494dc9bc9783\Xamarin.Forms.Platform.Android\Renderers\ListViewAdapter.cs:253 
[MonoDroid]   at Android.Widget.BaseAdapter.n_GetView_ILandroid_view_View_Landroid_view_ViewGroup_ (IntPtr jnienv, IntPtr native__this, Int32 position, IntPtr native_convertView, IntPtr native_parent) [0x0001a] in /Users/builder/data/lanes/3236/ee215fc9/source/monodroid/src/Mono.Android/platforms/android-21/src/generated/Android.Widget.BaseAdapter.cs:509 
[MonoDroid]   at (wrapper dynamic-method) System.Object:5d202c17-371d-459a-aaf5-b86e104146e6 (intptr,intptr,int,intptr,intptr)
[art] JNI RegisterNativeMethods: attempt to register 0 native methods for md52ce486a14f4bcd95899665e9d932190b.JavaProxyThrowable

Xamarin Studio About:

=== Xamarin Studio Indie ===

Version 5.10.3 (build 51)
Installation UUID: 8c78a2a0-cfff-4492-bd90-49288842f390
	Mono 4.2.4 (explicit/71b88f3)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 402040004

=== Xamarin.Profiler ===

Not Installed

=== Apple Developer Tools ===

Xcode 7.3.1 (10188.1)
Build 7D1014

=== Xamarin.iOS ===

Version: (Xamarin Indie)
Hash: d8bedd0
Branch: master
Build date: 2016-05-05 17:43:01-0400

=== Xamarin.Android ===

Version: (Xamarin Indie)
Android SDK: /Users/andyb/Library/Android/sdk
	Supported Android versions:
		2.3   (API level 10)
		4.0.3 (API level 15)
		4.1   (API level 16)
		4.2   (API level 17)
		4.3   (API level 18)
		4.4   (API level 19)
		5.0   (API level 21)
		6.0   (API level 23)

SDK Tools Version: 25.1.6
SDK Platform Tools Version: 23.1
SDK Build Tools Version: 23.0.1

Java SDK: /usr
java version "1.8.0_31"
Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)

Android Designer EPL code available here:

=== Xamarin Android Player ===

Version: 0.6.5
Location: /Applications/Xamarin Android Player.app

=== Xamarin.Mac ===

Version: (Xamarin Indie)

=== Build Information ===

Release ID: 510030051
Git revision: f3c0d982165f785772d125f02668370d929014fb
Build date: 2016-03-24 18:51:31-04
Xamarin addins: ee5cfd3ecb6b20de47c1d25efb9a9abc101e8ce7
Build lane: monodevelop-lion-cycle6-c6sr3

=== Operating System ===

Mac OS X 10.11.4
Darwin Andresss-MacBook-Pro.local 15.4.0 Darwin Kernel Version 15.4.0
    Fri Feb 26 22:08:05 PST 2016
    root:xnu-3248.40.184~3/RELEASE_X86_64 x86_64
Comment 4 AndyB 2016-05-26 21:25:22 UTC
So the above was trying to run it in Debug.

When I try to compile (Release) I get a compile error:

/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets: Error: Error executing task LinkAssemblies: error XA2006: Reference to metadata item 'System.Void Android.Widget.TextView::SetTextAppearance(System.Int32)' (defined in 'Xamarin.Forms.Platform.Android, Version=, Culture=neutral, PublicKeyToken=null') from 'Xamarin.Forms.Platform.Android, Version=, Culture=neutral, PublicKeyToken=null' could not be resolved. (DolphinMobile.Droid)
Comment 5 AndyB 2016-05-26 22:34:21 UTC
I was able to FIX it!!!

Using this post as a reference:


Make sure your Target Android Version and Target Framework are pointing to the same Android version.

I had my Target Android Version point to Android 6.0 (API 23) while my Target Framework was Android 5.0(Lollipop)
Comment 6 jzeferino 2016-05-29 13:00:23 UTC
I'm still having this issue.

Pavel said that this is a problem from tableView but its not only from table view.
Its is related to the ListView and TextView:
And the problem is related to the method setTextAppearance that was deprecated in API 23.

The exception is System.MissingMethodException: Method 'TextView.SetTextAppearance' not found.

My min API was 16 and the target was 22.

I only was able to run this when setting the target API to 23. For me this is a temporary fix because i really don't want to target API 23.
Comment 7 guilherme 2016-09-19 14:35:54 UTC
I'm expirecing the same issues. I'm very disappointed after this update and it seems there's no expectations in order to solve the bug.
Comment 9 Samantha Houts [MSFT] 2017-05-09 18:05:32 UTC
Comment 10 Samantha Houts [MSFT] 2017-06-19 17:21:19 UTC
Should be fixed in 2.3.6-pre1. Thank you!