Android Studio 导入项目 出现安装Error:Cause: failed to find target with hash string 'android-23' 等错误
今天 在导入 一个新项目时 ; 出现了这个错
Error:Cause: failed to find target with hash string 'android-23' in: C:\Users\Administrator\AppData\Local\Android\sdk
Open Android SDK Manager
一 、于是 点击Open Android SDK Manager ; 想更新下android studio 下的 sdk ;
无奈出现了这个错误:
Loading SDK information...
Installing Archives:
Preparing to install archives
Installing SDK Platform Android 6.0, API 23, revision 2
Failed to rename directory
C:\Users\Administrator\AppData\Local\Android\sdk\platforms\android-23 to
C:\Users\Administrator\AppData\Local\Android\sdk\temp\RemotePlatformPkgInfo.old01.
SDK Manager: failed to install
-= Warning ! =-
A
folder failed to be moved. On Windows this typically means that a
program is using that folder (for example Windows Explorer or your
anti-virus software.)
Please momentarily deactivate your anti-virus
software or close any running programs that may be accessing the
directory
'C:\Users\Administrator\AppData\Local\Android\sdk\platforms\android-23'.
When ready, press YES to try again.
Note: you can use --force to override to yes.
[y/n] =>
Done. Nothing was installed.
二 、使用百度翻译 哈哈:意思是。
加载SDK的信息…
安装档案:
准备安装档案
安装SDK平台Android 6,API 23,修订2
无法重命名目录C:\用户\管理员\ AppData \地方\ Android SDK \平台\ android-23 C:\用户\管理员\ AppData \地方\ \温度\ remoteplatformpkginfo.old01 Android SDK。
SDK管理器:安装失败
•警告!=—
无法移动文件夹。在窗口中,这通常意味着一个程序是使用该文件夹(例如窗口资源管理器或您的反病毒软件)。
请暂时关闭你的杀毒软件或者关闭所有正在运行的程序,可以访问目录C:\用户\管理员\ AppData \地方\ Android SDK平台android-23 \ \”。
准备好后,请按“是”再试。
注:你可以使用武力来替代是。
[和] =
完成. 没有安装。
在网上找了下方案
三 、解决方法:
C:\Users\Administrator\AppData\Local\Android\sdk\temp
这个目录是Andriod Studio安装程序自建的,安装程序后把SDK下的Temp目录设为只读
,导致程序启动更新SDK要写入Temp目录时出错。
将Temp目录的只读属性去掉, 右键此文件,将只读的勾选去掉即可!,
重启Android Studio后 SDK就更新成功
然后 还是找不到
Error:Cause: failed to find target with hash string 'android-23' in: C:\Users\Administrator\AppData\Local\Android\sdk
Open Android SDK Manager 再次重启Android Studio 后 ,项目便可以正常使用了!(貌似感觉 ReBulid一下也行!)。
Android Studio 导入项目 出现安装Error:Cause: failed to find target with hash string 'android-23' 等错误的更多相关文章
- android studio新建项目时出现Error:Execution failed for task ':app:preDebugAndroidTestBuild'.
android studio更新后创建新项目时出现以下错误 可以用Build->Rebuild Project解决,但这个方法只是临时的,重新打开项目还是会报错 所以用另一种方法: 在app下的 ...
- Android Studio导入项目
原文:http://ask.android-studio.org/?/article/21 本篇教程中使用到的Android Studio版本为1.0, Eclipse ADT版本23.0.4.请尝试 ...
- 【Android Studio使用教程1】Android Studio导入项目的几种方法
本篇教程中使用到的Android Studio版本为1.0, Eclipse ADT版本23.0.4.请尝试更新到该版本. Android Studio默认使用 Gradle 构建项目, Eclips ...
- android stdio 编译项目报Error:Failed to find target with hash string 'android-24
android stdio 编译项目报Error:Failed to find target with hash string 'android-24 查看已有的SDK 设置项目的sdk为 25 an ...
- 解决android studio项目中Failded to sync Gradle project 'XXXX' Cause:failed to find target with hash string 'android-16'问题
之前在github上通过import module导入一个项目,结果报错,提示找不到sdk相应的版本xx,而我的compileSdkVersion明明写的是23不是xx,查了半天也没解决.最后只好下载 ...
- [Android Studio导入第三方类库方法] Error:(19, 23) 错误: 程序包org.apache.http不存在
本文主要参考以下链接: http://m.blog.csdn.net/blog/BoxRice/48575027 https://drakeet.me/android-studio http://ww ...
- Android Studio导入项目一直卡在Building gradle project info的解决方案
出现了一个很神奇的现象,Android Studio导入其它项目均正常,但是导入某个项目(两天前还正常打开的项目)却一直卡在Building gradle project info 尝试了重启Andr ...
- Android Studio导入项目的中文注释乱码解决方法
在Android studio中,导入Android的项目后,容易出现项目文件的中文乱码,中文无法正常显示,变成了一些格子问号之类的,导致无法查看中文的注释,下面来看看导入项目和解决乱码 ...
- Android Studio 导入项目错误
Gradle DSL method not found: 'Android()' 错误原因: android studio 引进项目时,自动查找本机是否有项目设置的SDK版本,若发现没有,我们会在pr ...
随机推荐
- SubSonic3.0 Demo1.0——应用了T4模版可减少开发过程中70%以上的代码量以及80%以上的出错率
应网友的要求,抽了点时间写了这个Demo,希望对2.2版想升级到3.0的朋友或正在使用3.0的朋友有所帮助.大家在使用Demo过程中如果发现什么问题或有什么建议,可以直接将Bug提交给我或告诉我,我会 ...
- publishing failed with multiple errors resource is out of sync with the file system--转
原文地址:http://blog.csdn.net/feng1603/article/details/7398266 今天用eclipse部署项目遇到"publishing failed w ...
- PHP变量和数据类型
编程语言可以分为三大类 1. 静态类型语言,比如:C/Java等,在静态语言类型中,类型的检查是在编译期(compile-time)确定的. 2. 动态语言类型,比如:PHP,python等各种脚本语 ...
- PHP代码的执行
先看下PHP的结构图:
- struts2学习笔记--上传单个和批量文件示例
struts2提供了对上传文件的支持,将上传后的文件封装为java.io.File对象,开发者只需要在Action中定义一个File类型的变量,然后直接使用该变量,将它复制到目的目录即可. 单个文件上 ...
- 我对Backbone.js的一些认识
backbone.js已经不是当前最流行的前端框架了,但是对于我而言,依然具有比较好的学习价值.虽然目前来说,react,vue等mvvm框架非常火热,但是感觉自身还不到去使用这种框架的层次.这些技术 ...
- 强大的自适应jQuery焦点图特效
jQuery焦点图切换自适应效果 自适应jQuery焦点图特效是一款支持移动端的响应式jQuery焦点图插件,支持flexible布局,支持移动触摸事件等. 今天我们要来分享一款很灵活的jQuery焦 ...
- WCF入门教程(二)如何创建WCF服务
WCF入门教程(二)从零做起-创建WCF服务 通过最基本的操作看到最简单的WCF如何实现的.这是VS的SDK默认创建的样本 1.创建WCF服务库 2.看其生成结构 1)IService1.cs(协议) ...
- iOS项目开发中的知识点与问题收集整理②(Part 二)
1.点击UIButton 无法产生触摸事件 如果在UIImageView中添加了一个按钮,你会发现在默认情况下这个按钮是无法被点击的,需要设置UIImageView的userInteractio ...
- MSSQL数据库的一些基础知识
转几个关于MSSQL数据库基础的文章: sql server系统表详细说明 SQL Server中系统数据库介绍 SQL Server中的角色(服务器级别和数据库级别角色)