<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>错误处理 - 分类 - Ciel's blog</title><link>https://www.cielyang.top/categories/%E9%94%99%E8%AF%AF%E5%A4%84%E7%90%86/</link><description>错误处理 - 分类 - Ciel's blog</description><generator>Hugo -- gohugo.io</generator><language>zh-CN</language><managingEditor>cielsk43@gmail.com (Ciel Yang)</managingEditor><webMaster>cielsk43@gmail.com (Ciel Yang)</webMaster><lastBuildDate>Tue, 16 Jan 2018 11:36:12 +0000</lastBuildDate><atom:link href="https://www.cielyang.top/categories/%E9%94%99%E8%AF%AF%E5%A4%84%E7%90%86/" rel="self" type="application/rss+xml"/><item><title>TextInputLayout 使用时出现 Failed to inflate ColorStateList, leaving it to the framework 异常的解决办法</title><link>https://www.cielyang.top/posts/Failed-to-inflate-ColorStateList-leaving-it-to-the-framework/</link><pubDate>Tue, 16 Jan 2018 11:36:12 +0000</pubDate><author><name>Ciel Yang</name></author><guid>https://www.cielyang.top/posts/Failed-to-inflate-ColorStateList-leaving-it-to-the-framework/</guid><description>最近，在使用 TextInputLayout 的时候发生了标题所示的异常，如果不打开 Logcat 一直都不会发现有异常产生，实际使用一切正常。 最后定位问题代码，发现主要是因为我在使用 TextInputLayout</description></item><item><title>references to other resources are not supported by build-time PNG generation 解决办法</title><link>https://www.cielyang.top/posts/references-to-other-resources-are-not-supported-by-build-time-PNG-generation-%E8%A7%A3%E5%86%B3%E5%8A%9E%E6%B3%95/</link><pubDate>Thu, 26 Oct 2017 19:17:23 +0000</pubDate><author><name>Ciel Yang</name></author><guid>https://www.cielyang.top/posts/references-to-other-resources-are-not-supported-by-build-time-PNG-generation-%E8%A7%A3%E5%86%B3%E5%8A%9E%E6%B3%95/</guid><description>刚刚升级 Android Studio 3.0 后重新编译项目，就碰到了莫名奇妙的图片载入错误，好在万能的 Google 在。 错误信息非常长，而且比较多重复，有用的就是下面的内容： 1 Can&amp;#39;t process attribute</description></item><item><title>Duplicate files copied in APK META-INF 问题解决办法</title><link>https://www.cielyang.top/posts/Duplicate-files-copied-in-APK-META-INF-%E9%97%AE%E9%A2%98%E8%A7%A3%E5%86%B3%E5%8A%9E%E6%B3%95/</link><pubDate>Thu, 26 Oct 2017 14:05:58 +0000</pubDate><author><name>Ciel Yang</name></author><guid>https://www.cielyang.top/posts/Duplicate-files-copied-in-APK-META-INF-%E9%97%AE%E9%A2%98%E8%A7%A3%E5%86%B3%E5%8A%9E%E6%B3%95/</guid><description>最近使用 Bmob 推送服务的时候，因为 Bmob 本身使用了 RxJava 包，导致编译时出现重复导入相同库文件的错误。 解决办法很简单在 app 模块的 Gradle 文件中找到 andriod 条目加入如下内</description></item><item><title>INSTALL_FAILED_INVALID_APK: /data/app/**.tmp/*_slice__ signatures are inconsistent 解决方法</title><link>https://www.cielyang.top/posts/INSTALL-FAILED-INVALID-APK-data-app-tmp-slice-signatures-are-inconsistent-%E8%A7%A3%E5%86%B3%E6%96%B9%E6%B3%95/</link><pubDate>Wed, 25 Oct 2017 19:38:59 +0000</pubDate><author><name>Ciel Yang</name></author><guid>https://www.cielyang.top/posts/INSTALL-FAILED-INVALID-APK-data-app-tmp-slice-signatures-are-inconsistent-%E8%A7%A3%E5%86%B3%E6%96%B9%E6%B3%95/</guid><description>刚刚作项目碰到了签名之后程序安装失败的问题，记录一下解决方法。 实际上，错误的代码如下： 1 2 3 4 5 6 Installation failed with message Failed to finalize session : INSTALL_FAILED_INVALID_APK: /data/app/vmdl1909831784.tmp/3_slice__ signatures are inconsistent. It is possible that this issue is</description></item><item><title>EditText 属性 imeActionLabel 内容未在输入法编辑区显示</title><link>https://www.cielyang.top/posts/%E9%97%AE%E9%A2%98%E8%A7%A3%E5%86%B3EditText-%E5%B1%9E%E6%80%A7-actionLabel-%E5%86%85%E5%AE%B9%E6%9C%AA%E5%9C%A8%E8%BE%93%E5%85%A5%E6%B3%95%E7%BC%96%E8%BE%91%E5%8C%BA%E6%98%BE%E7%A4%BA/</link><pubDate>Tue, 28 Mar 2017 10:46:59 +0000</pubDate><author><name>Ciel Yang</name></author><guid>https://www.cielyang.top/posts/%E9%97%AE%E9%A2%98%E8%A7%A3%E5%86%B3EditText-%E5%B1%9E%E6%80%A7-actionLabel-%E5%86%85%E5%AE%B9%E6%9C%AA%E5%9C%A8%E8%BE%93%E5%85%A5%E6%B3%95%E7%BC%96%E8%BE%91%E5%8C%BA%E6%98%BE%E7%A4%BA/</guid><description>最近在做一个登录模块 Demo 的时候发现问题：imeActionLabel 设置的按钮文字并没有在输入法的编辑区显示。 之后，查找官方文档 EditorInfo 的 actionLabel 部分说明</description></item><item><title>Gradle 错误 SDK location not found 解决方法</title><link>https://www.cielyang.top/posts/Graadle-%E9%94%99%E8%AF%AF-SDK-location-not-found-%E8%A7%A3%E5%86%B3%E6%96%B9%E6%B3%95/</link><pubDate>Thu, 16 Feb 2017 09:07:52 +0000</pubDate><author><name>Ciel Yang</name></author><guid>https://www.cielyang.top/posts/Graadle-%E9%94%99%E8%AF%AF-SDK-location-not-found-%E8%A7%A3%E5%86%B3%E6%96%B9%E6%B3%95/</guid><description>使用 Intellij 导入 android-architecture 项目的时候，用 Gradle build 发生了错误： 根据提示有两种解决办法： 在项目根目录创建 local.properties 文件，并加入内容 1 sdk.dir=C\:\\Users\\ciels\\AppData\\Local\\Android\\android-sdk 注意：如果是 Windows 下的路径，要转义特殊符</description></item><item><title>Android Lint Warning: Not all execution paths return a value</title><link>https://www.cielyang.top/posts/Android-Lint-Warning-Not-all-execution-paths-return-a-value/</link><pubDate>Wed, 01 Feb 2017 11:45:59 +0000</pubDate><author><name>Ciel Yang</name></author><guid>https://www.cielyang.top/posts/Android-Lint-Warning-Not-all-execution-paths-return-a-value/</guid><description>最近使用 Android Studio 或者 Intellij 编写 Android 项目时使用 Lint 分析代码，常常会碰到有关 build.gradle 文件的警告提示 1 Not all execution paths return a value 解决的方法很简单，在出问题的 build.gradle 文件里找到 android 项，在</description></item><item><title>android sqlite3 not found 暂时性解决办法</title><link>https://www.cielyang.top/posts/android-sqlite3-not-found-%E6%9A%82%E6%97%B6%E6%80%A7%E8%A7%A3%E5%86%B3%E5%8A%9E%E6%B3%95/</link><pubDate>Sun, 22 Jan 2017 10:27:00 +0000</pubDate><author><name>Ciel Yang</name></author><guid>https://www.cielyang.top/posts/android-sqlite3-not-found-%E6%9A%82%E6%97%B6%E6%80%A7%E8%A7%A3%E5%86%B3%E5%8A%9E%E6%B3%95/</guid><description>最近使用小米的手机进行 Android 程序测试，发现 adb shell 里无法使用 sqlite3 命令。而后尝试百度各种办法，无一成功。 现在，最保险的做法只能时从已经 root 的机器里面复制数</description></item></channel></rss>