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
> 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不兼容导致,把它们替换为你项目中的即可,如图: