Unable to clean project in Android Studio

后端 未结 22 1303
醉梦人生
醉梦人生 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:00

    This fixed my problem.

    Thanks to Gal's answer (https://stackoverflow.com/a/39904628/2870404).

    In windows, using Windows file explorer,

    right-click on the directory, click properties on the context menu that will appear, then uncheck the "Read Only" attribute. After that, click the "Apply" to apply changes.

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

    I had the same problem.

    You need to go to the source file directly. Close the studio and go to the path the issue is located at and delete the folder there.

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

    Clean project from Android Studio Terminal using this command 'gradlew clean'.

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

    1) first run cordova clean cammand

    ionic cordova clean

    2)After that run build command

    ionic cordova build android

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

    Thanks to Gal's answer (https://stackoverflow.com/a/39904628/2870404).

    In windows, using Windows file explorer,

    1. right-click on the directory,
    2. click properties on the context menu that will appear,
    3. then uncheck the "Read Only" attribute.
    4. After that, click the "Apply" to apply changes.
    0 讨论(0)
  • 2020-12-17 08:04

    none of above answers didn't work for me, but change permistion works:

    chown user:staff ../project_dir
    find ../project_dir -type d -exec chmod 775 {} \;
    find ../project_dir -type f -exec chmod 664 {} \;
    
    0 讨论(0)
提交回复
热议问题