安卓找不到Android的支持-V7-appcompat.apk错误 [英] Android Could not find android-support-v7-appcompat.apk error

查看:286
本文介绍了安卓找不到Android的支持-V7-appcompat.apk错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在进行,虽然在开发者网站Android的教程,并运行在尝试添加动作的操作栏(我使用的是支持库,以支持版本2.1+),我不断收到错误的Andr​​oid支持-V7-appcompat]找不到 Android的支持-V7-appcompat.apk

该应用程序仍然运行和功能,虽然操作栏没有按钮我补充道。我读过关于这个问题的其他职务,并确保我包括Android的支持-V7-appcompat作为一个库。

请问有什么需要添加到构建路径(不是我已经拥有它勾掉有秩序和出口)?

谢谢! 忘了提,我使用日食的情况下,目前还不清楚。 周围挖阅读一些帖子后,似乎奇怪的是,我的应用程序仍然运行,因为别人这个问题有他们崩溃。

注:不知道这个事情,但我不得不手动添加字符串ACTION_SEARCHAndroid版:标题=@字符串/ ACTION_SEARCH在main_activity_actions.xml(在RES /菜单/) - 这应该已经自动添加与appcompat?

下面的完整控制台输出:

  [2013年8月24日13时19分04秒 -  MyFirstApp1] Android的推出!

[2013年8月24日13时19分04秒 -  MyFirstApp1]亚洲开发银行运行正常。

[2013年8月24日13时19分04秒 -  MyFirstApp1]执行com.example.myfirstapp1.MainActivity活动启动

[2013年8月24日13时19分04秒 -  MyFirstApp1]目标自动模式:利用现有的模拟器模拟器-5554'运行兼容AVDAVD1

[2013年8月24日13时19分04秒 -  MyFirstApp1]上传MyFirstApp1.apk到器件的模拟器,5554

[2013年8月24日13时19分04秒 -  MyFirstApp1]安装MyFirstApp1.apk ...

[2013年8月24日13时19分〇八秒 -  MyFirstApp1]成功!

[2013年8月24日13时19分〇八秒 -  Android的支持-V7-appcompat]找不到Android的支持-V7-appcompat.apk!

[2013年8月24日13时19分〇八秒 -  MyFirstApp1]启动活动com.example.myfirstapp1.MainActivity在设备模拟器-5554

[2013年8月24日13时19分○九秒 -  MyFirstApp1] ActivityManager:开始:意向{
ACT = android.intent.action.MAIN猫= [android.intent.category.LAUNCHER]
CMP = com.example.myfirstapp1 / .MainActivity
 

解决方案

转到Java构建路径>项目和删除不正确的项目依赖(你的Andr​​oid库项目。)请注意,该项目设置了Android的部分中Android的库,你依赖必须列在了〜库中。

I have been going though the android tutorial on the developer site, and have run while trying to add actions to the Action bar (I am using the Support Library to support version 2.1+), I keep getting the error android-support-v7-appcompat] Could not find android-support-v7-appcompat.apk!.

The app still runs and functions, though the Action bar does not have the buttons I added. I've read other posts on this issue, and made sure that I included android-support-v7-appcompat as a library.

Is there anything I need to add to the build path (not in order and export I already have it checked off there)?

Thanks! Forgot to mention that I am using eclipse in case it wasn't clear. After digging around reading some more posts, it seems strange that my app still runs since others with this problem have theirs crash.

NOTE: Not sure if this matters but I had to manually add the string "action_search" for android:title = "@string/action_search" in main_activity_actions.xml (in res/menu/)- should this have been added automatically with appcompat?

Full console output below:

[2013-08-24 13:19:04 - MyFirstApp1] Android Launch!

[2013-08-24 13:19:04 - MyFirstApp1] adb is running normally.

[2013-08-24 13:19:04 - MyFirstApp1] Performing com.example.myfirstapp1.MainActivity activity launch

[2013-08-24 13:19:04 - MyFirstApp1] Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD 'AVD1'

[2013-08-24 13:19:04 - MyFirstApp1] Uploading MyFirstApp1.apk onto device 'emulator-5554'

[2013-08-24 13:19:04 - MyFirstApp1] Installing MyFirstApp1.apk...

[2013-08-24 13:19:08 - MyFirstApp1] Success!

[2013-08-24 13:19:08 - android-support-v7-appcompat] Could not find android-support-v7-appcompat.apk!

[2013-08-24 13:19:08 - MyFirstApp1] Starting activity com.example.myfirstapp1.MainActivity on device emulator-5554

[2013-08-24 13:19:09 - MyFirstApp1] ActivityManager: Starting: Intent { 
act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] 
cmp=com.example.myfirstapp1/.MainActivity

解决方案

Go to Java Build Path > Projects and remove the incorrect project dependency (your Android library project.) Note that in the "Android" section of the project settings the Android library that you're dependent on must be listed in the ~"Libraries" box.

这篇关于安卓找不到Android的支持-V7-appcompat.apk错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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