Xamarin 不尊重 JDK 位置(VS2015) [英] Xamarin not respects JDK location (VS2015)

查看:33
本文介绍了Xamarin 不尊重 JDK 位置(VS2015)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法在 Visual Studio 2015 中构建 Xamarin 应用程序,因为 Xamarin 忽略了配置的 JDK 位置.我将 Xamarin 配置为使用 JDK 1.8:

I can't build Xamarin application in Visual studio 2015 because Xamarin ignores configured JDK location. I configured Xamarin to use JDK 1.8:

但是构建仍然失败,因为它使用的是我从机器上删除的旧 JDK:jdk1.7.0_79

But the build still fails because it is using old JDK that I removed from machine: jdk1.7.0_79

9>_ResolveMonoAndroidSdks: 

9>  MonoAndroid Tools: C:\Program Files (x86)\MSBuild\Xamarin\Android\ 

9>  MonoAndroid Binaries: C:\Program Files (x86)\MSBuild\Xamarin\Android\ 

9>  Android Platform API level: 24 

9>  TargetFrameworkVersion: v6.0 

9>  Android NDK: C:\ProgramData\Microsoft\AndroidNDK\android-ndk-r10e\ 

9>  Android SDK: c:\Program Files (x86)\Android\android-sdk\ 

9>  Android SDK Build Tools: c:\Program Files (x86)\Android\android-sdk\build-tools\24.0.0\ 

9>  **Java SDK: C:\Program Files (x86)\Java\jdk1.7.0_79\**

我该如何解决?

推荐答案

我找到了答案:在构建过程中,xamarin 生成一堆带有旧位置的 sdk.cache 文件,然后重用它们.

I was able to find the answer: during build process xamarin produces bunch of sdk.cache files with old location and then reuses them.

更多信息:http://the-coderok.azurewebsites.net/2016/07/29/What-to-do-when-Xamarin-ignores-configure-JDK-location-Or-unable-to-change-JDK-location-for-Xamarin/

这篇关于Xamarin 不尊重 JDK 位置(VS2015)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆