Bug 40106 - Invalid F# Android Design Resource file
Summary: Invalid F# Android Design Resource file
Status: VERIFIED FIXED
Alias: None
Product: Android
Classification: Xamarin
Component: Bindings ()
Version: unspecified
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: 15.2
Assignee: dean.ellis
URL:
Depends on:
Blocks:
 
Reported: 2016-04-05 12:01 UTC by Mitchell
Modified: 2017-04-28 12:29 UTC (History)
6 users (show)

Tags: XATriaged
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 Mitchell 2016-04-05 12:01:01 UTC
The F# binding of the Android Desing library generates an invalid Resource designer file. The Resource file generated contains a constant named 'end'. So, when you try and build you get this error "Error FS0010: Unexpected keyword 'end' in member definition (FS0010) (ProjectApp.Droid)"

Steps to get error with fresh project: 
1) Create an Android App, or Android Forms project using F#.
2) Add the Android Desing library as a package
3) Make sure the target API is 23
3) Build

If I manually add `` around the word it compiles. 

Sample project: 
I've created a sample project demonstrating the issue here.
https://github.com/marukami/Fsharp-Xamarin-desgin-lib-bug/tree/master


Version Info
Xamarin Studio Indie
Version 5.10.3 (build 51)
Installation UUID: 6fc6f3c0-41df-4bb0-bcee-e3acd002f942
Runtime:
	Mono 4.3.0 (mono-4.3.1-branch/37d269c)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 403002114

Xamarin.Profiler
Not Installed

Apple Developer Tools
Xcode 7.3 (10183.3)
Build 7D175

Xamarin.iOS
Version: 9.6.1.9 (Xamarin Indie)
Hash: 5f11db8
Branch: master
Build date: 2016-03-25 21:26:55-0400

Xamarin.Android
Version: 6.0.3.5 (Xamarin Indie)
Android SDK: /Users/hynkle/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		2.3   (API level 10)
		4.0.3 (API level 15)
		4.4   (API level 19)
		6.0   (API level 23)

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

Java SDK: /usr
java version "1.8.0_73"
Java(TM) SE Runtime Environment (build 1.8.0_73-b02)
Java HotSpot(TM) 64-Bit Server VM (build 25.73-b02, mixed mode)

Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL

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

Xamarin.Mac
Version: 2.4.2.1 (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 Mitchells-MBP 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 1 Mitchell 2016-04-14 09:49:18 UTC
Xamarin Studio Version 6.0 does not seem to have this issue.

Using the following I did not have this issue.

=== Xamarin Studio Indie ===

Version 6.0 (build 4968)
Installation UUID: 42957e0c-6659-4ed3-9226-d287adc6c370
Runtime:
	Mono 4.4.0 (mono-4.4.0-branch/a3fabf1) (64-bit)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 404000122

=== Xamarin.Profiler ===

Not Installed

=== Xamarin.Android ===

Version: 6.1.0.37 (Xamarin Indie)
Android SDK: /Users/hynkle/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		2.3   (API level 10)
		4.0.3 (API level 15)
		4.4   (API level 19)
		6.0   (API level 23)

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

Java SDK: /usr
java version "1.8.0_77"
Java(TM) SE Runtime Environment (build 1.8.0_77-b03)
Java HotSpot(TM) 64-Bit Server VM (build 25.77-b03, mixed mode)

Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL

=== Xamarin Android Player ===

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

=== Apple Developer Tools ===

Xcode 7.3 (10183.3)
Build 7D175

=== Xamarin.iOS ===


Version: 9.8.0.244 (Xamarin Indie)
Hash: 977921b
Branch: cycle7
Build date: 2016-04-07 14:20:17-0400

=== Xamarin.Mac ===

Version: 2.8.0.244 (Xamarin Indie)

=== Build Information ===

Release ID: 600004968
Git revision: ab7092ce63351276394f283e4f9c8646baf51fce
Build date: 2016-04-08 09:30:34-04
Xamarin addins: be0a0aef6ec8b075b4ba4690bd147d1e33c2abd7
Build lane: monodevelop-lion-cycle7

=== Operating System ===

Mac OS X 10.11.4
Darwin Mitchells-MBP 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 2 Jason Imison 2016-09-30 08:15:50 UTC
Fixed in master XS (XamarinStudio-6.2.0.655)
Comment 3 Swati Gangrade 2017-04-28 12:29:07 UTC
Bug is retested and verified on test environment -https://gist.github.com/gangrade-swati/fa48a5bf247b6bb3cb5725de64fbefbf

Actual result- It iOS working there is no Invalid F# Android Design Resource file. Please refer the screencast Hence marking bug as verified 

Screencast-https://www.screencast.com/t/Aj1AGfWA24P