问题描述
- android 中External Libraries中添加出问题
-
Error:A problem occurred configuring project ':app'.Could not resolve all dependencies for configuration ':app:_debugCompile'.
Could not resolve com.alibaba:fastjson:1.1.45.android.
Required by:
AdManager:app:unspecified
> Could not GET 'https://jcenter.bintray.com/com/alibaba/fastjson/1.1.45.android/fastjson-1.1.45.android.pom'. Received status code 403 from server: Forbidden
Could not resolve com.loopj.android:android-async-http:1.4.6.
Required by:
AdManager:app:unspecified
> Could not GET 'https://jcenter.bintray.com/com/loopj/android/android-async-http/1.4.6/android-async-http-1.4.6.pom'. Received status code 403 from server: Forbidden
解决方案
你的项目中用到了 fastjson 和 com.loopj.android:android-async-http:1.4.6.
但是由于墙的原因,Android 没法从 jcenter 中获取到,所以肯定编译报错了
自己去下载需要的jar然后导入项目中吧,另外估计还得修改下build.grade 文件
解决方案二:
怎么将JAR导入项目中 怎么修改build.grade