[英]Missing Android-support-v7-appcompat in my Android project in Eclipse
I am trying to import an Android project in Eclipse., but after importing the project, I am getting errors which say "Missing android-support-v7-appcompat", "Missing Facebook SDK","Missing Google Play services lib" and "Missing library". 我正在尝试在Eclipse中导入一个Android项目。但是,在导入该项目之后,出现了错误提示“ Missing android-support-v7-appcompat”,“ Missing Facebook SDK”,“ Missing Google Play services lib”和“缺少图书馆”。
I can understand that I am missing libraries but do not have any clue how to add those libraries, as I am new in Android development environment. 我知道我缺少库,但是不知道如何添加这些库,因为我是Android开发环境中的新手。
Here, is a screenshot of the error http://screencast.com/t/iWXLkK8glkF 这是错误http://screencast.com/t/iWXLkK8glkF的屏幕截图
Delete the extra apply
in the first line of your gradle file... 删除多余的apply
在你的文件的gradle的第一线......
UPDATE: 更新:
You know how you have two gradle files? 你知道你有两个 gradle文件吗? One for your application (The one you are working on right now) and the other one which is a top level build.gradle file? 一个用于您的应用程序(您正在处理的一个),另一个是顶级build.gradle文件? Put the below code in the top level build.gradle file: 将以下代码放入顶层build.gradle文件中:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.3.0'
}
}
allprojects {
repositories {
jcenter()
}
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.