2017-02-07 5 views
0

私はユニバーサルブランクアプリケーションを作成して、私のNuGetパッケージをアップグレードしようとすると、それは私に最低のAndroid 5.0 API 21(Lollipop)には、どのバージョンのXamarin.Android.Supportが必要ですか?

Could not install package 'Xamarin.Android.Support.v4 25.1.0'. 
You are trying to install this package 
into a project that targets 'MonoAndroid,Version=v6.0', 
but the package does not contain any assembly references 
or content files that are compatible with that framework. 
For more information, contact the package author. 

を告げる私はXamarin.Android.Support.v4の古いバージョンを必要とすることを理解し、私は見つけることができませんでしたNuGetパッケージの最新バージョンが参照されているリファレンスガイドは、自分のビルドで動作します。この情報を見つけるための場所がありますか?

答えて

1

NuGet.orgから見ることができます。

このエラーメッセージは、インストールにはMonoAndroid 6.0が必要であることを伝えています。つまり、<TargetFrameworkVersion>を6.0以上に設定する必要があります。これはAndroidバージョンを6.0にコンパイルするように設定することと同義です。

https://developer.xamarin.com/guides/android/application_fundamentals/understanding_android_api_levels/#framework

あなたはすべての道戻ってあなたMinSdkVersionに設定されているものへのAPIをサポートすることができますので、予めご了承ください。これはよくある誤解であるため、TargetFrameworkVersionには依存しません。

https://developer.xamarin.com/guides/android/application_fundamentals/understanding_android_api_levels/#minimum

私のアドバイスは、最新バージョンのAPIに対してコンパイルするために、あなたが考慮する必要がある最低のレベルにあなたの最小APIのバージョンを設定することです。それについてもっと読むことができます。

https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#considerations

最後に、このライブラリの歴史的なバージョン履歴を表示するには、単にNuGet.orgに検索することができます。

https://www.nuget.org/packages/Xamarin.Android.Support.v4/

をあなたが最も可能性が高いのlibをダウンロードする必要がありますのでご注意ください側面のダウンロードボタンを使用して、nupkgを抽出し、必要なそれぞれのターゲットと呼ばれるlibフォルダ内を表示します。

関連する問題