Android Could not find android-support-v7-appcompat.apk error

若如初见. 提交于 2019-11-28 11:10:25

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.

maybe you can remove the android-support-v7-appcompat project from your build path. In Eclipse: - Right click into your project - Properties - List item - Java Build Path - Projects - under "Required projects on the build path:" --> select "android-support-v7-appcompat" and click "remove"

This have been solved the problem for me.

In addition to above post! when create a library project check the checkbox "copy project into work space"

If your actionbar buttons aren't displaying properly when using Appcompat its possible that you're not using the right schema to configure your buttons.

If you're using Appcompat you need to use the schema as shown below on the "yourapp" fields for the API11+ settings such as showAsAction and actionLayout.

<menu xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:yourapp="http://schemas.android.com/apk/res-auto" >
    <item android:id="@+id/action_search"
          android:icon="@drawable/ic_action_search"
          android:title="@string/action_search"
          yourapp:showAsAction="ifRoom"  />
    ...
</menu>

source: http://developer.android.com/guide/topics/ui/actionbar.html

I had the same issue (except my app crashed).

Basically, I just followed the Support Library Setup on the android site.

I had the following things wrong, and once fixed, the app ran as expected:

  • Didn't add the android-support-v4.jar and android-support-v7-appcompat.jar to the build path (step 5)
  • Didn't export android-support-v7-appcompat.jar to the build path (step 7)
  • Had the android-support-v7-appcompat project added on the build path (Project > Properties > Java Build Path > Projects)

Once I fixed these things, I needed to remove and re-add the android-support-v7-appcompat project as a library (Project > Properties > Android > Library > Add)

Hope the link above helps anyone coming across this page.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!