Android studio 环境配置

写xposed用到了AS:D

1、首次启动AS,自动下载SDK,而SDK在墙外。修改android studio/bin/idea.properties,添加

disable.android.first.run=true

启动后管理SDK,神奇般的可以下载了。后面的AVD也可以下载。

2、总是indexing

invalidate cache / restart

3、新增依赖

新建lib文件夹,将jar包复制到lib,右键jar文件,add as library...

4、build APK时,报more than one file was found with OS independent path ' ',在模块的build.gradle中Android项中添加

packagingOptions {
        pickFirst 'META-INF/*'
}

错误消失,有的贴不是上面的pickFirst,而是exclude

5、xposed日志中报The Xposed API classes are compiled into the module's APK,在build.gradle中的dependencies中指定为provided:

provided files('lib/XposedBridgeApi-54.jar')

6、取消便捷启动

File -> Settings -> Build, Execution, Deployment -> Instant Run

 

转载于:https://www.cnblogs.com/chenhuanBlogs/p/10310800.html

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值