Attempt to invoke virtual method 'void com.facebook.react.views.textinput.ReactEditText$InternalKeyListener.setInputType(int)' on a null object reference
See original GitHub issuePlease provide all the information requested. Issues that do not follow this format are likely to stall.
Description
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:
- Created 2 years ago
- Reactions:7
- Comments:27 (2 by maintainers)
Top 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 >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
I have the same issue. It was caused by
node_modules/react-native-audio/android/build.gradle
. Change the version from+
to1.3.0
fixed the issue for me.1.4.0-alpha02
may also work.I got it to work again by setting this in my dependencies. (I had to downgrade multidex as well)