The part that gets written android both of them turn red and it does not matter
import com.google.android.gms.ads.AdRequest;
import com.google.android.gms.ads.AdView;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.seamusdawkins.R;
import com.google.android.gms.ads.AdRequest;
import com.google.android.gms.ads.AdView;
public class FirstFragment extends Fragment {
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
View view = inflater.inflate(R.layout.fragment_home, container, false);
AdView mAdView = (AdView) view.findViewById(R.id.ad);
AdRequest adRequest = new AdRequest.Builder().build();
mAdView.loadAd(adRequest);
return view;
}
}
I've tried importing by another way by pressing alt + enter in Adview but the import option does not appear