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

wrong dependency in new Build.gradle #90

Closed
Vishal-beep136 opened this issue Aug 12, 2021 · 5 comments
Closed

wrong dependency in new Build.gradle #90

Vishal-beep136 opened this issue Aug 12, 2021 · 5 comments

Comments

@Vishal-beep136
Copy link

How to implement in the new version of Build.Gradle

@AleP04
Copy link

AleP04 commented Aug 17, 2021

I successfully implemented the SmootBottomBar by modifying the settings.gradle file.
As the creator suggest you should add maven { url 'https://jitpack.io' } in both buildscript and allprojects, but when I tried to add it in allproject the Gradle Build Tool showed me an error. So I found that you have to:

  1. Add implementation in build.gradle (Module)
  2. Add maven { url 'https://jitpack.io' } in repositories of both buildscript and allproject (if the last one isn't present write it yourself)
    **3) Change che settings.gradle file, in particular:
    1. Commenting the repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) like this
      //repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    2. Changing repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) to
      repositoriesMode.set(RepositoriesMode.PREFER_PROJECT)

4)Resynch Gradle**

I hope this was helpful.
I made it work with "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.21"

AlePSDev

@ArleyPereira
Copy link

I did as specified above and gave an error

Could not find org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.21.
Required by:
    project :app
Search in build.gradle files

@hellofaizan
Copy link

hellofaizan commented Sep 7, 2021

I did as specified above and gave an error

Could not find org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.21.
Required by:
    project :app
Search in build.gradle files

I Got same issue and resolved it by adding this line in build.gradle ( Project ) in

buildscript {
......
dependencies {
.......
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.32"
}
}

@tandacedric
Copy link

tandacedric commented Sep 18, 2021

It work fine for me like this

My root build.gradle
image
My settings.gradle
image

@Deepak-Yadav-01
Copy link

@tandacedric this works for me also. Thank you

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

6 participants