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

Failed to find lib. Also I wanted to ask why it's appcompat necessary here #1

Open
cesards opened this issue Nov 4, 2014 · 3 comments
Assignees

Comments

@cesards
Copy link

cesards commented Nov 4, 2014

I'm using in my main module build:

buildscript {
    repositories {
        maven {
            url 'http://download.crashlytics.com/maven'
        }
        maven {
            url 'https://github.com/tvbarthel/maven/raw/master/'
        }
    }

    dependencies {
        classpath 'com.crashlytics.tools.gradle:crashlytics-gradle:1.+'
    }
}

and in dependencies section:

compile 'fr.tvbarthel.lib.blurdialogfragment:lib:0.1.2@aar'

When I try to compile, I get this error

/app/build.gradle
Error:Failed to find: fr.tvbarthel.lib.blurdialogfragment:lib:0.1.2
<a href="openFile">Open File</a><br><a href="open.dependency.in.project.structure">Open in Project Structure dialog</a>

Is it mandatory using appcompat dependancy? What am I doing wrong? Thx!

@tbarthel-fr tbarthel-fr self-assigned this Nov 4, 2014
@tbarthel-fr
Copy link
Member

Hi @cesards , thanks a lot for your interest in our project (=

Suppose you have the following project tree :

MyProject
-----build/
-----gradle/
-----myModule/
----------build/
----------src/
----------build.gradle (2)
-----out/  
-----static/
-----settings.gradle
-----build.gradle (1)
-----local.properties

In the build.gradle (1) of your project add :

// Top-level build file where you can add configuration options common to all sub-projects/modules.
allprojects {
    repositories {
        jcenter()
        maven {
            url 'https://github.com/tvbarthel/maven/raw/master/'
        }
    }
}

Then, in the buid.gradle (2) of your module just add :

...
dependencies {
    ...
    compile 'fr.tvbarthel.lib.blurdialogfragment:lib:0.1.2@aar'
    compile 'com.android.support:appcompat-v7:21.0.+'
    ...
}
...

This should works fine.

The "repositories child of buildscript" might only configure the build script classpath (build tools and gradle plugins).

Just close this issue if this solves your error.

BlurDialogFragment should definitively works without appcompat dependency, which is not the case currently due to NoClassDefFoundError exception. I have just openned another issue on the git project and I will came back to you when it will be solved (:

Have a nice day (=

Edit
Thanks for your feedback on appcompat dependency.
tvbarthel/BlurDialogFragment#4

@cesards
Copy link
Author

cesards commented Nov 5, 2014

Thanks! You too :-) 👍

@tbarthel-fr
Copy link
Member

@cesards Thanks to you, appcompat isn't mandatory anymore (=

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