Notifications for Android
I am trying to create a java app on android using Maven and VS Code, but cant figure out how to get them to work. All examples on the internet use the Gradle, but i have already been using maven for the project for quite a while.
The attempts to use androidx.core core or core-ktx all result in errors for not existing.
32 Replies
⌛
This post has been reserved for your question.
Hey @Ferra! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
Hello,
I'm interested about this task.
😂
hello
This is a help forum, don't make people pay you for you to help them
I see
sorry
Okay!
I deleted
Hi,
How are you doing now?
and i help for free
are you getting it from maven central or where
the dependencies
probably from the Google Maven repositories
Yes
arent the dependencies you mentioned only in google maven
Yea I think so
I'm not sure how to do that though
sorry i need to play catch up, but what exactly do you not know how to do? (im assuming youre having issues with getting the dependencies to work)
you can add a <repository> block
✅
i see
@Ferra to add onto that, you can do that in your
pom.xml
file and format your dependencies like this:
(btw, you can add more than one <dependency>
block)i do know how to add a dependancy block, but not how to summon the google maven dependencies
can you show what you have tried to do so far?

-# i just realized i read dannys comment wrong mb
did you try to refresh your dependencies after you added them to the
pom.xml
file?
bc when you add new dependencies you have to refresh themi did yes
but
i dont know how to add the google to the repositories
then try what he recommeneded (if you havent already ofc)
wazaaaaaaaaaaaaaaaaaaaaaaaaap
here i come to the rescue
https://maven.google.com/web/index.html
here
u can steal stuff from here
the dependencies u need
thats quite a long list
wazaaaaappp
Just like <dependencies>, you can have a <repositories> section
that section describes repositories where Maven downloads the artifacts from
you can put any number of
<repository>
s in therebut where is that put?
for example above your <dependencies>
on the same level
and each repository has an id (chosen by you), name (chosen by you) and URL (where it gets the artifacts from)
not inside <dependencies> but outside
where do i find the URL
is it https://maven.google.com/web/index.html?
?
every time i add the repository it no longer detects any of my files as classpath files
forgot to mention
once u add this u can get the dependencies u need
from googles maven
💤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping
.
Warning: abusing this will result in moderative actions taken against you.