I have an include like:
The include layout looks like (te
I had the same problem. I found out that I used a wrong function with the same name with 2 parameters as following:
public void onCreate(@Nullable Bundle savedInstanceState, @Nullable PersistableBundle persistentState) {
super.onCreate(savedInstanceState, persistentState);
setContentView(R.layout.activity_ble_connecting);
//findViewByid() => wrong
}
correct function with only one parameters:
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_ble_connecting);
//findViewByid() => correct
}