Can't import project to android studio

后端 未结 4 1685
抹茶落季
抹茶落季 2021-01-13 01:05

I\'m trying to use this library

I\'ve added

compile \'net.rdrei.android.dirchooser:library:2.0@aar\'

to dependecies.

My top

4条回答
  •  爱一瞬间的悲伤
    2021-01-13 01:36

    This library is not on Central Maven as aar.

    Check here:

    http://search.maven.org/#search%7Cga%7C1%7Cnet.rdrei.android.dirchooser it is an apklib format.

    I've checked the snapshots repo, and here you can find this library.

    https://oss.sonatype.org/content/repositories/snapshots/net/rdrei/android/dirchooser/library/

    To use the snap repo you have to change your script:

    repositories {
        mavenCentral()
        maven {
            url "https://oss.sonatype.org/content/repositories/snapshots"
        }
    }
    

    Then add you depencency, for example

    compile 'net.rdrei.android.dirchooser:library:2.1-SNAPSHOT'
    

提交回复
热议问题