I am working on react native I am beginner and I facing problem to set the environment for react native. I have followed 'https://facebook.github.io/react-native/docs/getting-started' and installing on ubuntu but when I run the command 'react-native run-android' I get the errors: Starting a Gradle Daemon (subsequent builds will be faster) [adb]: adb server version (31) doesn't match this client (40); killing... [adb]: * daemon started successfully
Task :app:installDebug Installing APK 'app-debug.apk' on 'Nexus_6_API_27(AVD) - 8.1.0' for app:debug Installed on 1 device.
BUILD SUCCESSFUL in 37s 27 actionable tasks: 1 executed, 26 up-to-date Running /home/shafi/Android/Sdk/platform-tools/adb -s emulator-5554 reverse tcp:8081 tcp:8081 adb server version (31) doesn't match this client (40); killing... * daemon started successfully Starting the app on emulator-5554 (/home/shafi/Android/Sdk/platform-tools/adb -s emulator-5554 shell am start -n com.namal/com.namal.MainActivity)... Starting: Intent { cmp=com.namal/.MainActivity }