Java 找不到 appcompat_v7.apk
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/23382583/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Could not find appcompat_v7.apk
提问by Taba
When I try to run my progrm, it works, but when I look at the console, it states that it Could not find appcompat_v7.apk
.
当我尝试运行我的程序时,它可以工作,但是当我查看控制台时,它指出它Could not find appcompat_v7.apk
.
How do I try to answer this? I just imported most of my resources.
我如何尝试回答这个问题?我刚刚导入了我的大部分资源。
This is what happens when I do this: Properties
> Android
> Library add the android-support-v7-appcompat
当我这样做时会发生这种情况: Properties
> Android
>Library add the android-support-v7-appcompat
[2014-04-30 16:28:38 - appcompat_v7] Could not find appcompat_v7.apk!
[2014-04-30 16:28:38 - finalssample1] Starting activity com.example.finalssample1.MainActivity on device emulator-5554
[2014-04-30 16:28:40 - finalssample1] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.example.finalssample1/.MainActivity }
[2014-04-30 16:28:40 - finalssample1] ActivityManager: Warning: Activity not started, its current task has been brought to the front
回答by Tech Agent
The appcompat 7 is support library. It is not meant to be compiled in an application. When it is marked as library, eclipse will not try to compile it and you will not see the error message. Your main project should not be marked as a library in order to run it as apk.
appcompat 7 是支持库。它并不意味着要在应用程序中编译。当它被标记为 library 时,eclipse 将不会尝试编译它,您也不会看到错误消息。您的主项目不应标记为库以将其作为 apk 运行。
回答by Izu
This could be a bug in the appcompat 7 is support library. What you could do is, create a new android project. This will create a new appcombat-project (appcombt_v7_2). then delete the old appcombat-library in your project and add the new one. maybe this could help.
这可能是 appcompat 7 支持库中的一个错误。您可以做的是,创建一个新的 android 项目。这将创建一个新的 appcombat-project (appcombt_v7_2)。然后删除项目中旧的 appcombat-library 并添加新的。也许这会有所帮助。
回答by user3752357
When adding referenced libraries we need only google-play-services_lib.jar
. So that we need to remove the project from your project.
添加引用的库时,我们只需要google-play-services_lib.jar
. 这样我们就需要从您的项目中删除该项目。
Project->Properties->javaBuildPath->Project->select google-play-services->remove.
clean and build.
清洁和建造。
Succes for me in google-play-services
我在 google-play-services 中取得了成功
回答by Vishal Chhatwani
In Eclipse: - Right click on your project - Properties -Java Build Path - then under "Projects" tab, select "android-support-v7-appcompat" and click "remove".
在 Eclipse 中: - 右键单击您的项目 - 属性 -Java 构建路径 - 然后在“项目”选项卡下,选择“android-support-v7-appcompat”并单击“删除”。
You don't need it there. Solved the problem for me :)
你在那里不需要它。为我解决了问题:)