简体   繁体   English

找不到appcompat_v7.apk

[英]Could not find appcompat_v7.apk

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

In Eclipse: - Right click on your project - Properties -Java Build Path - then under "Projects" tab, select "android-support-v7-appcompat" and click "remove". 在Eclipse中: - 右键单击​​您的项目 - Properties -Java Build Path - 然后在“Projects”选项卡下,选择“android-support-v7-appcompat”并单击“remove”。

You don't need it there. 你不需要那里。 Solved the problem for me :) 解决了我的问题:)

The appcompat 7 is support library. appcompat 7是支持库。 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. 当它被标记为库时,eclipse将不会尝试编译它,您将看不到错误消息。 Your main project should not be marked as a library in order to run it as apk. 您的主项目不应该标记为库,以便将其作为apk运行。

This could be a bug in the appcompat 7 is support library. 这可能是appcompat 7中的一个错误,是支持库。 What you could do is, create a new android project. 你能做的是,创建一个新的android项目。 This will create a new appcombat-project (appcombt_v7_2). 这将创建一个新的appcombat项目(appcombt_v7_2)。 then delete the old appcombat-library in your project and add the new one. 然后删除项目中的旧appcombat-library并添加新的appcombat-library。 maybe this could help. 也许这可能有所帮助。

When adding referenced libraries we need only google-play-services_lib.jar . 添加引用的库时,我们只需要google-play-services_lib.jar So that we need to remove the project from your project. 这样我们就需要从项目中删除项目。

Project->Properties->javaBuildPath->Project->select google-play-services->remove.

clean and build. 清洁和建设。

Succes for me in google-play-services 谷歌播放服务对我来说很有用

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

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