
android studio
jameskaron
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Eclipse 和Intellij IDEA 快捷键比较
代码补全:complete current statement : Crtl+Shift+Enter代码提示:Class Name Completion :Crtl+Finsert live templete : ctrl+J 构造方法\get/set 等:Alt+insert Eclipse 和Intellij IDEA 快捷键比较 掌握快捷...原创 2014-12-27 16:49:32 · 157 阅读 · 2 评论 -
Android studio编辑module下的build.gradle文件就卡死?
安装SDK中的google repository 和Android support repository,安装就更新到最新。重启Android studio,即可解决问题原创 2017-07-27 15:43:47 · 471 阅读 · 1 评论 -
android studio中包重合在一起
进入android studio工程,左上角可以看到工程名,在它的右上角有一个设置按钮,形状像齿轮,点击进入:选择compact middle package,就可以显示包名。 截图如下:...原创 2018-01-10 22:37:25 · 1368 阅读 · 0 评论 -
Define location with sdk.dir in the local.properties file or with an ANDROID_HOM
Error:SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable. 这个错误是因为导入的并不是android studio的项目,用的是eclipse的项目结构,所以会出错因为没有set...原创 2018-01-12 19:51:50 · 792 阅读 · 0 评论 -
Android studio MacBook快捷键
1.自动补全类名(Complete Class Name):ctrl+option+sapce2.删除行:command+delete3.跳转:command+单击4.回退/前进:option+command+←/→5.移动行:shift+option+↑/↓6.光标换行:command+shift+enter7.去除无效引用:shift+alt+O8.重写:com...原创 2018-01-15 17:09:09 · 188 阅读 · 0 评论 -
Build gradle库导包很慢
1.use jcenter() http:jcenter(){url 'http://jcenter.bintray.com/'} 2.use ali cloud:maven{ url 'http://maven.aliyun.com/nexus/content/repositories/central/'}原创 2018-01-16 18:45:37 · 236 阅读 · 0 评论 -
出现Failed to open zip file问题的解决方法
Error:Failed to open zip file.Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)Re-download dependencies and sync project (requires network)Re-...原创 2018-01-22 14:45:22 · 4865 阅读 · 0 评论 -
In android studio, cannot load facets
在更新完Android Studio的时候,有时候kotlin或者其他插件会失效。这时候只要: 去掉勾选报错红色的插件,OKFile -> Settings - > Plugins ->再重新 Enable 失效的 Plugin....原创 2018-04-11 00:47:42 · 411 阅读 · 0 评论 -
Android studio IDE 不停地 updating indices
解决:File -> Invalidate Caches/Restart...原创 2018-09-27 23:09:45 · 433 阅读 · 0 评论 -
(转) Android Studio中如何使用Git和Github来管理项目
转自:http://blog.csdn.net/wei18359100306/article/details/45645145 1、要在as中使用git,首先你的在本地安装Git,具体安装流程大家可以看我blog:版本控制工具Git详解 2、在studio中配置git插件:File->Setting->Version Control->Git, 然后选择你本地...原创 2017-07-15 17:53:29 · 157 阅读 · 0 评论 -
(转)Android studio debug 技巧介绍
写代码不可避免有Bug,通常情况下除了日志最直接的调试手段就是debug;那么你的调试技术停留在哪一阶段呢?仅仅是下个断点单步执行吗?或者你知道 Evaluate Expression, 知道条件断点;可是你听说过日志断点吗,Method Breakpoint, Exception Breakpoint 呢?还有高大上的 Field Watchpoint ?几种不同的断点你有关注过A...原创 2016-01-08 01:34:22 · 127 阅读 · 0 评论 -
Plugin is too old 插件版本太低
只要打开该项目Build.Gradle文件,并更新相关的classpath到最新版本,把原来版本改成1.5.0就好了原创 2016-01-02 16:20:38 · 159 阅读 · 0 评论 -
ERROR:Android Studio - “Unmappable character for encoding UTF-8”
Adding the following to build.gradle solves the problem :android {... compileOptions.encoding ='UTF-8'原创 2016-05-10 18:55:17 · 952 阅读 · 0 评论 -
(转)android studio: ndk integration is deprecated in the current plugin
ndk integration is deprecated in the current plugin ERROR:html] view plain copy print?Error:Error: NDK integration is deprecated in the current plugin. Consider trying the new experi...原创 2016-05-10 18:57:36 · 180 阅读 · 0 评论 -
(转) Duplicate files copied in APK META-INF/DEPENDENCIES
转自:http://blog.csdn.net/edagarli/article/details/23345771?c=fc4e023034ff74698e576d85de1603fe File1:/home/slava/.gradle/caches/modules-2/files-2.1/org.apache.httpcomponents/httpmime/4.3.1/f789...原创 2016-05-10 23:55:43 · 160 阅读 · 0 评论 -
Android: Using SVG in res leads to error: “The file name must end with .xml or .
错误类似::app:mergeDebugResources:app:mergeDebugResources FAILED/home/petergriffin/folder1/another-app/MyAwesome-App/app/src/main/res/drawable-hdpi/logo.svgError:Error: The file name must end wit...原创 2016-05-11 12:18:42 · 4493 阅读 · 0 评论 -
Gradle build is stricter that Eclipse ADT (e.g. Found item _ more than one time)
FAILURE:Build failed with an exception.*What went wrong:Execution failed for task ':FunshionAndroid:mergeDebugResources'.> D:\Workspaces\Proj\AndroidApp\res\values-hdpi\dimens.xml:Error:Found ite...原创 2016-05-16 14:49:21 · 170 阅读 · 0 评论 -
eclipse & AS 带参数运行main()
public static void main(String[] args) { Double d1 = Double.valueOf(args[0]); Double d2 = Double.valueOf(args[1]); double result = d1.doubleValue() + d2.doubleValue(); System.o...原创 2016-08-22 17:48:36 · 212 阅读 · 0 评论 -
(转)android studio安装总结
Android Studio 的安装和配置篇(Windows篇<转>http://www.jianshu.com/p/fc03942548cc#中间gradle下载比较慢:解决方法需要在android studio 中配置gradle的代理,当然是用goagent了。打开setting->gradle->Gradle VM Options:-Dhttp...原创 2020-08-17 17:43:00 · 252 阅读 · 0 评论 -
MacBook下安装android-studio以及SDK
1、下载AS for mac 2.下载SDK for mac由于下载下来的SDK其实不完整的,首先要将sdk/tools 的android设置打开为anywhere然后根据http://www.cnblogs.com/yjmyzz/p/4219829.html配置 下载补完build-tools & extra的内容 3.AS中在setting/p...原创 2015-12-30 16:19:10 · 160 阅读 · 0 评论 -
(转).9图报错 Error:top-left corner pixel must be either opaque white or transpare
转自:https://blog.csdn.net/xct841990555/article/details/80382338 Android 项目中.9图使用时报错操作时报错在android studio中写一个资源文件时。将几张之前制作好的.9图拷贝到对应文件夹下后,随机报以下的错: Error:top-left corner pixel must be either opaq...转载 2018-09-29 16:22:17 · 358 阅读 · 0 评论