Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/185.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java ActionBarActivity无法解析为类型,Jar不匹配:Eclipse_Java_Android_Eclipse_Build - Fatal编程技术网

Java ActionBarActivity无法解析为类型,Jar不匹配:Eclipse

Java ActionBarActivity无法解析为类型,Jar不匹配:Eclipse,java,android,eclipse,build,Java,Android,Eclipse,Build,我不熟悉android开发,也不熟悉Eclipse。每当我创建一个应用程序,它只会给出错误 我的平台: Android sdk工具:23.0.5 Android SDK平台工具:21 Android sdkbuild工具:21.1 错误: [2014-11-03 15:58:24 - Test] Found 2 versions of android-support-v4.jar in the dependency list, [2014-11-03 15:58:24 - Test] but n

我不熟悉android开发,也不熟悉Eclipse。每当我创建一个应用程序,它只会给出错误

我的平台:

Android sdk工具:23.0.5 Android SDK平台工具:21 Android sdkbuild工具:21.1

错误:

[2014-11-03 15:58:24 - Test] Found 2 versions of android-support-v4.jar in the dependency list,
[2014-11-03 15:58:24 - Test] but not all the versions are identical (check is based on SHA-1 only at this time).
[2014-11-03 15:58:24 - Test] All versions of the libraries must be the same at this time.
[2014-11-03 15:58:24 - Test] Versions found are:
[2014-11-03 15:58:24 - Test] Path: C:\Users\Zain-ul-abdeen\workspace\Test\libs\android-support-v4.jar
[2014-11-03 15:58:24 - Test]    Length: 987314
[2014-11-03 15:58:24 - Test]    SHA-1: 9b6a9a9078af571732159b904ad423b03b7cc786
[2014-11-03 15:58:24 - Test] Path: C:\Users\Zain-ul-abdeen\workspace\appcompat_v7\libs\android-support-v4.jar
[2014-11-03 15:58:24 - Test]    Length: 758727
[2014-11-03 15:58:24 - Test]    SHA-1: efec67655f6db90757faa37201efcee2a9ec3507
[2014-11-03 15:58:24 - Test] Jar mismatch! Fix your dependencies
[2014-11-03 15:58:24 - Test] Found 2 versions of android-support-v4.jar in the dependency list,
[2014-11-03 15:58:24 - Test] but not all the versions are identical (check is based on SHA-1 only at this time).
[2014-11-03 15:58:24 - Test] All versions of the libraries must be the same at this time.
[2014-11-03 15:58:24 - Test] Versions found are:
[2014-11-03 15:58:24 - Test] Path: C:\Users\Zain-ul-abdeen\workspace\Test\libs\android-support-v4.jar
[2014-11-03 15:58:24 - Test]    Length: 987314
[2014-11-03 15:58:24 - Test]    SHA-1: 9b6a9a9078af571732159b904ad423b03b7cc786
[2014-11-03 15:58:24 - Test] Path: C:\Users\Zain-ul-abdeen\workspace\appcompat_v7\libs\android-support-v4.jar
[2014-11-03 15:58:24 - Test]    Length: 758727
[2014-11-03 15:58:24 - Test]    SHA-1: efec67655f6db90757faa37201efcee2a9ec3507
[2014-11-03 15:58:24 - Test] Jar mismatch! Fix your dependencies
[2014-11-03 15:58:35 - Test] Found 2 versions of android-support-v4.jar in the dependency list,
[2014-11-03 15:58:35 - Test] but not all the versions are identical (check is based on SHA-1 only at this time).
[2014-11-03 15:58:35 - Test] All versions of the libraries must be the same at this time.
[2014-11-03 15:58:35 - Test] Versions found are:
[2014-11-03 15:58:35 - Test] Path: C:\Users\Zain-ul-abdeen\workspace\Test\libs\android-support-v4.jar
[2014-11-03 15:58:35 - Test]    Length: 987314
[2014-11-03 15:58:35 - Test]    SHA-1: 9b6a9a9078af571732159b904ad423b03b7cc786
[2014-11-03 15:58:35 - Test] Path: C:\Users\Zain-ul-abdeen\workspace\appcompat_v7\libs\android-support-v4.jar
[2014-11-03 15:58:35 - Test]    Length: 758727
[2014-11-03 15:58:35 - Test]    SHA-1: efec67655f6db90757faa37201efcee2a9ec3507
[2014-11-03 15:58:35 - Test] Jar mismatch! Fix your dependencies
[2014-11-03 15:58:35 - Test] Found 2 versions of android-support-v4.jar in the dependency list,
[2014-11-03 15:58:35 - Test] but not all the versions are identical (check is based on SHA-1 only at this time).
[2014-11-03 15:58:35 - Test] All versions of the libraries must be the same at this time.
[2014-11-03 15:58:35 - Test] Versions found are:
[2014-11-03 15:58:35 - Test] Path: C:\Users\Zain-ul-abdeen\workspace\Test\libs\android-support-v4.jar
[2014-11-03 15:58:35 - Test]    Length: 987314
[2014-11-03 15:58:35 - Test]    SHA-1: 9b6a9a9078af571732159b904ad423b03b7cc786
[2014-11-03 15:58:35 - Test] Path: C:\Users\Zain-ul-abdeen\workspace\appcompat_v7\libs\android-support-v4.jar
[2014-11-03 15:58:35 - Test]    Length: 758727
[2014-11-03 15:58:35 - Test]    SHA-1: efec67655f6db90757faa37201efcee2a9ec3507
[2014-11-03 15:58:35 - Test] Jar mismatch! Fix your dependencies
[2014-11-03 15:58:47 - Test] Found 2 versions of android-support-v4.jar in the dependency list,
[2014-11-03 15:58:47 - Test] but not all the versions are identical (check is based on SHA-1 only at this time).
[2014-11-03 15:58:47 - Test] All versions of the libraries must be the same at this time.
[2014-11-03 15:58:47 - Test] Versions found are:
[2014-11-03 15:58:47 - Test] Path: C:\Users\Zain-ul-abdeen\workspace\Test\libs\android-support-v4.jar
[2014-11-03 15:58:47 - Test]    Length: 987314
[2014-11-03 15:58:47 - Test]    SHA-1: 9b6a9a9078af571732159b904ad423b03b7cc786
[2014-11-03 15:58:47 - Test] Path: C:\Users\Zain-ul-abdeen\workspace\appcompat_v7\libs\android-support-v4.jar
[2014-11-03 15:58:47 - Test]    Length: 758727
[2014-11-03 15:58:47 - Test]    SHA-1: efec67655f6db90757faa37201efcee2a9ec3507
[2014-11-03 15:58:47 - Test] Jar mismatch! Fix your dependencies

首先,它给出了ActionBarActivity无法解决的错误,我试图通过添加外部jar来解决这些错误,然后这些错误出现了

在工作空间中删除jar文件就可以了

projectname>libs>android-support-v4

appcompat_v7>libs>android-support-v4

复制此文件并将其粘贴到项目中
此过程将帮助您绕过与此问题相关的所有错误

删除工作空间中的jar文件即可

projectname>libs>android-support-v4

appcompat_v7>libs>android-support-v4

复制此文件并将其粘贴到项目中

此过程将帮助您绕过与此问题相关的所有错误

更新您的adtbundal@Naveen您能解释一下如何操作吗?打开sdk管理器并更新android sdk工具,然后从Eclipse中取消安装Adt,然后将insatll adtAlready更新为23.0.5更新您的Adtbundal@Naveen你能解释一下吗?打开sdk管理器并更新androidsdk toolthan从Eclipse和更新到23.0.5的InSatl adtAlready中取消Satll Adt与此项目配合得很好:,但我创建了一个新项目,它给了我ActionBarActivity的错误,总共无法解决9个错误,我以前通过添加外部JAR修复了这些错误。我必须为每个项目都这样做,或者有一个解决方案?这是我用来复制粘贴jar文件的每个项目的临时解决方案。后来我更新了我的ADT和SDK,到目前为止我从未遇到过这样的问题。更新ADT并重新安装SDK就可以了。这是一个临时快速修复程序。请您解释一下我现在应该做什么?只需更新您的ADT并安装sdk管理器中提供的任何新工具。请始终记住,您必须有针对特定版本android的sdk工具作为目标。因此,更新到新版本时不要删除任何sdk工具,并始终检查您的目标版本使用您可用的sdk工具,此项目运行良好:,但我创建了一个新项目,它给了我ActionBarActivity的错误,总共无法解决9个错误,我以前通过添加外部JAR修复了这些错误。我必须为每个项目都这样做,或者有一个解决方案?这是我用来复制粘贴jar文件的每个项目的临时解决方案。后来我更新了我的ADT和SDK,到目前为止我从未遇到过这样的问题。更新ADT并重新安装SDK就可以了。这是一个临时快速修复程序。请您解释一下我现在应该做什么?只需更新您的ADT并安装sdk管理器中提供的任何新工具。请始终记住,您必须有针对特定版本android的sdk工具作为目标。因此,更新到新版本时不要删除任何sdk工具,并始终检查您的目标版本使用可用的sdk工具