![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
【Android错误和异常】
光记Jagger
再不拼,你就老了!
展开
-
Android---Unable to execute dex: Multiple dex files define Landroid/support/annotation/AnimRes;
运行工程,发现控制台上弹出了下面的错误信息:Unable to execute dex: Multiple dex files define Landroid/support/annotation/AnimRes;解决方法:观察是否有重复引用的jar包,尤其是Android Dependencies中。可以右键---->Build Path---->configure Buil原创 2015-10-03 20:15:17 · 856 阅读 · 0 评论 -
Android之使用RecyclerView异常情况
今天在使用RecyclerView时遇到了一些异常情况,记录下。 在布局中添加了RecyclerView,如下:<android.support.v7.widget.RecyclerView android:id="@+id/hlv_hour_forecast" android:layout_width="match_parent" android:原创 2016-07-14 11:05:21 · 3906 阅读 · 0 评论 -
Android Studio编译中“png-cruncher_*”异常的解决方案
最近写的几个小demo在编译时总是出现错误,打印的log如下: …… …… Exception in thread “png-cruncher_21” java.lang.RuntimeException: Timed out while waiting for slave aapt process, make sure the aapt execute at D:\Android-SDK\A原创 2016-06-12 13:18:23 · 6576 阅读 · 1 评论 -
Android Studio 自定义View命名空间报错的解决方法
在界面中引用自定义View时命名空间出现错误: 搜索了下,发现是AndroidStudio的gradle的脚本造成的,解析如下: 在eclipse中如果要使用你自定义的属性 是不能用res-auto的 必须得替换成你自定义view所属的包名,如果你在恰好使用的自定义属性被做成了lib 那就只能使用res-auto了,而在android-studio里,无论你是自己写自定义view 还是引用原创 2016-05-05 14:48:50 · 3164 阅读 · 0 评论 -
android--------关于创建模拟器不能移动的问题
创建模拟器后,模拟器一直显示在屏幕的左上角,不能移动,也显示不了“关闭”按钮,可以试一试以下的解决方案:按Alt+Space,在弹出菜单中选择Move,用方向键即可移动。删除,然后重新创建一个。把电脑的屏幕显示分辨率调低,保存后再次启动模拟器,启动成功后再把电脑的屏幕分辨率调回来即可。原创 2016-05-03 16:06:57 · 1216 阅读 · 0 评论 -
Android----Eclipse 停在 Android SDK Content Loader
今早打开eclipse时,eclipse便一直停在Android SDK Content Loader上。试过了重启eclipse,重启电脑,拔掉网线,仍然死活加载不进去(郁闷啊)。故求救度娘:方法一、 关闭Eclipse,删掉Eclipse WorkSpace下.metadata\.plugins\org.eclipse.core.resources\.projects文件夹下的原创 2015-10-30 10:19:08 · 383 阅读 · 0 评论 -
Android----AndroidStudio启动报错failed to create jvm error code -4的解决方法
启动AndroidStudio时报如下的错误:分析:造成这种错误一般是由于安装时配置的内存过大,导致内存不够用。解决方法:打开AndroidStudio的安装目录,找到bin文件夹下的studio.exe.vmoptions文件,打开文件,内容如下:将红色部分的值改小一点,我这改成了-Xmx512m,保存重新启动AndroidStudio即可。原创 2015-10-27 15:13:24 · 4738 阅读 · 0 评论 -
android----AndroidStudio错误:Failed to create the Java Virtual Machine
启动AndroidStudio后,打开DDMS界面(即),出现这样错误:解决方法:修改SDK目录下面的配置文件,tools/lib/monitor-x86/monitor.ini 最后两行。-Xms256m-Xmx512m保存文件后,重启AndroidStudio即可。原创 2015-11-04 23:51:06 · 1962 阅读 · 0 评论 -
Android----Error:Unable to start the daemon process:错误
下载了Android Studio试试,刚新建了个工程就弹出了下面的错误信息:Error:Unable to start the daemon process: could not reserve enough space for object heap.Please assign more memory to Gradle in the project's gradle.properti原创 2015-10-03 21:23:14 · 2925 阅读 · 0 评论 -
android-----gen下没有R文件
自从更新了ADT后,最近总是出现这样或那样的问题,这不现在又出现问题了-----新建了一个工程,发现gen下没有R文件,并且一新建工程就会产生这样一个叫appcompat_v7的项目。对新建的工程(MobilePhone)右键---->Build Path---->Configure BuildPath 发现如下情况:网上搜索了下,gen下没有R文件的解决方法:1、选择原创 2015-10-03 00:10:30 · 3414 阅读 · 0 评论 -
android----关于使用Genymotion模拟器产生的错误Unable to establish a connection to adb
最近下载了Genymotion模拟器来用用,确实是快多了。但是,最近打开AndroidStudio后,总是弹出以下的错误:Unable to establish a connection to adb. This usually happens if you have an incompatible version of adb running already. Try re-openin原创 2015-11-04 23:34:40 · 12104 阅读 · 0 评论 -
Android错误知识汇总
1.Android Studio com.android.dex.DexException: Multiple dex files define(重复引用包) 解决方法:在gradle文件中改,只需要将重复的引用中的compile改成provided就行。 2.AS中运行项目时出现Error: Execution failed for task ‘:app:transformClas原创 2017-02-20 22:02:13 · 707 阅读 · 0 评论