Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Xamarin.Google.Android.Vending.Expansion.Downloader has an undeclared dependency on Xamarin.Android.Support.V4 #1321

Open
pjt33 opened this issue Feb 4, 2022 · 0 comments

Comments

@pjt33
Copy link

pjt33 commented Feb 4, 2022

A project using Xamarin.Google.Android.Vending.Expansion.Downloader crashed, writing the following to logcat:

Java.Lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/app/NotificationCompat$Builder; ---> Java.Lang.ClassNotFoundException: android.support.v4.app.NotificationCompat$Builder
   --- End of inner exception stack trace ---
  --- End of managed Java.Lang.NoClassDefFoundError stack trace ---
java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/app/NotificationCompat$Builder;
	at com.google.android.vending.expansion.downloader.impl.DownloadNotification.<init>(DownloadNotification.java:207)
	at com.google.android.vending.expansion.downloader.impl.DownloaderService.onCreate(DownloaderService.java:1192)
	at android.app.ActivityThread.handleCreateService(ActivityThread.java:4661)
	at android.app.ActivityThread.access$1700(ActivityThread.java:301)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2196)
	at android.os.Handler.dispatchMessage(Handler.java:106)
	at android.os.Looper.loop(Looper.java:246)
	at android.app.ActivityThread.main(ActivityThread.java:8653)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)
Caused by: java.lang.ClassNotFoundException: android.support.v4.app.NotificationCompat$Builder
	... 11 more

I added a dependency on Xamarin.Android.Support.V4 to the project, and that fixed it. It seems that the nuspec for Xamarin.Google.Android.Vending.Expansion.Downloader should declare a dependency on Xamarin.Android.Support.V4.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant