Bug 14239 - "AndroidListView" android sample gives build error with Target framework: Android 3.1 and above.
Summary: "AndroidListView" android sample gives build error with Target framework: And...
Status: VERIFIED FIXED
Alias: None
Product: Android
Classification: Xamarin
Component: General ()
Version: 4.8.x
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Jonathan Pryor
URL:
Depends on:
Blocks:
 
Reported: 2013-08-26 10:36 UTC by Saurabh
Modified: 2013-08-29 10:14 UTC (History)
2 users (show)

Tags:
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:
Status:
VERIFIED FIXED

Description Saurabh 2013-08-26 10:36:52 UTC
Step to reproduce:
1. Open AndroidListView sample from 'mobile-samples-master-> TablesLists-> AndroidListView' in XS
2. Set its Target framework to 'Android 3.1' or above
3. Set Minimum Android version: Android 2.2
4. Build the application

Actual result:
Application gives build error: "Error: Tool exited with code: 1. Output: obj/Debug/android/AndroidManifest.xml:19: error: Error: No resource found that matches the given name (at 'theme' with value '@style/CustomFastScroll').(AndroidListView)". However, with target framework Android 2.3 and Android 2.2, application build successfully.

Build error: https://gist.github.com/AkhileshKumar01/9fcaade6c9b220e71752

Expected result:
Application should build successfully with Target framework: Android 3.1 and above.

App info: 
mobile-samples-master/TablesLists/AndroidListView

Environment info:
All Mac
X.S 4.0.11(build 7)
Mono 3.2.2 ((no/a0fc6ba)
X.Android 4.8.2-54

Regression status: We are getting same issue with Stable builds XS 4.0.10(build 7), MFA 4.8.0.13-2 and Mono 3.2.0((no/7c7fcc7).
Comment 1 Peter Collins 2013-08-26 12:30:53 UTC
The issue here is that in order to use the theme required when building on API11+, you must uncomment it in the Resource/Values/Styles.xml file[1].

That being said, this behavior should be handled better. I'll add a fix for this shortly.

[1] https://github.com/xamarin/mobile-samples/blob/master/TablesLists/AndroidListView/Screens/CustomTables/CustomFastScroll/CustomFastScroll.cs#L10
Comment 2 Peter Collins 2013-08-26 14:46:04 UTC
Fixed in mobile-samples/c35db1
Comment 3 Saurabh 2013-08-29 10:14:04 UTC
Today we have check this issue with latest mobile sample:

mobile-samples-c35db1a7d0d0a8f437b3e39f6ef1811c13ab2644

Now, we are able to build successfully with Target framework: Android 3.1 and
above.

X.S 4.0.11(build 7)
Mono 3.2.2 ((no/a0fc6ba)
X.Android 4.8.2-54

Hence closing this issue.