import android packages cannot be resolved

前端 未结 9 1608
时光说笑
时光说笑 2020-12-14 15:12

My android application, built inside Eclipse, suddenly fails to build with dozens of errors. The most obvious are errors indicating that all the android imports cannot be r

9条回答
  •  孤城傲影
    2020-12-14 16:14

    What all the others said.

    Specifically, I recommend you go to Project > Properties > Java Build Path > Libraries and make sure you have exactly one copy of android.jar referenced. (Sometimes you can get two if you're importing a project.) And that its path is correct.

    Sometimes you can get the system to resolve this for you by clicking a different target SDK in Project > Properties > Android, then restoring your original selection.

提交回复
热议问题