简体   繁体   English

我在Eclipse中的Android项目中缺少Android-support-v7-appcompat

[英]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.

相关问题 创建android项目,并且lib(eclipse)中不包含android-support-v7-appcompat - create android project and android-support-v7-appcompat is not included in lib(eclipse) android-support-v7-appcompat库项目不起作用 - android-support-v7-appcompat library project won't work appcompat_v7和android-support-v7-appcompat之间的区别? - Difference between appcompat_v7 and android-support-v7-appcompat? 带有Java项目的Eclipse中缺少工件com.android.support:appcompat-v7:jar:23.0.1 - Missing artifact com.android.support:appcompat-v7:jar:23.0.1 in Eclipse with a Java project 尽管使用了android-support-v7-appcompat库,但Android 2.2的操作栏仍无法正常工作 - Despite using android-support-v7-appcompat library, Action bar is working wrong with android 2.2 在android中使用android-support-v7-appcompat库运行PopupMenu时出现NoClassDefFoundError - NoClassDefFoundError when running PopupMenu using android-support-v7-appcompat library in android 使用Eclipse的v7 appcompat导致Android支持库出现问题 - Android Support Library troubles with v7 appcompat using Eclipse Android / Eclipse:如何在没有appcompat_v7的情况下创建新项目 - Android/Eclipse: How to create a new project without appcompat_v7 Android存储库中缺少appcompat-v7源代码 - appcompat-v7 sources missing in the android repository 无法在Android Studio中导入android.support.v7.appcompat.R - Cannot import android.support.v7.appcompat.R in Android Studio
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM