material-components / material-components/material-components-android

Android Studio crashes with error "File name too long" when opening the project

Open
#3,382 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Issue: Build Failure
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.