question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[RN 0.44] Build failed: TouchEvent.obtain Arguments

See original GitHub issue
node_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:closed
  • Created 6 years ago
  • Reactions:8
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
willdawsonmecommented, May 5, 2017

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?

1reaction
fredjenscommented, Sep 3, 2017

This is still not fixed. I will make a new PR.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found