Could not find actionbarsherlock.apk

旧街凉风 提交于 2019-12-04 12:19:17

This can happen if you are not exporting Build Path -> Android Private Libraries from your library project. This is something new that you have to do from ADTv22 and up.

Also from your console output, i see that the app is trying to upload an apk for the library. This can happen if you have not added the library in android properly. So here are a few quick steps:

  1. Make sure your ABS lib project is marked as a Library. Properties -> Android -> Check "Is Library"
  2. Make sure that for the ABS lib project, Android Private Libraries is checked in Build Path -> Order and Export. This step is only required for ADTv22 and up.
  3. In your project add the ABS lib project as a library at Properties -> Android -> Add Library. Do not add the ABS lib project as a project dependency in the Build Path yourself, ADT resolves those as it requires, otherwise it generally throws an error like you see above.

Hope this helps you.

I think the problem is that you have add the Library project not correct into your android application project..

You have to the Sherlock library to your Project as below:

Properties -> Android in library section you can now add the Sherlock library

hope this helps..

sud
  1. Remove actionbar sherlock project folder from PropertiesJava Build PathProjects (tab) of your host project and

  2. make sure Android Private Libraries was checked under Order and Export in the same location of my own project which uses action bar sherlock as library project - and it works.

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