在A(yíng)ndroidstudio中添加外部庫(kù)我想添加外部庫(kù)https:/github.com/Foursquare/Foursquare-Android-OAuth對(duì)于我的Android應(yīng)用程序(我使用AndroidStudio,lib Author for Eclipse提供的說(shuō)明不適用于A(yíng)ndroidStudio)。我嘗試用maven來(lái)完成它,所以在File->ProjectStructure->Dependations中,我添加了com.foursquare:foursquare-android-nativeoauth-lib:1.0.0但是Gradle Sync失敗了:Error:Failed to find: com.foursquare:foursquare-android-nativeoauth-lib:1.0.0當(dāng)我試圖構(gòu)建我的應(yīng)用程序時(shí)(不修復(fù)上面的錯(cuò)誤,因?yàn)槲也恢涝趺醋?,我得到了: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.還有其他方法來(lái)導(dǎo)入這個(gè)庫(kù)嗎?我可以簡(jiǎn)單地將源代碼復(fù)制到我的源代碼中,或者用它創(chuàng)建JAR?順便說(shuō)一句:如果遇到問(wèn)題,請(qǐng)看這個(gè)問(wèn)題(我在導(dǎo)入之后遇到了這個(gè)問(wèn)題):清單合并失?。菏褂?sdk:minSdkVersion 14
- 3 回答
- 0 關(guān)注
- 1204 瀏覽
添加回答
舉報(bào)
0/150
提交
取消