Android Studio开发项目中问题总结

1.  如果运行项目中遇到,Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'E:\Android\SoftWare\adt-bundle-windows-x86_64-20140702\sdk\build-tools\23.0.1\aapt.exe'' finished with non-zero exit value 1

ERROR: In <declare-styleable> CirclePageIndicator, unable to find attribute strokeWidth,如图:


我摸索了快一天才找到原因,认真分析Error信息你会发现,是Resources的原因In <declare-styleable> CirclePageIndicator, unable to find attribute strokeWidth。我没有声明<declare-styleable> 中strokeWidth属性,在Eclipse中不会报错,但在AS中会,如图:

2.在网上也找到了类似问题1,但还是有细微的差别(一个是value 1,另一个是value2),所以解决问题也不同,如图:


3.我在Android Studio里选择Open一个别项目,然后运行提示说
Error:failed to find Build Tools revision 23.0.0
Install Build Tools 23.0.0 and sync project

如图:

解决办法:原因是Module下build.gradle中的buildToolsVersion不兼容导致,把它们替换为你项目中的即可,如图:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值