Google play services 5.0.77

前端 未结 10 1430
我寻月下人不归
我寻月下人不归 2021-01-30 04:23

From the 25th of june two unrelated apps that are using ads started to have this NPE

java.lang.NullPointerException
   at zo.a(SourceFile:172)
   at aeh.a(SourceF         


        
10条回答
  •  天涯浪人
    2021-01-30 04:42

    I have discovered a workaround.

    In my case, I was showing the ad from within a service running in a custom process. For example:

        
    

    In my AndroidManifest.xml, I then set the same android:process attribute for the declared AdActivity, and the problem went away.

        
    

    In the case of my application, I don't particularly care which process the ad activity runs in, so this workaround is sufficient. Hopefully this will be of some use to others.

提交回复
热议问题