
Android--Exception
文章平均质量分 54
DRPrincess
向下生根,向上开花
展开
-
AndroidStudio-无法用真机调试异常-Instant Run requires 'Tools | Android | Enable ADB integration' to be enable
报错信息:Error running app: Instant Run requires 'Tools | Android | Enable ADB integration' to be enabled.解决方法:把tools-android-enable ADB Integration勾选上如下图:原创 2016-05-04 18:01:01 · 1959 阅读 · 0 评论 -
Android异常--Parcelable encountered IOException writing serializable object
异常:java.lang.RuntimeException: Parcelable encountered IOException writing serializable object出现地方:intent发送: Intent intent = new Intent(getActivity(), StockDetailActivity.class);原创 2016-07-07 14:29:37 · 20931 阅读 · 5 评论 -
AndroidStudio-xml预览布局无法正常显示tag requires a 'drawable' attribute or child tag defining a drawable
异常信息:今天实现radioButton设置选中时改变背景,准备看下布局预览效果时,发现布局空白,报错为:tag requires a 'drawable' attribute or child tag defining a drawable异常原因:一个radioButton的背景设置错误android:background="@drawable/rbtn原创 2016-06-15 14:24:54 · 2056 阅读 · 0 评论 -
AndroidStudio-importProject异常-Error:(1, 0) Your project path contains non-ASCII characters.
出现的异常信息:Error:(1, 0) Your project path contains non-ASCII characters. This will most likely cause the build to fail on Windows. Please move your project to a different directory. See http://b.androi原创 2016-05-03 11:21:13 · 705 阅读 · 0 评论 -
Android异常-Process 'command 'D:xxx\build-tools\xxx\aapt.exe'' finished with non-zero exit 1
编译出错信息:Error:Execution failed for task ':app:processDebugResources'.> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'D:\Android\sdk\b原创 2016-08-22 17:59:26 · 13520 阅读 · 0 评论 -
Android-ABIFilter-Device supports x86,but APK only supports armeabi-v7a,armeabi,x86_64
我遇到一个小问题Android 的 so 库和 ABI 配置我原先也是没有什么概念的,直到上个周,在我尝试跑一个程序的时候,真机运行没问题,但是用伟大的模拟机的时候,遇到了这么一个错误:模拟机的下面显示:Device supports x86,but APK only supports armeabi-v7a,armeabi,x86_64;模拟机的设备是 x86,但是运行的这个程序的 apk 却只支原创 2017-05-02 00:25:35 · 46761 阅读 · 14 评论 -
Android异常-帧动画标签<animation-list>在AndroidStudio下不识别Element animation-list must be declared
异常: Eclipse中的使用帧动画的时候,是将动画文件放到anim文件夹中,但是到AndroidStudio中就会报如下错误:Element animation-list must be declared解决方法: 不要把这个帧动画文件放到anim文件夹中,要放到drawable文件夹中原创 2016-09-28 16:15:07 · 8875 阅读 · 3 评论 -
AndroidStudio-编译出错-Expected resource of type styleable [ResourceType]
前言:在使用TypedArray获取数据属性值的时候,编译时出现错误,但是能正常调试,但是使用gradle打包apk的时候,会被检查出来,导致打包失败异常信息: 编译时: Expected resource of type styleable [ResourceType] gradle打包apk出现错误原创 2016-11-14 20:47:54 · 6697 阅读 · 3 评论 -
Android-7.0系统安装异常之解析包错误
关于这个毛茸茸的小错误最新在开发一个新的 APP ,实现版本更新功能时,出现了覆盖安装的时候,在 Android 7.0 系统上出现解析包错误。报错信息:核心报错信息:java.lang.SecurityException: Permission Denial: opening provider android.support.v4.content.FileProvider from Process原创 2017-12-28 16:57:53 · 24357 阅读 · 10 评论 -
Android异常-Activity has leaked window com.android.internal.policy.impl.PhoneWindow... was originally
异常:: android.view.WindowLeaked: Activity dianshi.matchtrader.activity.MainActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView{4374e4c0 V.E..... R.....I. 0,0-1026,692} t原创 2016-07-11 09:28:59 · 4478 阅读 · 0 评论 -
Android异常-android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.Bin
异常:android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@43cf0778 is not valid; is your activity runing?异常打印日志:FATAL EXCEPTION: main原创 2016-07-16 18:37:02 · 8097 阅读 · 0 评论 -
Android异常-socket连接失败--connect failed: EHOSTUNREACH (No route to host)
failed to connect to /114.55.60.3 (port 9292): connect failed: EHOSTUNREACH (No route to host)原创 2016-07-11 16:01:49 · 10244 阅读 · 0 评论 -
Android异常--Error inflating class android.support.design.widget.FloatingActionButton
异常信息:Error inflating class android.support.design.widget.FloatingActionButton异常解决:在build.gradle中添加依赖compile 'com.android.support:support-v4:23.3.0'异常出现的原因:待分析原创 2016-08-08 11:49:08 · 1948 阅读 · 0 评论 -
Android异常--无序HashMap导致Android5.0及5.0以后的手机连接服务器异常
前言手上的一个项目,在我测试用的手机上都正常,今天在同事手机上登录失败.测试排查之后发现Android系统版本上面map内顺序排列不同的原因导致的.错误原因分析 项目是采用socket通信,访问接口时需要给服务器发送一些信息,这些信息在写入流之前是以字符串的格式存在的这个数据字符串里面有一个字段拼接,这个顺序需要严格和服务器保持一致,逻辑是:1.按照规定的顺序放原创 2016-10-14 22:18:36 · 1044 阅读 · 0 评论 -
Android异常--app:mergeDebugResources-> Some file crunching failed, see logs for details
异常:Error:Execution failed for task ':app:mergeDebugResources'.> Some file crunching failed, see logs for details原因:原创 2016-11-12 14:12:04 · 2017 阅读 · 0 评论 -
Android异常-UnKnownHostException-Unable to reslove host “XXX“ no address associated
异常环境:模拟机上跑程序,之前正常,然后某一次之后就开始报这个错误异常出现的地方: URL url = new URL(netUrl); //返回一个URLConnection对象,它表示到URL所引用的远程对象的连接 conn = (HttpURLConnection) url.openConnection(); //设置连接超时为5秒 conn.setConnectTimeout(500原创 2016-12-19 22:48:47 · 5834 阅读 · 0 评论 -
Android异常-android5.0以上网络请求失败-retry error, curr request is null
异常描述: 使用Xutils框架做了登录请求,5.0以下和部分5.0android能够正常登录,大部分android5.0的手机发现一直显示正在加载,调试发现,输出错误信息retry error,curr request is null解决方法: 去github下载最新的XUtils包,这个错误在2.6.14版本已经被发现解决了github中Xutils的项目包地址原创 2016-08-27 09:50:18 · 1516 阅读 · 0 评论 -
Android异常-You need to use a Theme.AppCompat theme (or descendant) with this activity.
异常信息: Caused by: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.异常分析:异常的意思是:你需要使用一个theme.appcompat主题(或后代)与此活动。为什么会有这种情况出现,是因为activi原创 2016-08-23 17:05:31 · 23180 阅读 · 0 评论 -
Android异常--bitmapUtils加载图片不显示
异常描述:使用XUtils中的BitmapUtils加载网络图片一直显示不出来,但是不报错,排查之后,发现是因为图片的路径里面包含中文.解决方法:原创 2016-08-11 15:11:32 · 2485 阅读 · 0 评论 -
ADB偶尔的抽风异常-ADB server didn‘t ACK
关于错误使用 adb 命令的过程中,有的时候正常,有的时候会出现以下错误,而且很奇怪的是,有的时候命令行不能用,但是用 Android Studio 还能安装应用也是神奇了。daemon not running. starting it now on port 5037 ADB server didn't ACK failed to start daemon er原创 2018-01-09 15:56:04 · 707 阅读 · 1 评论