Questions tagged [dependencies]

A dependency exists between two elements if changes to the definition of one element may cause changes to the other.

A dependency exists between two elements if changes to the definition of one element may cause changes to the other.

To quote from the 3rd edition of UML Distilled:

An element C (the client) depends on an element S (the supplier) if and only if changes to the definition of S may cause changes to C.

If the elements are classes, only the direct cause for change (i.e. not through a ripple effect) is called a dependency, i.e. the relation is not transitive.

For packages, C depends on S if a class in C depends on a class in S. Sometimes, the transitive closure is taken, i.e. the dependency of C on a package T can be caused by C depending on S depending on T via class dependencies.

References:

  1. Understanding Dependencies
  2. What is the difference between dependency and association?
12826 questions
5
votes
1 answer

Stack build hangs on GHC-8.6.4/Cabal-2.4.1.0 on Windows

My stack project build hangs on windows at the step related to Cabal. See output below C:\haskell\hrt\Comonad>stack ghc -- --version The Glorious Glasgow Haskell Compilation System, version 8.6.4 C:\haskell\hrt\Comonad>stack…
user11323942
5
votes
6 answers

I'm stuck when i try to use android-image-cropper:2.8.+

When i add to this line implementation 'com.theartofdev.edmodo:android-image-cropper:2.8.+' in my dependency it cause error * my error * Manifest merger failed : Attribute application@appComponentFactory…
ru hee
  • 103
  • 1
  • 1
  • 7
5
votes
2 answers

What are best practices for making Erlang releases?

I've been checking out Faxien+Sinan and Rebar, and the basic philosophy of Erlang OTP seems to be, install applications and releases on a single Erlang image instance. What are the best practices for keeping releases self contained? Is there a way…
jennykwan
  • 2,631
  • 1
  • 22
  • 33
5
votes
2 answers

Cannot resolve symbol RoomDatabase

I want to try out Room Persistence library, but after adding and downloading it with gradle, I can find most classes, except: import android.arch.persistence.room.Database; import android.arch.persistence.room.RoomDatabase; import…
user3156850
  • 85
  • 1
  • 7
5
votes
1 answer

Xcode sometimes removes linked library

When using different Frameworks in Xcode, the compiler and linker sometimes do not include that Framework in the library. The result is an immediate crash during the startup with the following message: dyld: Library not loaded:…
Martin Mlostek
  • 2,755
  • 1
  • 28
  • 57
5
votes
2 answers

How to exclude .jar file from .aar file

Is there a way to exclude .jar file from .aar file. My project is not running as I have one module that contains a .aar file in which Gson.jar is used as a library and I need it in my main app as well so I need to implement Gson dependency also.…
5
votes
1 answer

Install npm package globally that has peer dependency (not mentioned in package.json)

I am trying to install marktext globally using npm (after cloning the repository): npm install -g npm WARN dagre-d3-renderer@0.5.8 requires a peer of d3@^4.13.0 but none is installed. You must install peer dependencies yourself. How should I…
Porcupine
  • 5,885
  • 2
  • 19
  • 28
5
votes
1 answer

how to add the Gradle Kotlin dependency compile group: 'org.seleniumhq.selenium'?

What's the syntax to add Selenium as a dependency using the Gradle Kotlin DSL? error: thufir@dur:~/NetBeansProjects/HelloKotlinWorld$ thufir@dur:~/NetBeansProjects/HelloKotlinWorld$ gradle clean > Configure project : e:…
Thufir
  • 8,216
  • 28
  • 125
  • 273
5
votes
2 answers

Flutter Packages Get in VS Code failing

Recently got started with Flutter 1.0.0. flutter doctor -v no issues Been deploying to an iOS device no worries. Problem started when I tried to add Dart Packages via the pubspec.yaml file. No packages are installing and it outputs only exit code…
5
votes
2 answers

Dependency javax.mail:mail:1.4 not found

After I imported a maven project in IntelliJ IDEA, there are two errors in the pom.xml file: "Failed to read artifact descriptor for javax.mail:mail:jar:1.4" "Dependency javax.mail:mail:1.4 not found" Does anyone know the reason behind these…
Anca N.
  • 53
  • 1
  • 4
5
votes
1 answer

Pycharm and library root removal

I cannot remove D: as a library root and Pycharm keeps indexing forever. Any suggestions? Edit: D: is not in any path variable
Cioby Andrei
  • 77
  • 1
  • 7
5
votes
0 answers

NPM: don't install if parent directory's node_modules satisfies dependency

In an effort to save space, I've installed large packages in a common parent directory to all my projects. The scripts in these projects can refer to modules in this parent directory (see this in Node's documentation), yet npm install-ing in a…
concat
  • 3,107
  • 16
  • 30
5
votes
1 answer

Dependency conflicts on maven

If I have some libs that have others dependencies in different versions like this example: commons-logging-1.0.4.jar (omitted for conflict with 1.1.1) and commons-logging-1.1.1.jar. What´s the best practice about this, inform the exclusion of this…
ricardo
  • 621
  • 1
  • 11
  • 22
5
votes
0 answers

Gradle build error: play-services-ads-base is being requested by various other libraries with different version

I have checked some other similar errors but none of their solutions has solved mine. I can not build the project because I'm getting this exact error: The library com.google.android.gms:play-services-ads-base is being requested by various other…
adalpari
  • 3,052
  • 20
  • 39
5
votes
0 answers

Product dependency not found — only before Swift 4.2

I'm maintaining two Swift Package Manager projects on GitHub. One of them, DiceKit, depends on the other, ProtocolKit. They are also both using a swift-tools-version of 4.0. DiceKit has continuous integration set up with Travis CI, shown here. It is…
Sam
  • 2,350
  • 1
  • 11
  • 22