findViewById
. You can reference all views that have an ID with no risk of null pointer or class cast exceptions. These differences mean that incompatibilities between your layout and your code will result in your build failing at compile time rather than at runtime.android.useNewApkCreator=false
in your gradle.properties file.