我想将外部库https://github.com/foursquare/foursquare-android-oauth添加到我的Android应用程序中(我使用Android Studio,Eclipse的lib author提供的说明不适用于Android Studio).
I've tried to do it with maven, so in File->Project Structure->Dependencies I've added com.foursquare:foursquare-android-nativeoauth-lib:1.0.0
but Gradle Sync fails:
Error:Failed to find: com.foursquare:foursquare-android-nativeoauth-lib:1.0.0
当我try 构建我的应用程序时(不修复上述错误,因为我不知道如何修复),我得到:
Error:A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugCompile'.
> Could not resolve com.foursquare:foursquare-android-nativeoauth-lib:1.0.0.
Required by:
ForSquaresOnly:app:unspecified
> Could not parse POM http://jcenter.bintray.com/com/foursquare/foursquare-android-nativeoauth-lib/1.0.0/foursquare-android-nativeoauth-lib-1.0.0.pom
> Could not find any version that matches com.foursquare:parent:1.0.0.
还有其他方法导入这个库吗?我可以简单地将源代码复制粘贴到我的源代码中,或者用它创建JAR?
顺便说一句:如果你遇到问题,请看这个问题(我在导入后遇到了这个问题):Manifest merger failed : uses-sdk:minSdkVersion 14