Answer the question
In order to leave comments, you need to log in
How to write dependencies in gradle?
There is a gradle build task - a project is downloaded that has problems, and you need to fix all of them so that gradle starts building. The following error is given:
error: package com.opencsv.bean does not exist
import com.opencsv.bean.CsvToBeanBuilder;
As far as I understand, you need to insert a dependency into gradle.build.
I try to insert it like this: implementation("com.opencsv:bean")
And like this: implementation("com.opencsv:bean:CsvToBeanBuilder")
He doesn’t like everything, writes that he doesn’t can find it anywhere.
So what am I doing wrong?
Answer the question
In order to leave comments, you need to log in
Go to mvnrepository Look
for your dependency.
Choose a version: opencsv
And there will be pieces of code that you just need to copy and paste into your build configuration.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question