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.

Attempt to invoke virtual method 'void com.facebook.react.views.textinput.ReactEditText$InternalKeyListener.setInputType(int)' on a null object reference

See original GitHub issue

Please provide all the information requested. Issues that do not follow this format are likely to stall.

Description

image

React Native version:

Run react-native info in your terminal and copy the results here.

ystem:
    OS: macOS Mojave 10.14.6
    CPU: (8) x64 Intel(R) Core(TM) i7-3615QM CPU @ 2.30GHz
    Memory: 4.02 GB / 16.00 GB
    Shell: 5.3 - /bin/zsh
  Binaries:
    Node: 14.17.0 - ~/.nvm/versions/node/v14.17.0/bin/node
    Yarn: 1.22.10 - /usr/local/bin/yarn
    npm: 6.14.13 - ~/.nvm/versions/node/v14.17.0/bin/npm
    Watchman: 2021.06.07.00 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.10.1 - /Users/admin/.rvm/rubies/ruby-2.6.5/bin/pod
  SDKs:
    iOS SDK:
      Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1
    Android SDK:
      API Levels: 23, 27, 28, 29, 30
      Build Tools: 28.0.3, 29.0.2, 30.0.1, 30.0.2, 30.0.3
      System Images: android-29 | Automotive with Play Store Intel x86 Atom, android-29 | Android TV Intel x86 Atom, android-29 | Intel x86 Atom, android-29 | Intel x86 Atom_64, android-29 | Google APIs Intel x86 Atom, android-29 | Google APIs Intel x86 Atom_64, android-29 | Google Play Intel x86 Atom, android-29 | Google Play Intel x86 Atom_64, android-30 | Google APIs ARM 64 v8a, android-30 | Google APIs Intel x86 Atom, android-30 | Google APIs Intel x86 Atom_64, android-30 | Google Play ARM 64 v8a, android-30 | Google Play Intel x86 Atom, android-30 | Google Play Intel x86 Atom_64
      Android NDK: Not Found
  IDEs:
    Android Studio: 4.1 AI-201.8743.12.41.7042882
    Xcode: 11.3.1/11C504 - /usr/bin/xcodebuild
  Languages:
    Java: 1.8.0_265 - /usr/bin/javac
    Python: 2.7.10 - /usr/bin/python
  npmPackages:
    @react-native-community/cli: Not Found
    react: 16.13.1 => 16.13.1
    react-native: 0.63.4 => 0.63.4
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Steps To Reproduce

Random error, yesterday before I shutdown my computer the error appear.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:7
  • Comments:27 (2 by maintainers)

github_iconTop GitHub Comments

11reactions
halaeicommented, Jul 3, 2021

I have the same issue. It was caused by node_modules/react-native-audio/android/build.gradle. Change the version from + to 1.3.0 fixed the issue for me. 1.4.0-alpha02 may also work.

implementation 'androidx.appcompat:appcompat:1.3.0'
4reactions
GoodGameGabecommented, Jul 2, 2021

replace implementation 'androidx.appcompat:appcompat:+' with implementation 'androidx.appcompat:appcompat:1.3.0' it works for me .

this solution seemed to work for me. apparently there’s something to do with appcompat just like @gxxgcn said.

I got it to work again by setting this in my dependencies. (I had to downgrade multidex as well)

implementation "androidx.multidex:multidex:2.0.0"
implementation 'androidx.appcompat:appcompat:1.3.0'
Read more comments on GitHub >

github_iconTop Results From Across the Web

Attempt to invoke virtual method 'void com ... - Stack Overflow
Attempt to invoke virtual method 'void com.facebook.react.views.textinput.ReactEditText$InternalKeyListener.setInputType(int)' on a null ...
Read more >
InputType | Android Developers
EditorInfo, An EditorInfo describes several attributes of a text editing object that an input method is communicating with (typically an EditText), ...
Read more >
TextInput - React Native
The InputAccessoryView is rendered above the keyboard when this text input is focused. Type. string. keyboardAppearance. iOS. ​. Determines the ...
Read more >
TextInput - Litho
Because this component is backed by android EditText many native capabilities are applicable: Use InputFilter to set a text length limit or modify...
Read more >
Attempt To Invoke Virtual Method 'Void Android.Widget ...
Android Error [Attempt to invoke virtual method 'void android.app.ActionBar' on a null object reference]. I have a code module which implements viewpager.
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