Bug百科之Android开发篇

一、棘手问题

1.Dex 65k

  • 原理分析
    Android MultiDex实践:如何绕过那些坑?
    http://blog.csdn.net/richie0006/article/details/51103976

由Android 65K方法数限制引发的思考
http://jayfeng.com/2016/03/10/%E7%94%B1Android-65K%E6%96%B9%E6%B3%95%E6%95%B0%E9%99%90%E5%88%B6%E5%BC%95%E5%8F%91%E7%9A%84%E6%80%9D%E8%80%83/

Multidex实现简要分析
https://www.jianshu.com/p/dd90d7e7c691

  • 检测dex方法数
    记录:dex-method-counts.jar统计Android apk中方法数目
    http://blog.csdn.net/yk377657321/article/details/52583256

  • 解决方案
    Android 使用android-support-multidex解决Dex超出方法数的限制问题,让你的应用不再爆棚
    http://blog.csdn.net/t12x3456/article/details/40837287

美团Android DEX自动拆包及动态加载简介
https://tech.meituan.com/mt-android-auto-split-dex.html

Android有效地减少方法数
http://blog.csdn.net/lihenair/article/details/51657099

gradle - How to enable multidexing with the new Android Multidex support library
https://stackoverflow.com/questions/26609734/how-to-enable-multidexing-with-the-new-android-multidex-support-library

2.java.lang.VerifyError

关于java.lang.VerifyError的另外一种错误原因
http://blog.csdn.net/zhuobattle/article/details/47153025

java.lang.VerifyError解决方案
http://blog.csdn.net/lvuchenliu/article/details/53010152

二、插件问题

android studio 安装的plugins 插件 重启之后就消失了?保存不上
http://bbs.csdn.net/topics/391887572

三、AS问题

AndroidStudio的alt+enter 没有效果 没有解决方案提示
http://blog.csdn.net/a77979744/article/details/50585584

Android Studio“Cannot resolve symbol” 解决办法
http://blog.csdn.net/chaoyu168/article/details/51538996

Unable to access Android SDK add-on list https://zhidao.baidu.com/question/1692064200515166788.html

Android Studio 模拟器无法启动问题(x86 emulation currently requires hardware acceleration) http://blog.csdn.net/oshenli1/article/details/50736477

AndroidStudio导入项目一直卡在Building gradle project info最快速解决方案 http://blog.csdn.net/wonengxing/article/details/50069287

AndroidStudio与eclipse打包的时候报错。Error:(4) Error: "ssdk_instapager_login_html" is not translated in "en" - CSDN博客 http://blog.csdn.net/qq_21376985/article/details/51545947

四、代码混淆

解决在6.0系统出现java.lang.InternalError
http://blog.csdn.net/cuiran/article/details/521928

retrofit+rxjava 混淆 https://www.jianshu.com/p/0ef702c206fa

java - Error:Execution failed for task ':app:transformClassesAndResourcesWithProguardForRelease - Stack Overflow https://stackoverflow.com/questions/35955172/errorexecution-failed-for-task-apptransformclassesandresourceswithproguardfo#

五、编译开发问题

1.RuntimeException

java.lang.RuntimeException: Unable to instantiate activity ComponentInfo异常解决
http://blog.csdn.net/gaohongijj/article/details/8010869/

2.API过时

【转】android出现注: 某些输入文件使用或覆盖了已过时的 API。 注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。 注: 某些输入文件使用了未经检查或不安全的操作。 注 - _再见理想
http://www.cnblogs.com/exmyth/p/5515031.html

3.类型擦除异常/Gson解析错误

com.google.gson.internal.LinkedTreeMap cannot be cast to test.UserBean at t..
http://blog.csdn.net/anddroid_lanyan/article/details/46561341

4.NoSuchFildError

解决java.lang.NoSuchFieldError异常
http://blog.csdn.net/wzhidev/article/details/51934003

5.NoClassDefFoundError

android - Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available
https://stackoverflow.com/questions/41986851/caused-by-java-lang-noclassdeffounderror-class-not-found-using-the-boot-class

ClassNotFoundException: Didn't find class "XXXView" on path: DexPathList
http://wxynxyo.iteye.com/blog/2277474

导入开源库后,出现java.lang.NoClassDefFoundError: rx.plugins.RxJavaPlugins异常 http://blog.csdn.net/mjz644638500/article/details/72729789

android ClassNotFoundException: Didn't find class
https://stackoverflow.com/questions/15124924/android-classnotfoundexception-didnt-find-class

6.NotFoundException

android.content.res.Resources$NotFoundException: String resource ID
http://blog.sina.com.cn/s/blog_5e58565701012ox7.html

7.Android不同版本的编译问题

程序包org.apache.http不存在,解决方式
http://blog.csdn.net/qq_23089525/article/details/52038529

(已解决)Error:(31, 29) 错误: 找不到符号 符号: 方法 setLatestEventInfo(MainActivity,String,String,<空值>) 位置: 类型为No
http://blog.csdn.net/linsuren/article/details/52440792?locationNum=1

AS 报错 Error:(303, 27) 错误: 找不到符号 符号: 方法 sin(float) 位置: 类 FloatMath
http://blog.csdn.net/rongwenbin/article/details/51240884

4.0读取文件的报 open failed: ENOENT (No such file or directory)
http://blog.csdn.net/lvxiangan/article/details/10165361

Error:Execution failed for task ':hello_motion_tracking:transformNative_libsWithStripDebugSymbolForD
http://blog.csdn.net/qq_22797039/article/details/70156529

Android Studio出现Error:No service of type Factor...
https://www.jianshu.com/p/c4f4894ad215

8.Gradle编译问题

Error:Execution failed for task ':app:transformClassesWithDexForDebug'解决记录
http://blog.csdn.net/lxk_1993/article/details/50511172

android - Gradle: Execution failed for task ':processDebugManifest' - Stack Overflow
https://stackoverflow.com/questions/17587751/gradle-execution-failed-for-task-processdebugmanifest

Android Studio、Gradle常见错误、设置
http://blog.csdn.net/piscesq329a/article/details/49945239

Error:Execution failed for task ':app:mergeDebugResources'. > Crunching Cruncher bg_btn.9.png
http://blog.csdn.net/u013443865/article/details/51232586

Could not find method runProguard() for arguments [false] on BuildType_Decorated{ - CSDN博客
http://blog.csdn.net/u012964796/article/details/42493555

Unknown host 'android.oa.com'. You may need to adjust the proxy settings in Gradle. - CSDN博客
http://blog.csdn.net/kwunyamshan/article/details/72230311

六、开源框架问题

Retrofit 中文乱码问题 - CSDN博客
http://blog.csdn.net/dao2012/article/details/52639310

你可能感兴趣的:(Bug百科之Android开发篇)