简体   繁体   English

将Android项目导入Eclipse错误

[英]Importing Android Project Into Eclipse Error

I am trying to run an imported Android Project but I have run into a few errors. 我正在尝试运行导入的Android项目,但遇到了一些错误。 A big red exclamation mark is on both the project folder I want to run and the android-support-v7-appcompat folder. 我要运行的项目文件夹和android-support-v7-appcompat文件夹上都有一个大的红色感叹号。

Here are some screenshots that can hopefully help locate the issue. 以下是一些屏幕快照,可以帮助您找到问题所在。

1) Screen shots from the Android project I want to run: 1)我要运行的Android项目的屏幕截图:

Properties -> Java Build Path -> Order and Exports tab. 属性-> Java构建路径->订单和导出标签。 There is a red X on Android Dependencies. Android依赖项上有一个红色的X。

在此处输入图片说明

Properties -> Java Build Path -> Order and Exports tab. 属性-> Java构建路径->订单和导出标签。 There is a red X on Android Dependencies. Android依赖项上有一个红色的X。

在此处输入图片说明

Properties -> Android -> Library 属性-> Android->库

在此处输入图片说明

Properties -> Andoid -> Android 4.4.2 is checked, API 19 属性-> Andoid-> Android 4.4.2已检查,API 19

Android Manifest minSDK and target SDK: Android清单minSDK和目标SDK:

在此处输入图片说明

Here is the libs folder of the Android Project I want to run: 这是我要运行的Android项目的libs文件夹:

在此处输入图片说明


2) Screenshots from the android-support-v7-appcompat folder: 2)android-support-v7-appcompat文件夹中的屏幕截图:

res -> values-v21 error res-> values-v21错误

在此处输入图片说明

Properties -> Java Build Path -> Order and Exports tab. 属性-> Java构建路径->订单和导出标签。 在此处输入图片说明

Properties -> Java Build Path -> Libraries tab. 属性-> Java构建路径->库选项卡。 在此处输入图片说明

Properties -> Android -> Android 4.4.2 is checked, API 19 属性-> Android-> Android 4.4.2已检查,API 19

Libs folder: 库文件夹:

在此处输入图片说明

Android Manifest minSDK: Android清单minSDK:

在此处输入图片说明

I am very new to the Android process, and setting up this imported project correctly is quite confusing. 我对Android流程非常陌生,正确设置此导入的项目非常令人困惑。 Any help or detailed instructions on how to possibly fix the problem would be very much appreciated. 非常感谢您提供任何有关如何解决该问题的帮助或详细说明。 Thank you. 谢谢。

@Bret:If you are facing issue with supportv4.jar version,then try to copy paste the your app's jar file into compact project or vice versa.Make sure you have same jar file in both project and library project. @Bret:如果遇到supportv4.jar版本的问题,请尝试将应用的jar文件复制粘贴到压缩项目中,反之亦然。请确保项目和库项目中都有相同的jar文件。

It will remove your dependency issue of jar mismatch... 它将消除您的jar不匹配的依赖问题...

Delete android.library.reference.1=../appcompat_v7 from project.properties file. 从project.properties文件中删除android.library.reference.1=../appcompat_v7 Remove all dependency of appcompat_v7 from your project. 从项目中删除appcompat_v7的所有依赖项。 Clean->build->Run 洁净>建设 - >运行

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM