I have a java fragment with viewPager in it.
public class FragmentWithViewPager extends Fragment {
private class ViewPagerAdapter extends FragmentStatePagerAdapter {
ViewPagerAdapter(FragmentManager fm) {
super(fm);
}
@Override
public Fragment getItem(int i) {
Fragment fragment = new DeshFalView();
Bundle args = new Bundle();
args.putInt("index", i);
fragment.setArguments(args);
return fragment;
}
}
}
Now I have another fragment that will be filled inside this fragment and written in kotlin as follows:
class DeshFalView : Fragment(), DeshfalContract.View {
}
I do not get a warning or lint error, but when I try to start the application:
But I get an error message:
Error: (79, 37) error: Cannot find DeshFalView character class
in the highlighted line above .. these two classes are inside the same package as shown below 
Thanks in advance...
source
share