mohebifar / mohebifar/react-native-copilot
Execution failed for task ':react-native-svg:compileDebugJavaWithJavac'.
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.4k
- Forks
- 428
- PR merge metrics
- No merged PRs in 30d
Description
Current Behavior
I ran following comments for setup,
npm i react-native-copilot
npm i react-native-svg
react-native link react-native-svg
everything fine, but I'm getting build time error.
Task :react-native-svg:compileDebugJavaWithJavac FAILED
/Users/mahendran.m/workspace/ekart-stormtrooper/node_modules/react-native-svg/android/src/main/java/com/horcrux/svg/RenderableViewManager.java💯 error: cannot find symbol
START,
^
symbol: variable START
location: class RenderableViewManager.RenderableShadowNode
/Users/mahendran.m/workspace/ekart-stormtrooper/node_modules/react-native-svg/android/src/main/java/com/horcrux/svg/RenderableViewManager.java:101: error: cannot find symbol
END,
^
symbol: variable END
location: class RenderableViewManager.RenderableShadowNode
/Users/mahendran.m/workspace/ekart-stormtrooper/node_modules/react-native-svg/android/src/main/java/com/horcrux/svg/RenderableViewManager.java:119: error: cannot find symbol
MARGIN_START,
^
symbol: variable MARGIN_START
location: class RenderableViewManager.RenderableShadowNode
/Users/mahendran.m/workspace/ekart-stormtrooper/node_modules/react-native-svg/android/src/main/java/com/horcrux/svg/RenderableViewManager.java:120: error: cannot find symbol
MARGIN_END,
^
symbol: variable MARGIN_END
location: class RenderableViewManager.RenderableShadowNode
/Users/mahendran.m/workspace/ekart-stormtrooper/node_modules/react-native-svg/android/src/main/java/com/horcrux/svg/RenderableViewManager.java:130: error: cannot find symbol
PADDING_START,
^
symbol: variable PADDING_START
location: class RenderableViewManager.RenderableShadowNode
/Users/mahendran.m/workspace/ekart-stormtrooper/node_modules/react-native-svg/android/src/main/java/com/horcrux/svg/RenderableViewManager.java:131: error: cannot find symbol
PADDING_END,
^
symbol: variable PADDING_END
location: class RenderableViewManager.RenderableShadowNode
/Users/mahendran.m/workspace/ekart-stormtrooper/node_modules/react-native-svg/android/src/main/java/com/horcrux/svg/RenderableViewManager.java:134: error: cannot find symbol
BORDER_START_WIDTH,
^
symbol: variable BORDER_START_WIDTH
location: class RenderableViewManager.RenderableShadowNode
/Users/mahendran.m/workspace/ekart-stormtrooper/node_modules/react-native-svg/android/src/main/java/com/horcrux/svg/RenderableViewManager.java:135: error: cannot find symbol
BORDER_END_WIDTH,
^
symbol: variable BORDER_END_WIDTH
location: class RenderableViewManager.RenderableShadowNode
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
8 errors
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':react-native-svg:compileDebugJavaWithJavac'.
Compilation failed; see the compiler error output for details.
Expected behavior/code
no build error
Environment
- Device: [e.g. Android Simulator]
- OS: Android 9.0
react-native-copilot: "^2.4.4"react-native: "0.59.9",react-native-svg: "^9.5.1"
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
Reproduce the Android build using the reported react-native-copilot, react-native, and react-native-svg versions and the :react-native-svg:compileDebugJavaWithJavac task. Read node_modules/react-native-svg/android/src/main/java/com/horcrux/svg/RenderableViewManager.java around lines 100-135, where the missing symbols are reported. Done means the Android build completes without these compilation errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java, react-native
- Domain
- build-system, mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100