找不到com.android.support:appcompat-v7:21.0.2
我使用一个EC2实例来运行Android项目的构建。我用命令为Android安装了很多东西: android更新sdk——没有ui 然后是: android更新sdk——无ui——过滤器xxxxxx 但当构建失败时:找不到com.android.support:appcompat-v7:21.0.2,android,amazon-ec2,sdk,Android,Amazon Ec2,Sdk,我使用一个EC2实例来运行Android项目的构建。我用命令为Android安装了很多东西: android更新sdk——没有ui 然后是: android更新sdk——无ui——过滤器xxxxxx 但当构建失败时: A problem occurred configuring project ':app'. > Could not resolve all dependencies for configuration ':app:_debugCompile'. > Could
A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugCompile'.
> Could not find com.android.support:appcompat-v7:21.0.2.
Searched in the following locations:
https://jcenter.bintray.com/com/android/support/appcompat-v7/21.0.2/appcompat-v7-21.0.2.pom
https://jcenter.bintray.com/com/android/support/appcompat-v7/21.0.2/appcompat-v7-21.0.2.jar
Required by:
MyApplication:app:unspecified
当我录制时:
android列表sdk
以下是可用的软件包:
Packages available for installation or update: 3
1- Google APIs ARM EABI v7a System Image, Google Inc. API 21, revision 3
2- Google APIs Intel x86 Atom_64 System Image, Google Inc. API 21, revision 3
3- Google APIs Intel x86 Atom System Image, Google Inc. API 21, revision 3
你有什么想法吗
非常感谢您在EC2实例上安装了Android存储库吗?我更新了我原来的问题。是的@commonware我安装了它。如果你认为你的编辑与Android存储库有关,那你就错了。好吧,那我怎么做呢?因为我没有使用CLI方式安装SDK组件,我不知道。如果您调出常规SDK管理器GUI,您将在“附加”区域中看到Android存储库。这将建立一个本地Maven风格的存储库,这是Android Support pacakge的工件所在的位置。