我刚开始使用android演播室并在android上进行编程,我收到了以下错误:
信息:分级任务:app:generateDebugSources,:app:mockableAndroidJar,:app:prepareDebugUnitTestDependencies,:app:generateDebugAndroidTestSources 错误:无法将文件C:\User\alexa\Documents\Projectos\Blueprint A便aly盘\Mobile Application\Blueprint_App\MyApplication\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\24.2.1\res\drawable-xhdpi-v4\abc_list_selector_disabled_holo_light.9.png压缩到C:\User\alexa\Documents\Projectos\Blueprint A便alyish\Mobile Application\Blueprint_App\MyApplication\app\build\intermediates\res\merged\debug\drawable-xhdpi-v4\abc_list_selector_disabled_holo_light.9.png 错误:任务执行失败“:app:mergeDebugResources”。错误:无法将文件C:\User\alexa\Documents\Projectos\Blueprint A便aly盘\Mobile Application\Blueprint_App\MyApplication\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\24.2.1\res\drawable-xhdpi-v4\abc_list_selector_disabled_holo_light.9.png压缩到C:\User\alexa\Documents\Projectos\Blueprint A便alyish\Mobile Application\Blueprint_App\MyApplication\app\build\intermediates\res\merged\debug\drawable-xhdpi-v4\abc_list_selector_disabled_holo_light.9.png
我该如何解决这个问题?
发布于 2016-12-27 19:17:56
不幸的是,这里的问题是项目的路径。
请将其移动到短路径,如- C:\Users\alexa\Documents\YourProject。
我以前遇到过这个问题,在将项目位置移到一条很短的路径之后,它起了作用。
很奇怪,但我只知道解决办法。
发布于 2016-12-27 19:20:56
清洁工程。
Build > Clean Project 另一种选择是项目部分的goto build.gradle并降级分级版本。
dependencies {
classpath 'com.android.tools.build:gradle:x.x.x'
}https://stackoverflow.com/questions/41350850
复制相似问题