从github上面clone一份代码,直接import到AS当中;出现了下面的错误信息:
Error:Execution failed for task ':Application:mergeDebugResources'.
> Error: com.android.builder.internal.aapt.AaptException: Failed to crunch file C:\Users\Administrator\Desktop\android-BluetoothChat-master\android-BluetoothChat-master\Application\build\intermediates\exploded-aar\com.android.support\appcompat-v7\25.0.1\res\drawable-hdpi-v4\abc_textfield_search_activated_mtrl_alpha.9.png into C:\Users\Administrator\Desktop\android-BluetoothChat-master\android-BluetoothChat-master\Application\build\intermediates\res\merged\debug\drawable-hdpi-v4\abc_textfield_search_activated_mtrl_alpha.9.png
发现原来是在Windows中不允许存在比较长的路径名称所造成的,路径长度必须低于240个字符,遂把路径改短后,AS顺利编译通过