سؤال

Today I deleted by mistake appcompat_v7 and few of my apps got this error:

R cannot be resolved to a variable

I tried with importing my package name, but eclipse changes it by default to import android.R; Is there anything I can do? I did clean project several times it didn't work.

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

المحلول

Try readding the appcompat_v7 to the project. It is in /path-to-sdk/extras/android/support/v7/appcompat. Or you can set the minimum sdk attribute in the Manifest.xml to 14.

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