Eclipse Android The Import Is Never Used

When coding you frequently remove unnecessary code and run into this warning for Android in Eclipse or Motodev. The import * is never used.

“The import android.util.Log is never used”

You can do two things to resolve this error, go to the line and remove the import. Or the easy way, press Ctrl + Shift + O. That’s the letter O and not zero. This is the “Organize Imports” and will automatically fix many errors and warning. In this case it’ll remove the unnecessary imports and resolve the warnings.

Posted in Android, ErrorFix Tagged with: , ,