簡體   English   中英

在Eclipse上導入現有的Android項目錯誤

[英]Imported existing Android project error on eclipse

我最近在項目上遇到了很多錯誤,這些錯誤是我在eclipse上導入的。 項目構建目標是Android 2.3.3(API級別10)和minSdkVersion,targetSdkVersion分別是“ 9”和“ 14”。 此外,Zip_file,庫(許可)和(Google Play)downloader_library已添加到項目中。

關鍵是我不知道出現的錯誤。

窗口->顯示視圖->問題-> 4個錯誤(4個項目)

Project 'downloader_library' is missing required library :'/Users/Documents/Folder/downloader_library/bin/downloader_library.jar'
The Container 'Android Dependencies' references non existing library'/Users/Documents/Folder/downloader_library/bin/downloader_library.jar'
The project cannot be built until build path errors are resolved
The project cannot be built until build path errors are resolved

您知道我將“ downloader_library.jar”放在上面的相同路徑中,但是仍然存在錯誤。

額外錯誤:

com.google.android.vending.expansion.downloader.impl / downloader_library / V14CustomNotification

Notification.Builder cannot be resolved to a type
Multiple markers at this line - Notification.Builder cannot be resolved to a type
                          - Notification.Builder cannot be resolved to a type 

項目/包裝/

The hierarchy of the type MainActivity is inconsistent
ICE_CREAM_SANDWICH cannot be resolved or is not a field
SYSTEM_UI_FLAG_LOW_PROFILE cannot be resolved or is not a field
The hierarchy of the type MarketActivity is inconsistent
The import android.nfc.NfcAdapter.CreateNdefMessageCallback cannot be resolved
The import android.nfc.NfcEvent cannot be resolved
The import com.google.android.vending.expansion cannot be resolved
The import com.google.android.vending.expansion cannot be resolved
CreateNdefMessageCallback cannot be resolved to a type
The method setNdefPushMessageCallback(MuseumActivity, MuseumActivity) is undefined for the type NfcAdapter
Helpers cannot be resolved
DownloaderClientMarshaller cannot be resolved
NfcEvent cannot be resolved to a type
DownloaderService cannot be resolved to a type
The method getPublicKey() of type ExpansionFileDownloaderService must override or implement a supertype method
The method getSALT() of type ExpansionFileDownloaderService must override or implement a supertype method
The method getAlarmReceiverClassName() of type ExpansionFileDownloaderService must override or implement a supertype method

我只想在應用程序中編輯一些代碼,但我什至無法構建該項目。 我為此浪費了7天。 我該怎么辦。 請給我一個幫助。

你可以試試這個

從此處下載最新的android sdk, http://developer.android.com/sdk/index.html#download

打開sdk管理器並安裝項目所需的庫。 制作一個新項目。 復制該新項目中的所有布局文件,然后清理該項目。 現在用相同的名稱制作新的Java文件並復制代碼。 在清單文件中創建條目。 它現在應該可以工作。 我也有同樣的問題。 在Java構建路徑中添加庫無效。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM