我下載了一個Android項目,並且出現了一些錯誤。如何導入com.android.internal.telephony?
如何在Android中使用此導入?
import com.android.internal.telephony.IccSmsInterfaceManager;
import com.android.internal.telephony.Phone;
import com.android.internal.telephony.PhoneFactory;
import com.android.internal.telephony.SMSDispatcher;
當我導入此,我得到了這樣的錯誤:
The import com.android.internal.telephony cannot be resolved
The import com.android.internal.telephony cannot be resolved
The import com.android.internal.telephony cannot be resolved
The import com.android.internal.telephony cannot be resolved
稍後在代碼中有:
Phone phone = PhoneFactory.getDefaultPhone();
與錯誤:
Multiple markers at this line
- Phone cannot be resolved to a type
- PhoneFactory cannot be resolved
等等......
我試圖用https://stackoverflow.com/a/16377968/3203914 修復它,但我沒有爲我工作。
可以請別人告訴我如何解決它?
謝謝!
有U固定嗎? – Mariusz