工具常见错误
来源:互联网 发布:软件测评高级工程师 编辑:程序博客网 时间:2024/05/22 04:36
一.错误:
打开android studio提示gradle project sync failed.Basic functionality(e.g.editing,debugging) will not work properly.请问各位这是怎么一回事?
首先声名这不是因为gradle没有下载。昨天我都还用的好好的,各种调试也是好的,而且还是用真机调试的。
昨天android studio是好的,没出现这个问题。今天才出现的。
去gradle设置里把各种设置都弄了好几遍也不行。
所以今天连真机android DDMS没反应,不能运行也不能调试。强制运行的时候出现:
Error:org.gradle.tooling.GradleConnectionException: Could not create an instance of Tooling API implementation using the specified Gradle installation 'G:\Users\Administrator\.gradle\wrapper\dists\gradle-1.10-all\6vpvhqu0efs1fqmqr2decq1v12\gradle-1.10'.: Could not create an instance of Tooling API implementation using the specified Gradle installation 'G:\Users\Administrator\.gradle\wrapper\dists\gradle-1.10-all\6vpvhqu0efs1fqmqr2decq1v12\gradle-1.10'.
谁有什么好的解决方法没,跪球了。我的android studio版本是0.5.2的。
解决:
1. 我重装之后等了会他更新了gradle之后就好了。不过这时的版本是0.4.6的。
2. 今天新下载一个android studio安装完就出这错误,查了半天百度没解决!
最后我找到jdk文件夹里面的support文件夹,我的在D:\android\sdk\extras\android\support
把spport文件夹里的东西删除;
重新运行SDKManager,重新加载一下Extras下的Android Support Library 重新启动就OK了
3. 将\sdk\extras\intel\Hardware_Accelerated_Execution_Manager中的intelhaxm-android运行一下就好了。
4. 点击 tools ->Android->sync project with gradles files.解决这个问题的。
5. 过了一天问题又出现了,按提示将org.gradle.jvmargs=-Xmx1024m修改为何时值后,执行“Rebuild Project”,解决。
二。
错误:
1.更改字体和外观。
解决
1. File——Settings选项,appearance--theme(外观)
2. File>Settings>Editor>Colors & Fonts>Font(字体)
三。
错误:
1.android 开发 xml界面里明明有东西 为什么打开就没有了
解决:
1. 把LinearLayout的orientation这个属相设置为vertical试试
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
<!--这行代码-->
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
可能控件被挤出界面了
四。
错误:
1.android studio如何取消xml布局文件里面最上面的一条东西?
解决:
设置主题为NoActionBar,在style.xml中设置:
<style name="AppTheme.NoActionBar">
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
</style>
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
</style>
然后在AndroidManifest.xml文件中的Activity设置主题:
android:theme="@style/AppTheme.NoActionBar"
五。错误:
1.Android monitor不显示东西
解决:
用的汉化版不完整
六。错误:
1.设置快捷键
解决:
设置--keymap
七。
2、adb start-server
ADB命令出现 error: 输入
1、adb kill-server
2、adb start-server
3、adb remount
八。
Eclipse报错 due to restriction on required library C:/Java/jdk1.6.0_10/jre/lib/rt.jar 解决方案
1、进入Project --> Properties --> Java Build Path --> Libraries
Eclipse 编译时报错:
Access restriction:The type NEW is not accessible due to restriction on required library C:/Java/jdk1.6.0_10/jre/lib/rt.jar
解决方法如下:1、进入Project --> Properties --> Java Build Path --> Libraries
2、remove 掉 JRE System Library
3、Add Library 重新加入JRE System Library
添加后即可解决此问题。
0 0
- 工具常见错误
- vs开发工具常见错误总结
- synergy工具常见错误处理方式
- Android开发环境及工具常见的错误集锦
- 常见工具
- 常见错误
- 常见错误
- 常见错误
- 常见错误
- 常见错误
- 常见错误
- 常见错误
- 常见错误
- 常见错误
- 常见错误
- 常见错误
- 常见错误
- 常见错误
- UIAutomator自动化知识点
- 世界记忆大师的记忆力训练方法
- laravel拓展面包屑导航
- JQuery提交表单
- Java静态类
- 工具常见错误
- 对代理的一些理解
- Asp.Net WebForm ListView的使用
- 高精度开平方
- c++程序单实例运行
- 伟东山视频自学笔记——第6课 中断控制器(arm9中断结构)
- python条件判断与循环
- iOS从零基础到精通就业-C语言入门 3关系和逻辑运算符
- Android工作笔记之okHttp,Xutils等框架的2次封装实例