Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashes on Android as this depends on java.net.HttpClient that Android has removed #1

Open
ashishb opened this issue Mar 11, 2023 · 2 comments

Comments

@ashishb
Copy link

ashishb commented Mar 11, 2023

java.lang.NoClassDefFoundError: Failed resolution of: Ljava/net/http/HttpClient;
E      at com.github.yusufyilmazfr.podcast4j.service.category.Podcast4jCategoryServiceImpl.<init>(Podcast4jCategoryServiceImpl.java:24)
E      at com.github.yusufyilmazfr.podcast4j.factory.Podcast4jServiceFactory.with(Podcast4jServiceFactory.java:43)
E      at net.ashishb.androidmusicplayer.network.podcastindex.PodcastIndexService.<init>(PodcastIndexService.java:38)
E      at net.ashishb.androidmusicplayer.network.podcastindex.PodcastIndexService.getInstance(PodcastIndexService.java:26)
E      at net.ashishb.androidmusicplayer.controller.transformers.PodcastSearcher.lambda$listFilter$1(PodcastSearcher.java:69)
E      at net.ashishb.androidmusicplayer.controller.transformers.PodcastSearcher$$ExternalSyntheticLambda0.run(Unknown Source:4)
E      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:463)
E      at java.util.concurrent.FutureTask.run(FutureTask.java:264)
E      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:307)
E      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
E      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
@yusufyilmazfr
Copy link
Owner

Hi @ashishb, nice to see someone who is trying to use podcast4j.

Actually, I've no Android development experience so i couldn't think about Android support for HttpClient that is under the java.net.http.* package. I guess i've to change HttpClient dependency for Android compatible libraries.

@ashishb
Copy link
Author

ashishb commented Mar 21, 2023

Exactly. May be you can replace it with a HttpProvider that I can implement for Android?

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

No branches or pull requests

2 participants