1.使用Android Studio安装Apk在自带模拟器上时,出现错误: Installation failed with message INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113. 解决方法:在build.gradle(Module:app)中添加如下代码 android { splits { abi { enable true reset() include 'x86', 'armeabi-v7a','x86_64' universalApk true } } } 原因分析:原生库的编译目标通常是arm架构的cpu,在x86上运行便会遇到这样的错误。 2.错误:Error:com.android.builder.internal.aapt.AaptException: Failed to crunch 解决方法及原因:文件路径太长,缩短点就成。 3.错误:Manifest merger failed:Attribute application@ supportsRtl 解决方法:一般出现在项目A引用项目B时出现错误,在AndroidManifest.xml中的<application>标签中添加tools:replace="android:supportsRtl" 4.错误:com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex 解决方法:依赖冲突了,把包修改为相同版本。 5.从外部导入aar包,但是却不能使用aar包中的类。 解决方法:重启Android Studio即可。