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

Unable to Import Composable #11

Closed
MrFlibbleUK opened this issue Sep 8, 2021 · 2 comments
Closed

Unable to Import Composable #11

MrFlibbleUK opened this issue Sep 8, 2021 · 2 comments
Labels
question Further information is requested

Comments

@MrFlibbleUK
Copy link

Hi, trying to import your composable into the latest version of Android Studio and the gradle build fails to find the repo.

https://jcenter.bintray.com/com/github/jeziellago/compose-markdown/0.2.6/compose-markdown-0.2.6.pom

This gives a 403 forbidden.

repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
}

dependencies {
implementation 'com.github.jeziellago:compose-markdown:0.2.6'
}

@jeziellago
Copy link
Owner

Hi @MrFlibbleUK,
Try to follow these steps:

  1. 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' }
       ...
    }
} 
...
  1. Sync the project
  2. Add compose-markdown dependency
dependencies {
        implementation 'com.github.jeziellago:compose-markdown:0.2.6'
}

@jeziellago jeziellago added the question Further information is requested label Sep 8, 2021
@MrFlibbleUK
Copy link
Author

Thanks Jez, noobie dev using the wrong gradle :) Fantastic composable, thanks for all your hard work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants