2016-11-01 46 views
1

我想建立WeatherApp,它來自this tutorial,但我看到了這個錯誤:爲什麼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點擊警告以使其消失,但錯誤仍然存​​在。我不知道爲什麼這個項目試圖使用該版本的JDK,因爲我已經在Program Files,而不是改變了我xamarin optioins到一點:

enter image description here

爲什麼Visual Studio中嘗試使用versioin的是, JDK?

+0

是什麼JAVA_HOME在你的電腦? –

+0

@ΦXocę웃웃웃웃웃在系統變量下,'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) –

回答

相關問題