OS X 10.9升级后拥有了Android Studio项目的问题,与错误的cacerts [英] Having issues with Android Studio project after OS X 10.9 upgrade, error with cacerts

查看:525
本文介绍了OS X 10.9升级后拥有了Android Studio项目的问题,与错误的cacerts的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在加载了一个Android Studio项目我山狮开始(10.8)的问题,我现在尝试在运行小牛(10.9),但是当我打开一个项目摇篮失败,出现以下错误:

I'm having problems loading up an Android Studio project I started in Mountain Lion (10.8) and am now trying to run in Mavericks (10.9) but when I open a project Gradle fails with the following error:

Gradle 'SimpleTimeProject' project refresh failed:
       /Library/Java/JavaVirtualMachines/1.6.0_43-b01-447.jdk/Contents/Home/lib/security/cacerts (No such file or directory)

我检查列出的路径,一切存在像它应该 - 但也许具体的证书是从的cacerts文件夹中缺少?我环顾四周,似乎无法找到解决的办法或其他人遇到这个问题,所以我不知道在哪里何去何从解决它。

I've checked the path listed there, everything exists like it should - but maybe specific certs are missing from the "cacerts" folder? I've looked around and can't seem to find a solution or anyone else running into this issue so I'm not sure where to go from here to resolve it.

我已经验证了 $ JAVA_HOME 环境变量指向有效的位置( /Library/Java/JavaVirtualMachines/1.6.0_43-b01- 447.jdk /内容/首页)。这似乎会导致错误的要在引用了Android SDK包(不是说这样做的所有文件,只是一些),并没有认为会在界面生成器加载文件出现。而且,当然,我不能运行该项目。

I've verified the $JAVA_HOME environment variable points to a valid location (/Library/Java/JavaVirtualMachines/1.6.0_43-b01-447.jdk/Contents/Home). This appears to be causing error's to crop up in files that reference the Android SDK packages (not all files that do this, just some) and no view will load in the interface builder. And, of course, I cannot run the project.

任何意见很大AP preciated。

Any advice greatly appreciated.

推荐答案

这个问题似乎是一个坏的安装Java 1.6。当您升级到小牛,你通常必须重新安装的Java 1.6,因为它不是与操作系统捆绑在一起,因为它在previous OS X版本。请参见在OS安装Java点¯x10.9(小牛)了解详细信息。

The problem seems to be a bad install of Java 1.6. When you upgrade to Mavericks, you normally have to reinstall Java 1.6 as it's not bundled with the OS as it was in previous OS X releases. See Installing Java on OS X 10.9 (Mavericks) for more details.

我的1.6安装小牛队给了我一个cacerts的目录<$c$c>/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/security/c‌​acerts,该符号链接<$c$c>/System/Library/Java/Support/CoreDeploy.bundle/Contents/Home/lib/security/cacer‌​ts.

My installation of 1.6 on Mavericks gives me a cacerts directory in /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/security/c‌​acerts, which symlinks to /System/Library/Java/Support/CoreDeploy.bundle/Contents/Home/lib/security/cacer‌​ts.

我不知道为什么你的是在 /库/的Java / JavaVirtualMachines 代替,但如果你使用的是Java的同一个安装你有在山狮,也许它没有正确的升级过程中卸载,以及它的cacerts链接现在打破。

I'm not sure why yours is under /Library/Java/JavaVirtualMachines instead, but if you're using the same installation of Java you had under Mountain Lion, maybe it didn't get properly uninstalled during the upgrade, and its link to cacerts is now broken.

这篇关于OS X 10.9升级后拥有了Android Studio项目的问题,与错误的cacerts的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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