Closed jeluchu closed 4 years ago
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.
No problem, if you need more information you can ask me without problem, I am waiting for news
@Jeluchu I'm looking at the problem now. I have indeed seen that there is problem and I reproduced it.
Cool, it's been fast!
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.
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 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
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" }
}
}
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
Can you remove maven { url "https://maven.google.com" }
and try again. @Jeluchu
The same problem
ERROR: Failed to resolve: com.github.nedimf:maildroid:v0.0.4
Show in Project Structure dialog
Affected Modules: app
Can you show me how you are implementing in build.gradle @Jeluchu
https://stackoverflow.com/a/50389289/11555781
Try removing maven { url "https://maven.google.com" }
in fully
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
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)
https://jitpack.io/#nedimf/maildroid , it's active.
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
Oh damn, I haven't noticed it, but I was sure that was something in that string.
I have updated that to be v0.0.4 @Jeluchu so please update it in your project
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?
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