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

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

问题描述

我已经花了整整一个下午,绝对没有这个。
我已经下载了Eclipse,下载了SDK,安装了更新,但每一个新的Android项目我都创造了一些错误。



首先,它不会生成就像现在这样,这个文件就是这样,但是它有一个单独的项目,它自动地被创建为appcompat_v7。我不知道这是什么,但是这是任何其他新项目的问题。



这是普通项目生成的错误:
容器Android依赖关系引用不存在的库/ home / omar / workspace / appcompat_v7 / bin / appcompat_v7.jar'



我绝对不知道如何解决这个问题。这是什么导致的?



EDIT
看起来这只是与KitKat,每个其他的API平台不会产生任何源文件....任何想法如何解决这个问题?







解决方案

这是您的项目所指的支持库。您将需要在工作区中将其构建为库项目。此过程将在此处介绍使用资源添加库之前的支持库设置



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


\yourSDKlocation\tools\android-sdk-windows4.4\extras\android\support\v7\appcompat


(只是复制一个jar就不用了,你必须把它作为一个库项目来构建。)


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.

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.

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?

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.

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

\yourSDKlocation\tools\android-sdk-windows4.4\extras\android\support\v7\appcompat

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

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

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