I have just recently dipped toes in the React Native mobile development on Android (Android Studio, Gradle). As I was setting up the development environment, I got some build error (License agreement missing). Fixed that, wrote down how to fix it. Another member of my team set up his environment, different error (annotation library is missing).
As I learned, everyone who has touched this simply have a different error, specific to their machine, depending on whether it's Tuesday or if they place their coffee mug on the left or the right side of their keyboard.
It's not realistic to be chasing build errors everyday. What's the strategies I can employ to prevent these sort of issues? (package lock down? android version lock down? lock down the SDK version?) Is there a way to lock down the development environment so that a new member can set up their development environment without constant error chasing?
Or is this even realistic with React Native development on Android? Any wisdom is appreciated.