Eclipse ADT appcompat...是什么? [英] Eclipse ADT appcompat... what is it?

查看:22
本文介绍了Eclipse ADT appcompat...是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我整个下午都没有解决这个问题.我已经下载了 Eclipse,下载了 SDK,安装了更新,但我创建的每个新 Android 项目都有问题.

I've spent all afternoon getting absolutely nowhere with this. I've downloaded Eclipse, downloaded the SDK, installed the updates, but every new Android project I create something's wrong.

首先,它根本不会生成 R.java 文件,现在它会生成,但它会自动创建一个名为 appcompat_v7 的单独项目.我不知道这是什么,但它会导致任何其他新项目出现问题.

Firstly, it would not generate the R.java file, at all, now it does but there's a separate project it's created automatically called appcompat_v7. I don't know what this is, but it's causing problems with any other new project.

这是正常项目产生的错误:容器Android 依赖项"引用了不存在的库/home/omar/workspace/appcompat_v7/bin/appcompat_v7.jar"

This is the error a normal project produces: The container 'Android Dependencies' references non existing library '/home/omar/workspace/appcompat_v7/bin/appcompat_v7.jar'

我完全不知道如何解决这个问题.这是什么原因造成的?

I have absolutely no idea how to fix this. What is causing this?

编辑看来这仅适用于 KitKat,其他所有 API 平台都根本不生成任何源文件......知道如何解决这个问题吗?

EDIT It appear this is only with KitKat, every other API platform doesn't produce ANY source files at all.... any idea how to combat this?

推荐答案

它是一个支持库,大概是您的项目所引用的.您需要将其构建为工作区中的库项目.此过程在支持库设置使用资源添加库下描述.

It's a support library which presumably your project refers to. You will need to build it as a library project in your workspace. This process is described here Support Library Setup under Adding libraries with resources.

你会在你的SDK文件夹中找到你需要复制的项目:

You will find the project you need to copy in your SDK in the folder:

yourSDKlocation oolsandroid-sdk-windows4.4extrasandroidsupportv7appcompat

yourSDKlocation oolsandroid-sdk-windows4.4extrasandroidsupportv7appcompat

(只复制一个jar是没有用的,你必须把它构建成一个库项目.)

(It's no use just copying a jar, you must build it as a library project.)

这篇关于Eclipse ADT appcompat...是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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