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

Gradle sync error. Failed to resolve com.github.markusressel.KodeEditor. #29

Closed
yeppiidev opened this issue Jun 25, 2020 · 12 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@yeppiidev
Copy link

Describe the bug
When trying to sync Gradle.
Shows this error:

ERROR: Failed to resolve: com.github.markusressel.KodeEditor:library:v2.1.1
Show in Project Structure dialog
Affected Modules: app

To Reproduce
Steps to reproduce the behavior:

  1. Add maven { url "https://jitpack.io" } to build.gradle (project)
  2. Add def codeEditorVersion = "v2.1.1" implementation("com.github.markusressel.KodeEditor:library:${codeEditorVersion}") to dependencies in build.gradle(module app)
  3. Sync Gradle
  4. See error

Expected behavior
Successfully sync Gradle and add libraries to the project.

Screenshots
image

Smartphone

  • Device: [ OPPO A3S (CPH1853) ]
  • OS: [ Android 8.1 ]
@welcome
Copy link

welcome bot commented Jun 25, 2020

Thanks for opening your first issue here! 🎉

@markusressel
Copy link
Owner

Thx for the tip, I have to investigate this. I don't know why jitpack does this, but for now you can use

implementation("com.github.markusressel:KodeEditor:${codeEditorVersion}")

instead and it should work.

@markusressel markusressel self-assigned this Jun 25, 2020
@markusressel markusressel added the bug Something isn't working label Jun 25, 2020
@markusressel
Copy link
Owner

markusressel commented Jun 26, 2020

I think this is expected behavior, I have updated the README.

@yeppiidev
Copy link
Author

It is still showing sync error

@markusressel
Copy link
Owner

It works for me. Take a look at this build.gradle file, where I use it myself.

@yeppiidev
Copy link
Author

Yeah! Now it works! Thanks for making a library like this. Please also tell me how to use this with java. And also how to use kodeeditor with java

@markusressel
Copy link
Owner

I can not help you for java since I never use it, however it probably works if you fiddle around a bit.

@yeppiidev
Copy link
Author

Ok

@yeppiidev
Copy link
Author

So, how do I convert kotlin to java? I know, java and kotlin compile to same bytecode.

@yeppiidev
Copy link
Author

yeppiidev commented Jun 27, 2020

So, will you join my Organization? https://github.com/opencreeck

GitHub
We make apps for developers. OpenCreeck has 7 repositories available. Follow their code on GitHub.

@markusressel
Copy link
Owner

As I said previously, I can not assist you on how to deal with Java.
I have no interest in joining any organisation.

@yeppiidev
Copy link
Author

ok 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants