Closed nurlan-aliyev closed 2 years ago
same problem.
repositories {
mavenCentral()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
google()
maven ("https://jitpack.io")
}
dependencies {
// Note, if you develop a library, you should use compose.desktop.common.
// compose.desktop.currentOs should be used in launcher-sourceSet
// (in a separate module for demo project and in testMain).
// With compose.desktop.common you will also lose @Preview functionality
implementation(compose.desktop.currentOs)
implementation("com.github.jeziellago", "compose-markdown", "0.2.6")
}
Could not resolve com.github.jeziellago:compose-markdown:0.2.6.
Required by:
project :
Possible solution:
I get this error (maybe the "TAG" version is not on point?): Failed to resolve: com.github.jeziellago:compose-markdown:TAG
Hello @nurlan-aliyev,
You need replace TAG
to the tag version number, like 0.2.6
:
com.github.jeziellago:compose-markdown:0.2.6
For any other problems with dependency resolution, check this comment: https://github.com/jeziellago/compose-markdown/issues/11#issuecomment-915175441
same problem.
- cloned fresh kotlin desktop-compose repository
- added maven repository:
repositories { mavenCentral() maven("https://maven.pkg.jetbrains.space/public/p/compose/dev") google() maven ("https://jitpack.io") }
- added dependency
dependencies { // Note, if you develop a library, you should use compose.desktop.common. // compose.desktop.currentOs should be used in launcher-sourceSet // (in a separate module for demo project and in testMain). // With compose.desktop.common you will also lose @Preview functionality implementation(compose.desktop.currentOs) implementation("com.github.jeziellago", "compose-markdown", "0.2.6") }
- got the error:
Could not resolve com.github.jeziellago:compose-markdown:0.2.6. Required by: project : Possible solution: - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html
Hi @Nehoko,
At the moment, compose-markdown
works only with android Jetpack Compose.
Getting the same type of error, says cannot resolve "project-link:0.2.6"
Maybe I'm not doing it correctly?
Getting the same type of error, says cannot resolve "project-link:0.2.6"
Maybe I'm not doing it correctly?
If you're trying it on kotlin desktop-compose, it'll doesn't work. Only works in android projects.
I want to develop an Android app, not a desktop one
I want to develop an Android app, not a desktop one @nurlan-aliyev, try to follow these steps:
- Open the file
settings.gradle
(it looks like that)dependencyResolutionManagement { repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositories { google() mavenCentral() // add jitpack here 👇🏽 maven { url 'https://jitpack.io' } ... } } ...
- Sync the project
- Add
compose-markdown
dependencydependencies { implementation 'com.github.jeziellago:compose-markdown:0.2.6' }
It works now, thanks a lot, I was adding maven to project:build.gradle that was the error
same problem.
- cloned fresh kotlin desktop-compose repository
- added maven repository:
repositories { mavenCentral() maven("https://maven.pkg.jetbrains.space/public/p/compose/dev") google() maven ("https://jitpack.io") }
- added dependency
dependencies { // Note, if you develop a library, you should use compose.desktop.common. // compose.desktop.currentOs should be used in launcher-sourceSet // (in a separate module for demo project and in testMain). // With compose.desktop.common you will also lose @Preview functionality implementation(compose.desktop.currentOs) implementation("com.github.jeziellago", "compose-markdown", "0.2.6") }
- got the error:
Could not resolve com.github.jeziellago:compose-markdown:0.2.6. Required by: project : Possible solution: - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html
Hi @Nehoko, At the moment,
compose-markdown
works only with android Jetpack Compose.
Is it really the case? Error message telling me that gradle cannot find package but nothing about supporting platform
same problem.
- cloned fresh kotlin desktop-compose repository
- added maven repository:
repositories { mavenCentral() maven("https://maven.pkg.jetbrains.space/public/p/compose/dev") google() maven ("https://jitpack.io") }
- added dependency
dependencies { // Note, if you develop a library, you should use compose.desktop.common. // compose.desktop.currentOs should be used in launcher-sourceSet // (in a separate module for demo project and in testMain). // With compose.desktop.common you will also lose @Preview functionality implementation(compose.desktop.currentOs) implementation("com.github.jeziellago", "compose-markdown", "0.2.6") }
- got the error:
Could not resolve com.github.jeziellago:compose-markdown:0.2.6. Required by: project : Possible solution: - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html
Hi @Nehoko, At the moment,
compose-markdown
works only with android Jetpack Compose.Is it really the case? Error message telling me that gradle cannot find package but nothing about supporting platform
Did you follow these steps https://github.com/jeziellago/compose-markdown/issues/12#issuecomment-924436370 and got the same problem?
Closing this issue. Let me know if you're having problems yet.
I get this error (maybe the "TAG" version is not on point?): Failed to resolve: com.github.jeziellago:compose-markdown:TAG