title: Kotlin : Cannot find symbol class Fragment or other android classes
body: <p>I have a java fragment with viewPager in it..</p>
  
  <pre><code>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(); //&lt;-- Problem here
              Bundle args = new Bundle();
              args.putInt("index", i);
              fragment.setArguments(args);
              return fragment;
          }
  
      }
  }
  </code></pre>
  
  <p>Now I have another fragment which will be populated inside the above fragment and is written in kotlin like this :</p>
  
  <pre><code>class DeshFalView : Fragment(), DeshfalContract.View {
      //More code...
  }
  </code></pre>
  
  <p>I do not get any lint warning or error but when I try to run the app:</p>
  
  <p>But I get a error :</p>
  
  <p><strong>Error:(79, 37) error: cannot find symbol class DeshFalView</strong>   </p>
  
  <p>in the highlighted line above ..
  those two classes are inside same package as shown below <a href="https://i.stack.imgur.com/DYnIQ.png" rel="noreferrer"><img src="https://i.stack.imgur.com/DYnIQ.png" alt="enter image description here"></a></p>
  
  <p>Thanks in advance ...</p>