English 中文(简体)
java.lang.RuntimeException: Unable to have Provide com.google.android.gms.ads.MobileAdsInitProvider
原标题:java.lang.RuntimeException: Unable to get provider com.google.android.gms.ads.MobileAdsInitProvider

I m 在团结中发展流动游戏。 我安装了Admob,以补充我的游戏,并撰写必要的法典。 我使用了Admob在ID各科提供的测试识别器。 比赛顺利在团结编辑处进行。 然而,当我转来电话时,测试台没有显示。 现在,当我试图驾车时,我甚至可以开车。 我收到以下错误摘要:

案文:

java.lang.RuntimeException: Unable to get provider
 com.google.android.gms.ads.MobileAdsInitProvider: 
java.lang.IllegalStateException:
 * Invalid application ID. Follow instructions here:
 *
 * https://googlemobileadssdk.page.link/admob -android-update-manifest 
 * to find your app ID.
 *
 * Google Ad Manager publishers should follow instructions here:
 * https://googlemobileadssdk.page.link/ad-manager -android-update-manifest.

 at android.app.ActivityThread.installProvider(ActivityThread.java:7194)
 at android.app.ActivityThread.installContentProviders(ActivityThread.java:6672)
 at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6567)
 at android.app.ActivityThread.access$1400(ActivityThread.java:224)
 at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1887)
 at android.os.Handler.dispatchMessage(Handler.java:107)
 at android.os.Looper.loop(Looper.java:224)
 at android.app.ActivityThread.main(ActivityThread.java:7562)
 at java.lang.reflect.Method.invoke(Native Method)
 at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539)
 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)
Caused by: java.lang.IllegalStateException:
 *******************************
 * Invalid application ID. Follow instructions here:
 *
 * https://googlemobileadssdk.page.link/admob -android-update-manifest
 * to find your app ID.
 *
 * Google Ad Manager publishers should follow instructions here:
 * https://googlemobileadssdk.page.link/ad-manager -android-update-manifest.
 *
 ******************

 at p0.e3.attachInfo(Unknown Source:99)
 at com.google.android.gms.ads.MobileAdsInitProvider.attachInfo(Unknown Source:2)
 at android.app.ActivityThread.installProvider(ActivityThread.java:7189)
 ... 10 more

如何解决这一错误?

测试台出现在团结编辑上,但没有出现在我的安乐器上。 在努力解决这一问题时,我甚至不能再打开游戏。

问题回答

在电文错误中,它说“Invalid application ID ”。

a) Are you add the app Id to your unity project ? if you haven t done this, you shuld copy the app id from admob and add to your unity project. and here is the steps for this:

  1. go to admob and choose your current project.
  2. go to Application settings and in this tab you will find the Application ID. Copy this id.
  3. Open your unity project. And go to Assets -> Google Mobile Ads -> Settings tab. In this tab you will find "Google Mobile Ads App Id". Paste the app id which you copied in step 2.
  4. Now build your project again and check for result.

b) 也许,如果你补充该项目,那是错的。





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签