Admob 在启动开始时使我的应用程序崩溃
Admob crashing my app at the beginning of launch
我决定安装 Admob。但是,在安装 Mobile Ads Unity 插件后,应用程序会在启动时启动并停止工作。我尝试了多种解决方案。
其中一个我在AndroidManifest中添加了以下代码:
<application>
<uses-library android:required="false" android:name="org.apache.http.legacy"/>
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="[ADMOB APPLICATION ID]"/> //I changed only this ID
</application>
但这没有用。我已经经历了很长时间。你能帮忙吗?恕我直言..
日志猫说 Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v4.util.ArraySet"
我使用的unity是2019.1.5f1版本。当 Admob 和 GooglePlay 添加相同的项目时,应用程序启动并在启动开始时停止工作。所以你需要这样做;
GoogleleMobileAds > Editor > GoogleMobileAdsDependencies
用Visual Studio打开它并更改此代码;
<androidPackage spec="com.google.android.gms:play-services-ads:18.0.0">
用这个代码改一下;
<androidPackage spec="com.google.android.gms:play-services-ads:17.1.1">
希望对你有所帮助
我决定安装 Admob。但是,在安装 Mobile Ads Unity 插件后,应用程序会在启动时启动并停止工作。我尝试了多种解决方案。
其中一个我在AndroidManifest中添加了以下代码:
<application>
<uses-library android:required="false" android:name="org.apache.http.legacy"/>
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="[ADMOB APPLICATION ID]"/> //I changed only this ID
</application>
但这没有用。我已经经历了很长时间。你能帮忙吗?恕我直言..
日志猫说 Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v4.util.ArraySet"
我使用的unity是2019.1.5f1版本。当 Admob 和 GooglePlay 添加相同的项目时,应用程序启动并在启动开始时停止工作。所以你需要这样做;
GoogleleMobileAds > Editor > GoogleMobileAdsDependencies
用Visual Studio打开它并更改此代码;
<androidPackage spec="com.google.android.gms:play-services-ads:18.0.0">
用这个代码改一下;
<androidPackage spec="com.google.android.gms:play-services-ads:17.1.1">
希望对你有所帮助