سؤال

I have a strange issue. I have working application project (working with appcompat-support-lib) and i want to add there ActionBarSherlock-library. After I add this lib to my project, after a while it removes my R.java folder - so i get errors in almost every class of my project.

Do you know how to solve this?

Thanks in advance!

هل كانت مفيدة؟

المحلول 2

So I've solved it this way:

  • I've created new project and added support library ActionBarSherlock
  • A copied all of previous project to current - using Sherlock
  • I put the same package to second project
  • And of course I had to change some things in classes (Fragment to SherlockFragment etc.)

نصائح أخرى

Why are you adding ActionBarSherlock to your project when you've already got your project working with the appcompat library? They both use attributes and resources, that are named the same, so this causes issues. You can't use both at the same time.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top