Unable to resolve target 'android-10' until the SDK is loaded

打開好久以前eclipse寫的demo報錯

1、The project was not built since its build path is incomplete. 

Cannot find the class file for java.lang.Object. Fix the build path then try building this project    

2、The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files   

3、Unable to resolve target 'android-10' until the SDK is loaded. 

解決方式:

步驟1

ADT,偏好設置,Android,SDK Location指向路徑爲:

/Users/luminal/Documents/workspace_all/eclipse/android-neon/adt-bundle-mac-x86_64-20131030/sdk

步驟2

選中項目,右擊,Build Path,Configure Build Path,Android,根據需要選擇版本這裏我選的是5.0

 

 

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章