Osama Jameel Ahmad
Osama Jameel Ahmad

Reputation: 129

Android Applications crashes only on first launch only after downloading from Google Play

My Application works fine if I install from sdcard using apk file. but on downloading from google play it crashes with toast

application shortcut is already available.

It crashes only on first session with the error log that I got from google play

java.lang.RuntimeException: Unable to instantiate receiver com.google.ads.InstallReceiver: java.lang.ClassNotFoundException: Didn't find class "com.google.ads.InstallReceiver" on path: DexPathList

Waiting for the Help. Thanks in Advance.

Upvotes: 1

Views: 820

Answers (1)

Programmer
Programmer

Reputation: 125445

Likely an Admob problem. Remove

<receiver 
  android:name="com.admob.android.ads.analytics.InstallReceiver" 
  android:exported="true"> 
  <intent-filter> 
  <action 
  android:name="com.android.vending.INSTALL_REFERRER" /> 
  </intent-filter> 
</receiver> 

from your Admob Plugin Manifest. Make sure your Ad works after removing that. If the problem is still there, delete the current Admob plugin folder and install the latest version from here. Just download only the one title GoogleMobileAds.unitypackage and import it into your project.

Upvotes: 1

Related Questions