material-components / material-components/material-components-android
Android Studio crashes with error "File name too long" when opening the project
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 17.4k
- Forks
- 3.2k
- PR merge metrics
- No merged PRs in 30d
Description
**Description:** When I try to open this project on Android Studio, the IDE is crashing with the following error:
```
java.nio.file.FileSystemException: /home/USER/.cache/Google/AndroidStudio2021.2/external_build_system/material-components-android.a5d3228f/modules/material-components-android.testing.testing-java.testing-java-com.testing-java-com-google.testing-java-com-google-android.testing-java-com-google-android-material.testing-java-com-google-android-material-testapp.testing-java-com-google-android-material-te.xml: File name too long
```
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the crash when opening the project in Android Studio and inspect the reported external build system path under ~/.cache/Google/AndroidStudio2021.2. Use the FileSystemException and its unusually long filename as the initial investigation point. Done means the project opens without this crash and the reported filename-length failure no longer occurs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- build-system, mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100