今日在更新Android studio时,版本从0.8.6更新到0.8.14遇到一个,当下载完毕后安装时,弹出一个对话框,提示如下信息


The Android studio SDK folder can no longer be inside the application folder.Please move it to a different location such sa your home folder.

When the IDE restarts it will prompt you to enter the new location.

原因在于:旧的Android studio中,sdk是放在IDE的安装目录下的,这样会出现很多问题,这是官方的解释。

The reason this is necessary is two-fold: First, we have made a lot of improvements to make the patch updater more accurate, and in order for installation signatures to match, you cannot have non-application folders inside the application directory. Second, placing the SDK folder inside the application directory was probably not a good idea to begin with: this folder should typically be writable and in a directory with a lot of extra diskspace, such that users can easily download and install additional libraries, system images and so on. We are doing some work on the installer side to make this easier to set up.

所以解决方式就是:以mac系统为例

前往文件夹/Applications/Android studio.app,找到已经安装的android studio,右击,点击“显示包内容”,把里面的sdk文件夹删除既可。

然后点击Retry,Android studio就能正常升级。

然后升级完成后,重新设置android sdk既可。

附上官方的解释地址:http://tools.android.com/recent/androidstudio0814inbetachannel

更多相关文章

  1. android之本地文件读取
  2. Android——Jni使用总结
  3. Android(安卓)各控件的使用 - 按钮(Button)
  4. 【简单的学生管理界面】Android添加简单的日历控件
  5. 【Android(安卓)开发教程】设置Activity的样式和主题
  6. Android文件/文件夹批量蓝牙分享
  7. Android(安卓)App Bundles相关概念及开发流程详解
  8. android 组件之 alertDialog
  9. android对话框之AlertDialog.Builder类的setSingleChoiceItems

随机推荐

  1. Android studio一些设置项
  2. Android 10 添加AM/PM在状态栏和锁屏
  3. Android 9编译报错sdclang设置
  4. 【Android Wear】Android Wear开发很好的
  5. Android官方入门文档[15]重新创建一个Act
  6. Android开发 设置App开机自启动
  7. Android梅花布局,遥控器布局
  8. android 图片叠加效果
  9. android中遍历arrayList的四种方法
  10. Android获取状态栏高度的方法