今天在部署android开发环境的时候,每次打开eclipse的时候点击AVD Manager的按钮就会弹出Location of the Android SDK has not been setup in the preferences的错误,网上搜了很久都说是android sdk location 没有设置或者是环境变量设置错误,但是自己这两项都设置过了,而且是绝对真确的,由于不清楚到底什么问题还是把网上的方法都尝试了下,但都未能解决问题. 无意中看见了default debug keys…
点eclipse的android virtual device manager提示错误:error:location of the android sdk has not been setup in the preferences. 1.确认你的sdk路径指向正确. 2.升级你的adt版本/卸了重装(网友支的招), 3.如果还不行的话,可能是你禁了启动项,让adt随eclipse启动,然后重启eclipse,我就是因为把ADT关掉了,查了半天,坑了自己. 如果还没解决,那我也没办法了.…
前言 最近做了一个App,之前开发该App的时候一直以来都是默认的launcher图标启动的, 今天美工换了一个App的launcher 图标,因此在Android Studio中将默认的lancher图标替换成美工的图标,运行到真机后,发现一直没有替换成功. 替换 下面是替换lancher图标的代码,将如下默认的代码 <application android:name=".app.QQNewsApp" android:allowBackup="true" a…
今天打开Android studio突然出现了setContentView(R.layout.activity_main);中的R标红错误,这已经不是第一次出现这个错误了,真心的觉得Android studio是真的不稳定,找了半天发现我的资源文件res下面的好多文件出现了乱码,(我也是醉了).把他们一个一个的替换成正确的代码终于rebulid project不再出现错误了. <?xml version="1.0" encoding="utf-8"?>…
解决的方法:打开Help-Install new software,更新文件就可以,这时国内的朋友就须要FQ了,详细有代理,能够网上自行搜索.…
问题描述 使用SDK Manager更新时出现问题Failed to fetch URL https://dl-ssl.google.com/android/repository/repository-6.xml, reason: Connection tohttps://dl-ssl.google.com refusedFailed to fetch URL http://dl-ssl.google.com/android/repository/addons_list-1.xml, reaso…
问题描述 使用SDK Manager更新时出现问题Failed to fetch URL https://dl-ssl.google.com/android/repository/repository-6.xml, reason: Connection to https://dl-ssl.google.com refusedFailed to fetch URL http://dl-ssl.google.com/android/repository/addons_list-1.xml, reas…
<TextView android:id="@+id/desc" android:layout_width="match_parent" android:layout_height="130px" android:lineSpacingExtra="2px" android:textColor="@color/white" android:textSize="20px" andro…
最近在写移动端页面的时候,遇到一个问题,在Android手机下,虚拟键盘会将input框遮挡住,具体情况如下图所示: 正常页面显示  IOS端显示情况 Android端显示情况 解决方式: <template> <div class="change-phone-box"> <img class="phone-img" :src="'img/change_telephone@2x.png' | assets" alt=…
* 最近帮团队同事配置gradle时,发现一个非常奇怪的问题:> * 同样的gradle配置的项目,只是修改了一个项目的名称,竟然会出现以下奇怪问题: ## 现象1. 一个编译完全OK,另外一个编译出现各种问题2. mac上两个都能正常编译,windows上其中一个编译通不过 主要Error如下: ```No resource found that matches the given name (at drawable with value @drawable/xxxxxxxxxxxxxxxxx…