This may be due to a lack of description TypeArguments. Try the following:
<Grid.HeightRequest>
<OnPlatform x:TypeArguments="x:Double"
iOS="15" Android="10" WinPhone="10"/>
</Grid.HeightRequest>
Update:
The syntax above is deprecated. New form:
<Grid.HeightRequest>
<OnPlatform x:TypeArguments="x:Double">
<On Platform="iOS" Value="15"/>
<On Platform="Android" Value="10"/>
<On Platform="WinPhone" Value="10"/>
</OnPlatform>
</Grid.HeightRequest>
source
share