你好當我嘗試加載我的應用程序(web視圖與AD瀏覽)了,我看到一個白色的屏幕什麼都沒有發生這種情況時,我試圖讓AD瀏覽工作的Android工作室白屏了
MainActivity.xml
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:ads="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
tools:context="danilkp1234.com.pokemondamagecalculator.MainActivity">
<include layout="@layout/content_main" />
<com.google.android.gms.ads.AdView
android:id="@+id/adView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="false"
android:layout_centerHorizontal="true"
android:layout_alignParentBottom="true"
ads:adSize="BANNER"
ads:adUnitId="@string/banner_ad_unit_id">
</com.google.android.gms.ads.AdView>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@id/adView"
android:layout_alignParentTop="true"
android:orientation="vertical">
<WebView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/webview">
</WebView>
</LinearLayout>
</android.support.design.widget.CoordinatorLayout>
請幫助我,如果你需要更多的信息eks build.gradle
請,[考慮尋找如何加載廣告(https://firebase.google.com/docs/admob/android/quick-start) –