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中的标签中添加tools:replace="android:supportsRtl"

4.错误:com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex

解决方法:依赖冲突了,把包修改为相同版本。

5.从外部导入aar包,但是却不能使用aar包中的类。

解决方法:重启Android Studio即可。

更多相关文章

  1. android提示错误: The process android.process.acore has stoppe
  2. Android 出现open failed: EACCES (Permission denied)错误**
  3. linux下eclipse构建并编译android一个简单jni项目
  4. 【Android】在开发项目的时候,利用AndroidStudio开发工具,突然一直
  5. 10个android开源项目
  6. 【源码分享下载】每日更新之Android项目源码---手机天气预报系统
  7. Android requires compiler compliance level 5.0. Please fix p
  8. 丢失Android系统库或者Conversion to Dalvik format failed with
  9. 如何解决:Android中 Error generating final archive: Debug Cert

随机推荐

  1. Android 设置dialog背景全透明无边框
  2. Android ELF文件PLT和GOT
  3. Android触摸事件传递机制
  4. 关于android的Notification的若干问题
  5. android 集合与json之间的相互转换
  6. Android | 代码混淆到底做了什么?
  7. Android 蓝牙开发研究
  8. 一起学android之DigitalClock与TextClock
  9. Android 消息机制学习
  10. android中在java代码中设置Button按钮的