To deal with the warnings or errors thrown during build/compilation, Its best to understand the warnings/errors as sometimes the cause of warnings is the problem in some other files/dependencies/path/violation/exception but the warnings/errors shown at other lines. And the best way to understand some warnings /errors comes from practice and when you encounters the same. So, its the part of the experience!. Again highlighting, the nature of warnings/errors have not mandatory to have the concrete solution as the build process is not a singular process! and also the dependency changes as platform changes!
Happy Leaning! Continuous Learning!