I created an app which is used as core for onDemand delivery.
One of the module have dataBinding enabled and when I start an activity from that module the app crashes with
java.lang.NullPointerException
ActivityLoginToVaultBinding binding = DataBindingUtil.setContentView(this, R.layout.activity_login_to_vault);
binding is returning null.
the layout activity_login_to_vault contains as parent.
I need to mentions that is happening only for on demand delivery.
Here's the culprit in my onDemand module's AndroidManifest.xml. I initially had it as false when the binding nullPointer happened. Changing it to true, fixed the issue!
<dist:fusing dist:include="true" />
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.