想寫一個google map的程式練習
建立新專案後再MainActivity.java中R出現了紅字,下方的錯誤訊息顯示
> Error:Failed to crunch file C:\Users\scan\Downloads\AndroidClassroomTraining-master\Projects\Maps\Apptest2\app\build\intermediates\exploded-aar\com.google.android.gms\play-services-cast-framework\10.0.1\res\drawable-mdpi-v4\quantum_ic_pause_circle_filled_grey600_36.png into C:\Users\scan\Downloads\AndroidClassroomTraining-master\Projects\Maps\Apptest2\app\build\intermediates\res\merged\debug\drawable-mdpi-v4\quantum_ic_pause_circle_filled_grey600_36.png
和
**> Error:Execution failed for task ':app:mergeDebugResources'.
Error: Failed to crunch file C:\Users\scan\Downloads\AndroidClassroomTraining-master\Projects\Maps\Apptest2\app\build\intermediates\exploded-aar\com.google.android.gms\play-services-cast-framework\10.0.1\res\drawable-mdpi-v4\quantum_ic_pause_circle_filled_grey600_36.png into C:\Users\scan\Downloads\AndroidClassroomTraining-master\Projects\Maps\Apptest2\app\build\intermediates\res\merged\debug\drawable-mdpi-v4\quantum_ic_pause_circle_filled_grey600_36.png**
透過路徑我查詢了圖片是一張暫停(一般影片撥放的那種)的符號,我試過了Rebulid和Clear都無效,麻煩請各位大大協助了!
Google 「ANDROID studio failed to crunch file」的結果
前四名的答案都一樣
「路徑太長,把整個 project 搬個家(例:C:\projects)再試看看」