下载 Android Studio Beta 的最新更新后。我收到如下错误:
3:07:53 PM ProcessNotCreatedException: Cannot run program "/Applications/Android Studio.app/sdk/tools/android": error=2, No such file or directory: Cannot run program "/Applications/Android Studio.app/sdk/tools/android": error=2, No such file or directory
问题是我无法找出要放入 SDK 位置的内容。
所以我被卡住了,因为我什至无法打开新项目、编译、构建、打开 SDK 管理器等。
我的 local.properties 是:
## This file is automatically generated by Android Studio.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file should *NOT* be checked into Version Control Systems,
# as it contains information specific to your local configuration.
#
# Location of the SDK. This is only used by Gradle.
# For customization when using a Version Control System, please read the
# header note.
sdk.dir=/Applications/Android Studio.app/sdk
我不确定如何解决这个错误。我一直在关注我在这里找到的信息,但没有运气:
最佳答案
我使用 Android Studio 已经有一段时间了,还没有尝试只使用现在应该包含 SDK 的 Beta 版本进行全新安装。由于它似乎没有随您的 Android Studio Beta 安装一起安装,您可以尝试单独安装它。去here并单击“获取现有 IDE 的 SDK”。一个优点是这允许您进行更多控制,并且您将确切知道 SDK 的安装位置。
关于android - 找不到 SDK 位置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24542905/