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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradle #4

Closed
theGlenn opened this issue Feb 13, 2015 · 6 comments
Closed

Gradle #4

theGlenn opened this issue Feb 13, 2015 · 6 comments

Comments

@theGlenn
Copy link

Everything is in the title building this lib as a Gradle dependency could be a great fit to help everybody with android camera nightmare 馃憤

@Glamdring
Copy link
Owner

Doesn't it work out of the box? E.g.
compile 'net.bozho.easycamera:easycamera:0.0.1'

@theGlenn
Copy link
Author

Nope it throws the following

Error:Artifact 'easycamera.jar (net.bozho.easycamera:easycamera:0.0.1)' not found.
Searched in the following locations:
    https://jcenter.bintray.com/net/bozho/easycamera/easycamera/0.0.1/easycamera-0.0.1.jar

and if I precise compile 'net.bozho.easycamera:easycamera:0.0.1@aar' it throws

Error:Artifact 'easycamera.aar (net.bozho.easycamera:easycamera:0.0.1)' not found.
Searched in the following locations:
    https://jcenter.bintray.com/net/bozho/easycamera/easycamera/0.0.1/easycamera-0.0.1.aar

So you should add a easycamera-0.0.1.jar to your repo or rename easycamera-0.0.1-aar.aar to easycamera-0.0.1.aar

Here is a link on how to build a gradle library and publish it to jcenter
https://www.virag.si/2015/01/publishing-gradle-android-library-to-jcenter/

@Glamdring
Copy link
Owner

Will check

@Glamdring
Copy link
Owner

Aha, Maven makes a difference between "classifier" and "type". Could you try something like the thing shown here: http://stackoverflow.com/questions/16682847/how-to-manually-include-external-aar-package-using-new-gradle-android-build-syst e.g. using: ext: "aar" (if it doesn't work, try adding classifier as well)

@theGlenn
Copy link
Author

theGlenn commented Mar 2, 2015

Ok I tried this compile 'net.bozho.easycamera:easycamera:0.0.1:aar@aar' and it works.
You should add it to you README.md 馃憤

@theGlenn theGlenn closed this as completed Mar 2, 2015
@Glamdring
Copy link
Owner

Done, added to readme. Thanks.

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

2 participants