Trying to run the provided example for Android, but the addListener event is not working
A
Arnab Saha
started a topic
almost 2 years ago
As per the sample example, when I add the add the addListener, it's not working and I'm unable to get the object being drawn. The code snippet I added is below:
We were using version 7 but the example you linked has version 4. We will try using version 4 and report back if we are able to make it work. Thanks for your response.
Arnab Saha
As per the sample example, when I add the add the addListener, it's not working and I'm unable to get the object being drawn. The code snippet I added is below:
The logcat output is given here: https://drive.google.com/file/d/0B6NEGT8_-cLBRlBQVnhiZU9pa2VVVUFVU2FQazRMLUd3c2Fv/view?usp=sharing
We don't seem to be doing anything wrong. Let us know how we can solve it.
Dear Arnab,
thank you for contacting us and your question.
Looking at your code, I do not see anything wrong.
In the log, you have the "Didn't find class "android.view.View$OnUnhandledKeyEventListener"" message. Based on what I could found on the internet, this error seems to occur because of using an old version of Android studio, or a too old version of the
ViewCompat
class: https://stackoverflow.com/questions/51782548/androidxappcompat-iart-error-android-view-viewonunhandledkeyeventlistener/52136900Best regards,
Olivier
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstOlivier @MyScript
Dear Arnab,
thank you for contacting us and your question.
Looking at your code, I do not see anything wrong.
In the log, you have the "Didn't find class "android.view.View$OnUnhandledKeyEventListener"" message. Based on what I could found on the internet, this error seems to occur because of using an old version of Android studio, or a too old version of the
ViewCompat
class: https://stackoverflow.com/questions/51782548/androidxappcompat-iart-error-android-view-viewonunhandledkeyeventlistener/52136900Best regards,
Olivier
Arnab Saha
We were using version 7 but the example you linked has version 4. We will try using version 4 and report back if we are able to make it work. Thanks for your response.