-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Long image filenames result in assembleRelease crash #16263
Copy link
Copy link
Closed
Labels
BugPlatform: AndroidAndroid applications.Android applications.Resolution: LockedThis issue was locked by the bot.This issue was locked by the bot.📮Known IssuesThis indicates an issue that refers to a bug or limitation of RN that is not currently being handledThis indicates an issue that refers to a bug or limitation of RN that is not currently being handled
Metadata
Metadata
Assignees
Labels
BugPlatform: AndroidAndroid applications.Android applications.Resolution: LockedThis issue was locked by the bot.This issue was locked by the bot.📮Known IssuesThis indicates an issue that refers to a bug or limitation of RN that is not currently being handledThis indicates an issue that refers to a bug or limitation of RN that is not currently being handled
Type
Fields
Give feedbackNo fields configured for issues without a type.
Is this a bug report?
Yes
Have you read the Contributing Guidelines?
Yes
Environment
react-native -v: 0.45.1node -v: v8.2.1npm -v: 5.3.0Target Platform: Android
Development Operating System: macOS
Build tools:
compileSdkVersion 23
buildToolsVersion '25.0.0'
Steps to Reproduce
/shared/components/Component/components/AnotherComponent/components/AnotherComponent/components/AnotherComponent/img/image.png)assembleReleaseExpected Behavior
Successful assembly
Actual Behavior
Assembly fails when processing the file:
It's probably the long filename that cannot be handled by Java. When I undeepen the structure, the problem disappears. If a hash of the path would be used as a filename, this problem would not exist.
Reproducible Demo
https://github.com/joachimroeleveld/rn-issue-15509
Steps to reproduce:
npm install./android/assembleRelease