姬長信(Redy)

Android Studio:“执行失败的任务’:app:me…


我在当前项目中添加了Google Play服务作为依赖项.
如果我将项目保存在C:驱动器上,
同步项目时出现以下错误:
Error: Execution failed for task ':app:mergeDebugResources'.
       > Error: Failed to run command:
       C:/Program Files (x86)/Android/android-studio/sdk/build-tools/android-4.4.2/aapt.exe s -i C:/Users/ashokp/Desktop/Studio/AndroidV2SDK_AndroidStudioFormat/Google Play
       Services/SampleApplication/AndroidV2SDKSampleApp_GooglePlayServices/app/build/exploded-aar/com.google.android.gms/play-services/4.3.23/res/drawable-hdpi/common_signin_btn_text_focus_light.9.png -o
       C:/Users/ashokp/Desktop/Studio/AndroidV2SDK_AndroidStudioFormat/Google Play
       Services/SampleApplication/AndroidV2SDKSampleApp_GooglePlayServices/app/build/res/all/debug/drawable-hdpi/common_signin_btn_text_focus_light.9.png
       Error Code:
       42

仅当项目保存在C:驱动器上时才会发生这种情况.
如果我将它保存到其他驱动器,它可以正常工作.

还有其他人面临这个问题吗?
是什么导致这个?
我该如何解决/规避这个问题?