从eclipse转android studio遇到的坑

基础知识介绍,很详细:

http://www.open-open.com/lib/view/open1433387390635.html


加速glide的构建:

http://my.oschina.net/sammy1990/blog/388846


运行Check out Subversion抛出异常:Cannot run program "svn": CreateProcess error=2?


把这些勾都去掉。本质是因为 http://www.cnblogs.com/lianghui66/p/4040257.html


启动模拟器报错:emulator: ERROR: x86 emulation currently requires hardware acceleration!

Please ensure Intel HAXM is properly installed and usable.
CPU acceleration status: HAX kernel module is not installed!

原因:没有安装intel HAX

解决方法:

1)打开sdk manager-》Extras,勾选Intel x86 Emulator Accelerator(HAXM installer),并点击

install packages。

2)/sdk/extras/intel/Hardware_Accelerated_Execution_Manager,运行:silent_install,注意如果安装报错VT-x,需要改BIOS



Error:(1, 0) Plugin with id 'com.android.application' not found.

http://www.cnblogs.com/simoncook/p/4909954.html



Multiple dex files define Landroid/support/annotation/AnimRes


还有些常见的问题:

  1. No such property: proRunguard

    • Fixed by changing "runProguard = enabled" to "minifyEnabled = true" in the Gradle file
  2. com.android.dex.DexIndexOverflowException

  • added "multiDexEnabled = true" in the Gradle file

    1. java.lang.OutOfMemoryError: GC overhead limit exceeded
  • Added the following: dexOptions { javaMaxHeapSize "4g" }


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值