when I'm running react-native run-android it shows "node_modules/@react-native-community/cli-platform-android/native_modules.gradle' line: 206 "
Cannot get property 'packageName' on null object
need help!
Are you using the newest version of CLI?
Note that, you shouldn't be using global installation of react-native. Try to run in your project directory:
npx react-native run-android
@mrwisu I tried your method " npx react-native run-android " in project directory but nothing change, facing same error.
What version of react-native cli are you using?
$ npx react-native --version
3.0.0-alpha.7
See:
https://github.com/react-native-community/cli#updating-the-cli
The version i got after this command "$ npx react-native --version" is : react-native-cli: 2.0.1
by updating the Cli I got:
[email protected] /home/hami/GuessNum
└─┬ [email protected]
└── @react-native-community/[email protected]
@thymikee error still exists it is'nt reoslve yet
Please follow the instructions and update the CLI to point to version alpha.7. I can't fix your lock file.
yes I updated to the latest version but it still showing the old one
Maybe you're behind a proxy, where the version is not updated yet? alpha.7 is published to npm, so it's definitely some kind of network caching.
last time I update from this source "https://www.npmjs.com/package/@react-native-community/cli-platform-android/v/3.0.0-alpha.7 ", so what should I do now to update this to the latest version?
Please regenerate your lock file (e.g. remove it and run again) if you have issues. It's not this package fault, that npm can't fetch it for you, can't do anything about that.