Unable to clean project in Android Studio

后端 未结 22 1306
醉梦人生
醉梦人生 2020-12-17 07:49

OS version: Ubuntu 14.04 LTE 64 Bit

Java JRE/JDK version: Oracle JDK 1.8.0_11

Project directory is on a NTFS based drive.

Whenever I try to clean my

相关标签:
22条回答
  • 2020-12-17 08:22

    I solved it by Upgrading gradle version in build.gradle(project)

    0 讨论(0)
  • 2020-12-17 08:23

    I had a similar problem, when I was trying to debug my first android app. If you are running Android Studio on windows, I just restarted the Android studio and I did run Android Studio as Administrator which fixed the issue.

    0 讨论(0)
  • 2020-12-17 08:24

    1) Go To File > Settings > Build, Execution, Deployment > Instant Run > Uncheck this Check box (Enable Instant Run to hot swap code).

    2) Restart your android studio

    0 讨论(0)
  • 2020-12-17 08:27

    On Linux this could happen if you have a locked directories that prevents Android Studio from Deleting files.

    you can run the Following command on Terminal:

    sudo chown -R $USER: $HOME
    

    Then try to rebuild --> Works for me

    0 讨论(0)
提交回复
热议问题