1

For some reason, I can't get ActionBarSherlock to work. I think I have it set up correctly, but it doesn't show up in intellisense when I try to import it or use it. Is there anything else I need to do, other than include it as a module??

Images:

enter image description here

enter image description here

3
  • Did you add this library module to the dependencies of your app module? See jetbrains.com/idea/webhelp/…. Commented May 16, 2012 at 21:33
  • That worked, but now I can't compile. It's telling me: java.util.zip.ZipException: duplicate entry: resources.arsc, and I can't find anything telling me what this is or how to fix it. It compiles all the way until the resources are packaged.. Commented May 16, 2012 at 22:02
  • 1
    Please check that it's the only copy of the library in the dependencies, don't add its jars. It can happen because you have imported the Maven project with its dependencies. Commented May 16, 2012 at 22:35

1 Answer 1

6

You need to ensure that the dependencies are set properly, main application module needs to depend on the library module and there must be no duplicate dependencies on jars.

I've prepared a sample project using the demo provided for this library. Unzip, open samples/demos in IntelliJ IDEA, ensure you have Android Platform 4.0 defined, build.

Sign up to request clarification or add additional context in comments.

1 Comment

Looks like the maven dependencies were the issue. IntelliJ IDEA is a great IDE, but it takes time getting used to compared to Eclipse. Thanks!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.