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

Could not find com.gu:option:1.3. #88

Closed
jaredsburrows opened this issue Apr 10, 2016 · 7 comments
Closed

Could not find com.gu:option:1.3. #88

jaredsburrows opened this issue Apr 10, 2016 · 7 comments

Comments

@jaredsburrows
Copy link
Contributor

Based off #86, since I can't use @aar, I am using compile 'net.rdrei.android.dirchooser:library:3.2' without the @aar. I get the following error, see guardian/Option#2:

$ gradle runDebug
Starting a new Gradle Daemon for this build (subsequent builds will be faster).
Configuration on demand is an incubating feature.

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project '<>'.
> Could not resolve all dependencies for configuration ':_debugCompile'.
   > Could not find com.gu:option:1.3.
     Searched in the following locations:
         https://plugins.gradle.org/m2/com/gu/option/1.3/option-1.3.pom
         https://plugins.gradle.org/m2/com/gu/option/1.3/option-1.3.jar
         https://jitpack.io/com/gu/option/1.3/option-1.3.pom
         https://jitpack.io/com/gu/option/1.3/option-1.3.jar
         file:/<>/.m2/repository/com/gu/option/1.3/option-1.3.pom
         file:/<>/.m2/repository/com/gu/option/1.3/option-1.3.jar
         file:/<>/android-sdk/extras/android/m2repository/com/gu/option/1.3/option-1.3.pom
         file:/<>/android-sdk/extras/android/m2repository/com/gu/option/1.3/option-1.3.jar
         file:/<>/android-sdk/extras/google/m2repository/com/gu/option/1.3/option-1.3.pom
         file:/<>/android-sdk/extras/google/m2repository/com/gu/option/1.3/option-1.3.jar
     Required by:
         :<>:unspecified > net.rdrei.android.dirchooser:library:3.2

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 8.188 secs

I am forced to add maven { url 'http://guardian.github.com/maven/repo-releases' } in repositories.

@passy
Copy link
Owner

passy commented Apr 13, 2016

This is annoying indeed. I'd like to move away from it for that reason. Does anyone have a suggestion for a different library that provides an option/optional type?

@jaredsburrows
Copy link
Contributor Author

@passy Once they (see guardian/Option#2) publish to jcenter, you should be fine.

@passy
Copy link
Owner

passy commented Apr 15, 2016

@jaredsburrows Awesome, thanks for raising that!

@jtakalai
Copy link

Um... why isn't it marked as dependency or something?

@BraisGabin BraisGabin mentioned this issue Sep 21, 2016
3 tasks
@jaredsburrows
Copy link
Contributor Author

@passy This is now marked as help wanted? What did you need help with?

@jaredsburrows
Copy link
Contributor Author

Any update on this?

@ParkerK
Copy link
Contributor

ParkerK commented Jan 26, 2018

I had luck using JitPack.

Add maven { url 'https://jitpack.io' } as a repository in the library gradle properties, and
replace compile 'com.gu:option:1.3'
with compile 'com.github.guardian:Option:-SNAPSHOT'

ParkerK added a commit to ParkerK/Android-DirectoryChooser that referenced this issue Jan 26, 2018
Added JitPack, as com.gu.Option hasn't been updated in years, and they never pushed to JCenter or any other repo, so I used JitPack
@passy passy closed this as completed in 143bd43 Jan 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants