2016-11-01 9 views
1

私はthis tutorialから来ている、WeatherAppを構築しようとしていますが、私はこのエラーを見ています:Visual Studioで間違ったJDKバージョンを使用しようとしているのはなぜですか?

The specified task executable location "C:\Program Files (x86)\Java\jdk1.7.0_55\bin\javac.exe" is invalid.

とこの警告(それらが関連しているかどうかわからない):

Found conflicts between different versions of the same dependent assembly. In Visual Studio, double-click this warning (or select it and press Enter) to fix the conflicts; otherwise, add the following binding redirects to the "runtime" node in the application configuration file: <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="System.Runtime" culture="neutral" publicKeyToken="b03f5f7f11d50a3a" /><bindingRedirect oldVersion="0.0.0.0-4.1.0.0" newVersion="4.1.0.0" /></dependentAssembly></assemblyBinding>

私はdoubeのことができます - 警告をクリックして消えさせますが、エラーは残ります。私はプロジェクトは、私が代わりにProgram Files点までの私のxamarinのoptioinsを変更したとして、JDKのバージョンを使用しようとしている理由はわからない:

enter image description here

なぜVisual Studioは、そのversioinの使用しようとしていますJDK?

+0

JAVA_HOMEがあなたのPCで何ですか? –

+0

@システム変数の下で、 'JAVA_HOME'は' C:\ Program Files \ Java \ jdk1.8.0_111'に設定されます – Bassie

+1

時々、古い参照を保持する 'sdk.caches'ファイルがあります。 'obj/bin'フォルダの両方を削除して問題が解決するかどうか確認してください。そうでない場合は、 'Build Output'を有効にして、あなたの投稿に' Build Output Log'を添付してください:https://forums.xamarin.com/discussion/27515/how-to-obtain-diagnostic-build-ログ(XS)とhttp://blogs.msdn.com/b/msbuild/archive/2005/09/29/475157.aspx(VS) –

答えて

3

時々、古い参照を保持するsdk.cachesファイルがあります。 obj/binフォルダを削除して問題が解決するかどうか確認してください。それは、あなたのBuild Output冗長性を上げ、あなたのポストへBuild Output Logを添付していない場合は、次の

https://forums.xamarin.com/discussion/27515/how-to-obtain-diagnostic-build-logs(XS)

http://blogs.msdn.com/b/msbuild/archive/2005/09/29/475157.aspx(VS)

+0

人が生きています。私はDEV環境でのキャッシュが嫌いです!ありがとう。 – Ozzy

関連する問題