Icon files causing gradle build fail in Android Studio on OS X using Google Drive

后端 未结 3 1519
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-06 17:55

For a college course, I am required to use a Google Drive folder as my project location. The problem is that Google Drive makes my hidden OS X Icon files appear.

When I

3条回答
  •  甜味超标
    2021-02-06 18:54

    These are the solutions we developed, based on Hod's answer.

    Getting rid of all current Icon files

    1. Open a terminal window in the parent folder to your projects.
    2. To look for Icon files, execute: find . -name Icon\*
    3. If you get any results, execute: find . -name Icon\* -delete

    Automatically removing future Icon files

    1. Open a terminal window in the parent folder to your projects.
    2. Copy and paste in this incantation ( (adapted from https://stackoverflow.com/a/9625233/631051), which will delete Icon files every minute: (crontab -l 2>/dev/null; echo "*/1 * * * * find . -name Icon\* -delete") | crontab -

    To undo, enter the following incantation (adapted from https://askubuntu.com/a/719877/43296) in a terminal window (in any folder): crontab -l | grep -v Icon | crontab -

    Assumptions

    All of this assumes that you have:

    • no files whose names start with Icon in your projects hierarchy that you want to keep.
    • no cron jobs involving Icon that you want to keep.

提交回复
热议问题