android.support.v7.app.ActionBarActivity无法解析 [英] android.support.v7.app.ActionBarActivity not resolve

查看:185
本文介绍了android.support.v7.app.ActionBarActivity无法解析的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚下载了包括Eclipse等在内的Android开发人员工具(ADT),并且按照Android的指南创建了MyFirstApp。我只是花了一个多小时来寻找

I just downloaded Android Developer Tools (ADT), which includes Eclipse, etc., and I followed Android's guide to create MyFirstApp. I've just spend over an hour looking for

android-support-v7-app.jar

,但无法执行。对于空白模板, android.support.v7.app.ActionBarActivity无法解析

but was unable to. Do you have any suggestions on how to handle the fact that for a blank template, android.support.v7.app.ActionBarActivity not resolve.

推荐答案

确保已下载软件包android.support.v7。然后,将整个appcompat库(/ extras / android / support / v7 / appcompat)作为库项目导入到您的工作区中,然后作为库添加到您的主项目中:

Make sure you've downloaded the package android.support.v7. Then, Import the whole appcompat lib (/extras/android/support/v7/appcompat) as a library project to your workspace and then add to your main project as a library:

这是步骤。

首先检查android-support-v7-appcompat是否已在您的工作区中。如果是,请转到步骤2

First check if android-support-v7-appcompat is already in your workspace. If it is go to Step 2

步骤1:

选择文件>导入。

选择现有的Android代码进入工作区,然后单击下一步。

Select Existing Android Code Into Workspace and click Next.

浏览到SDK安装目录,然后到支持库文件夹。 / extras / android / support / v7 / appcompat/。

Browse to the SDK installation directory and then to the Support Library folder. /extras/android/support/v7/appcompat/.

点击完成以导入项目。对于v7 appcompat项目,您现在应该看到一个名为android-support-v7-appcompat的新项目。

Click Finish to import the project. For the v7 appcompat project, you should now see a new project titled android-support-v7-appcompat.

步骤2:

右键单击您的项目->属性
在Android->库部分中,单击添加
选择android-support-v7-appcompat->确定

Right-click on your project -> Properties In Android->Library section click Add Select android-support-v7-appcompat -> Ok

这篇关于android.support.v7.app.ActionBarActivity无法解析的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆