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
JavaBot
JavaBot2mo ago
This post has been reserved for your question.
Hey @Ferra! Please use /close or the Close 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.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
Baby
Baby2mo ago
Hello, I'm interested about this task.
Defective
Defective2mo ago
😂
Baby
Baby2mo ago
hello
Defective
Defective2mo ago
This is a help forum, don't make people pay you for you to help them
Baby
Baby2mo ago
I see sorry Okay! I deleted Hi, How are you doing now?
ayylmao123xdd
ayylmao123xdd2mo ago
and i help for free
ayylmao123xdd
ayylmao123xdd2mo ago
are you getting it from maven central or where the dependencies
dan1st
dan1st2mo ago
probably from the Google Maven repositories
Ferra
FerraOP2mo ago
Yes
ayylmao123xdd
ayylmao123xdd2mo ago
arent the dependencies you mentioned only in google maven
Ferra
FerraOP2mo ago
Yea I think so I'm not sure how to do that though
String
String2mo ago
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)
dan1st
dan1st2mo ago
you can add a <repository> block
String
String2mo ago
Ferra
FerraOP2mo ago
i see
String
String2mo ago
@Ferra to add onto that, you can do that in your pom.xml file and format your dependencies like this:
<!-- <dependencies> is where every single
<dependency> block is stored
-->
<dependencies>
<dependency>
<groupId>package.name.here</groupId>
<artifactId>ArtifactIDHere</artifactId>
<version>0.0.0-example</version>
</dependency>
</dependencies>
<!-- <dependencies> is where every single
<dependency> block is stored
-->
<dependencies>
<dependency>
<groupId>package.name.here</groupId>
<artifactId>ArtifactIDHere</artifactId>
<version>0.0.0-example</version>
</dependency>
</dependencies>
(btw, you can add more than one <dependency> block)
Ferra
FerraOP2mo ago
i do know how to add a dependancy block, but not how to summon the google maven dependencies
String
String2mo ago
can you show what you have tried to do so far?
Ferra
FerraOP2mo ago
No description
String
String2mo ago
-# 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 them
Ferra
FerraOP2mo ago
i did yes but i dont know how to add the google to the repositories
String
String2mo ago
then try what he recommeneded (if you havent already ofc)
ayylmao123xdd
ayylmao123xdd2mo ago
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
String
String2mo ago
thats quite a long list wazaaaaappp
dan1st
dan1st2mo ago
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 there
Ferra
FerraOP2mo ago
but where is that put?
dan1st
dan1st2mo ago
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
Ferra
FerraOP2mo ago
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
ayylmao123xdd
ayylmao123xdd2mo ago
<repositories>
<repository>
<id>google</id>
<name>Google Maven Repository</name>
<url>https://maven.google.com/</url>
</repository>
</repositories>
<repositories>
<repository>
<id>google</id>
<name>Google Maven Repository</name>
<url>https://maven.google.com/</url>
</repository>
</repositories>
forgot to mention once u add this u can get the dependencies u need from googles maven
JavaBot
JavaBot2mo ago
💤 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.

Did you find this page helpful?