-
Notifications
You must be signed in to change notification settings - Fork 24.8k
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
Description
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.0
-
Target Platform: Android
-
Development Operating System: macOS
-
Build tools:
compileSdkVersion 23
buildToolsVersion '25.0.0'
Steps to Reproduce
- Create a file in a deep folder (e.g.
/shared/components/Component/components/AnotherComponent/components/AnotherComponent/components/AnotherComponent/img/image.png
) - Require that file
- Run
assembleRelease
Expected Behavior
Successful assembly
Actual Behavior
Assembly fails when processing the file:
.../app/android/app/build/intermediates/res/merged/release/drawable-mdpi/shared_components_component_components_anothercomponent_components_anothercomponent_components_anothercomponent_img_image.png: error: Invalid filename. Unable to add.
:app:processReleaseResources FAILED
FAILURE: Build failed with an exception.
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:
- clone repo
npm install
- run
./android/assembleRelease
Canedo, LucasSanSilva, vovanmozg and mlazari
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