2017-12-12 11 views
1

私はC#でビジュアルスタジオでAndroidアプリケーションをプログラミングしています。 オートコンプリート機能のためにプレイスを使用しています。 私はもうコンパイルされません GooglePlayeServices.Placesバージョン60からのPlaceAutocomplete.IntentBuilderがありません。

var intent = new PlaceAutocomplete.IntentBuilder(PlaceAutocomplete.ModeFullscreen) 
        .SetFilter(autocompleteFilter) 
        .Build(this); 

を最後に現在のバージョン60.1142.0にXamarin.GooglePlayServices NuGetを更新し、今

IntentBuilder「エラーCS0426:タイプ名 『IntentBuilder』に存在しません。タイプ 'PlaceAutocomplete' "

apiが変更されていることがわかりましたが、ドキュメントでさえこの古いコードを参照しています。

TYは

答えて

2

Xamarin.GooglePlayServices.Placev60.1142.0パッケージ/ nugetが壊れています。

パッケージ内にバンドルされているJavaクラスが正しいとPlaceAutocomplete.IntentBuilderクラスを持っている:

com/google/android/gms/location/places/ui/PlaceAutocomplete$IntentBuilder.class 

しかし、C#バインディングは、それを暴露されていない、Metadata.xml変換欠落しています。

<attr path="/api/package[@name='com.google.android.gms.location.places.ui']/class[@name='PlaceAutocomplete.IntentBuilder']" name="extends">java.lang.Object</attr> 

再:GooglePlayServicesComponents places Transforms Metadata.xml

私は先週ソースから作成して誰かのために修正しましたが、見たこともありませんbugzilla.xamarin.comが報告されているかどうか確認してください。

+0

ありがとう、LEZこのバグ – AeonDave

+0

Bugzillaのリンク報告:https://bugzilla.xamarin.com/show_bug.cgi?id=61099 GitHubの問題リンク:https://github.com/xamarin/GooglePlayServicesComponents/issues/を82 – AeonDave

+0

同じ問題がありました。バグを報告することをお勧めします –

関連する問題