Android Studio: Gradle build fails — Execution failed for task ':compileDebugAidl'

前端 未结 10 1896
孤街浪徒
孤街浪徒 2021-02-06 22:18

After changes to source and building with gradle in Android Studio (I/O preview) AI - 130.677228 the build fails with the following error:

Gradle: 
FAILURE: Buil         


        
10条回答
  •  别那么骄傲
    2021-02-06 22:52

    I was facing the same issue "Failed to execute the task: compileDebugaidl aidl/debug/".

    I saw further in Gradle Console for the specifics and it read as below:

    Failed to capture snapshot of output files for task 'prepareComAndroidSupportAppcompatV72103Library' during up-to-date check.

    Could not remove entry '/Users/..../.../.../..../build/intermediates/exploded-aar/com.android.support/appcompat-v7/21.0.3' from cache outputFileStates.bin (/Users/..../..../..../.gradle/2.2.1/taskArtifacts/outputFileStates.bin).

    I resolved it by deleting the outputFileStates.bin file from the terminal and allowed Gradle to recreate it.

    Hope it helps somebody.

提交回复
热议问题