1
The part that gets written android both turn red and no 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 to care otherwise by squeezing alt + enter no Adview however no import option appears
give a look at this link http://stackoverflow.com/questions/39675100/error-cant-resolve-symbol-adrequest-and-adview seems to be your problem
– Daniel Gentil
Gradle? Compile 'com.google.firebase:firebase-ads:9.6.1'
– viana
It was the same dependencies kk thank you
– Paiva
@Paiva was able to solve the problem or need more information. Did the answer below help?! hehe
– viana