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

Failed to resolve: com.github.nedimf:maildroid:v0.0.4 #23

Closed
jeluchu opened this issue May 17, 2020 · 19 comments
Closed

Failed to resolve: com.github.nedimf:maildroid:v0.0.4 #23

jeluchu opened this issue May 17, 2020 · 19 comments

Comments

@jeluchu
Copy link

jeluchu commented May 17, 2020

Hello!
I went to update to v0.0.4 but I get this error, however v0.0.3 works correctly and without any problems, is the new version enabled for the Gradle?

ERROR: Failed to resolve: com.github.nedimf:maildroid:v0.0.4
Show in Project Structure dialog
Affected Modules: app

The application is programmed in Kotlin for Android and the Android Studio version is as follows:

Android Studio 3.6.3
Build #AI-192.7142.36.36.6392135, built on April 14, 2020
Runtime version: 1.8.0_212-release-1586-b04 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
GC: ParNew, ConcurrentMarkSweep
Memory: 4012M
Cores: 12
Registry: ide.new.welcome.screen.force=true
Non-Bundled Plugins: org.jetbrains.kotlin, com.google.services.firebase, wu.seal.tool.jsontokotlin

@nedimf
Copy link
Owner

nedimf commented May 17, 2020

So sorry, to hear that you had issue with a gradle, let me see what I can do.
Thank you for opening this issue and brining it to my intention.

@jeluchu
Copy link
Author

jeluchu commented May 17, 2020

No problem, if you need more information you can ask me without problem, I am waiting for news

@nedimf
Copy link
Owner

nedimf commented May 17, 2020

@jeluchu I'm looking at the problem now. I have indeed seen that there is problem and I reproduced it.

@jeluchu
Copy link
Author

jeluchu commented May 17, 2020

Cool, it's been fast!

@nedimf
Copy link
Owner

nedimf commented May 17, 2020

Ok, so problem is not in library, I have opened new project and test it and I saw there is problem. I went trough documentation and saw that I forgot to add
maven { url 'https://jitpack.io' }
Into my build root.gradle file so I have added it and that saved problem. I think you had the same issue. Try adding

	allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}

and then sync and see what happens that should solve your issue.

@nedimf nedimf closed this as completed May 17, 2020
@nedimf
Copy link
Owner

nedimf commented May 17, 2020

Although on second thought, I'm not sure how v0.0.3 is working?
Be free to tag me so I can see your message :)

@nedimf nedimf reopened this May 17, 2020
@jeluchu
Copy link
Author

jeluchu commented May 17, 2020

@nedimf I am currently using v0.0.3 and it works perfectly, about what you tell me about adding:
maven { url 'https://jitpack.io' }

I have it added, it is more this is all I have in that section:

allprojects {
    repositories {
        google()
        jcenter()
        maven { url "https://maven.google.com" }
        maven { url 'https://jitpack.io' }
    }
}

I changed the version number of the library to v0.0.4, and I got the error that I showed you at the beginning of the thread

@nedimf
Copy link
Owner

nedimf commented May 17, 2020

Oh, ok please add it before maven.google.com and let me know :)


allprojects {
    repositories {
        google()
        jcenter()
        maven { url 'https://jitpack.io' }
        maven { url "https://maven.google.com" }
    }
}

@jeluchu
Copy link
Author

jeluchu commented May 17, 2020

I just made the change that you have asked me, but it shows me the same error

ERROR: Failed to resolve: com.github.nedimf:maildroid:v0.0.4
Show in Project Structure dialog
Affected Modules: app

At first it seems that it starts to download the new library version and then it jumps this error as if that version did not exist

@nedimf
Copy link
Owner

nedimf commented May 17, 2020

Can you remove maven { url "https://maven.google.com" } and try again. @jeluchu

@jeluchu
Copy link
Author

jeluchu commented May 17, 2020

The same problem

ERROR: Failed to resolve: com.github.nedimf:maildroid:v0.0.4
Show in Project Structure dialog
Affected Modules: app

@nedimf
Copy link
Owner

nedimf commented May 17, 2020

Can you show me how you are implementing in build.gradle @jeluchu

@nedimf
Copy link
Owner

nedimf commented May 17, 2020

https://stackoverflow.com/a/50389289/11555781
Try removing maven { url "https://maven.google.com" } in fully

@jeluchu
Copy link
Author

jeluchu commented May 17, 2020

The library is implemented as follows:
implementation 'com.github.nedimf:maildroid:v0.0.4'

Previously it was:
implementation 'com.github.nedimf:maildroid:v0.0.3'

I have tried what you have sent me from the maven and that is still not the problem, since it shows me the same problem that I have mentioned before

ERROR: Failed to resolve: com.github.nedimf:maildroid:v0.0.4
Show in Project Structure dialog
Affected Modules: app

@jeluchu
Copy link
Author

jeluchu commented May 17, 2020

I just noticed that in your readme on the JitPack version card, v0.0.3 still comes out, I do not know if you have uploaded the version, since Android Studio does not recognize that there is a new version either (when there are new versions it underlines you the implementation)


nedim.co
Maildroid

🎉 Maildroid is a small robust android library for sending emails using SMTP server 🎉

Android Arsenal


JitPack Reddit Twitter Follow

@nedimf
Copy link
Owner

nedimf commented May 17, 2020

https://jitpack.io/#nedimf/maildroid , it's active.

@jeluchu
Copy link
Author

jeluchu commented May 17, 2020

I have already found the error!

Before
implementation 'com.github.nedimf:maildroid:v0.0.3'

After
implementation 'com.github.nedimf:maildroid:v.0.0.4'

If you look you not only changed the version number, you also added a dot after the v

v0.0.3 -> v.0.0.4

That's why Android Studio couldn't find dependency, now if it works for me and you have taken it, thank you very much for the help received, and also thank you for your work since it is great

@nedimf
Copy link
Owner

nedimf commented May 17, 2020

Oh damn, I haven't noticed it, but I was sure that was something in that string.

@nedimf nedimf closed this as completed May 17, 2020
@nedimf
Copy link
Owner

nedimf commented May 17, 2020

I have updated that to be v0.0.4 @jeluchu so please update it in your project

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