Is anyone else having problems importing a project with ActionBarSherlock
?
I have a total of 100 errors and 17 warnings. This worked perfectly in Eclipse
. I followed the steps to create a Gradle build file. There were no import errors until I tried to build the Project.
I also tried re-downloading ABS fresh and replace into my project.
Were there known issues with ABS and IntelliJ
? (which of course Android Studio is now based)
Here are a few errors I'm seeing:
java: ...
Workspace/ActionBarSherlock/src/com/actionbarsherlock/app/SherlockFragment.java:4: cannot find symbol
symbol : class Fragment
location: package android.support.v4.app
java: ... Workspace/ActionBarSherlock/src/com/actionbarsherlock/app/SherlockListFragment.java:4: cannot find symbol
symbol : class ListFragment
location: package android.support.v4.app
java: ...
Workspace/ActionBarSherlock/src/com/actionbarsherlock/widget/SuggestionsAdapter.java:33:
package android.support.v4.widget does not exist
Any help really appreciated
Edit: Seems there are no issues using Standard IntelliJ IDEA. Many guides online for setting it up with ABS. Also as Jake mentioned, he's actually been developing the thing in IntelliJ
Here is an example guide: http://android-wtf.com/2012/09/how-to-configure-actionbarsherlock-with-intellij-idea/
However, I'm still unsure why its not working in Android Studio
Edit2: solution in answer below. In Short: (I downloaded abs
latest version, extracted, deleted the old version of abs
from my project, then file > import module...
to import actionbarsherlock
directory into my existing project. Nb, in my particular case I had an issue with junit compilation error and needed to delete \test\junit\ )