[RN 0.44] Build failed: TouchEvent.obtain Arguments
See original GitHub issuenode_modules\react-native-svg\android\src\main\java\com\horcrux\svg\SvgView.java:123: error: method obtain in class TouchEvent cannot be applied to given types;
TouchEvent.obtain(
^
required: int,TouchEventType,MotionEvent,long,float,float,TouchEventCoalescingKeyHelper
found: int,TouchEventType,MotionEvent,float,float,TouchEventCoalescingKeyHelper
reason: actual and formal argument lists differ in length
1 error
:react-native-svg:compileReleaseJavaWithJavac FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':react-native-svg:compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:8
- Comments:5 (1 by maintainers)
Top Results From Across the Web
react-native-pathjs-charts/CHANGELOG.md at master - GitHub
Fix the RN 0.46 and above incompatibility issues caused by React Native SVG ... Compilation error with RN 0.44 (incorrect arguments to TouchEvent.obtain)...
Read more >TouchEvent - Web APIs | MDN
The TouchEvent interface represents an UIEvent which is sent when the state of contacts with a touch-sensitive surface changes.
Read more >How do I programmatically create a TouchEvent in Chrome 41?
Uncaught DOMException: Failed to execute 'createEvent' on 'Document': The provided event type ('TouchEvent') is invalid. I saw Creating and firing touch events ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For those wondering, it looks like this was fixed in https://github.com/react-native-community/react-native-svg/commit/2fd178da2872a169e13100308e0cff524197e26a and a new version published to npm (5.1.8). Is that right, @magicismight?
This is still not fixed. I will make a new PR.