在eclipse上导入现有的Android项目错误

时间:2014-06-23 05:21:36

标签: java android eclipse dependencies apk-expansion-files

我最近在我的项目上遇到了很多错误,我在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天。我该怎么办。请给我一个帮助。

1 个答案:

答案 0 :(得分:0)

你可以试试这个 -

从这里下载最新的android sdk,http://developer.android.com/sdk/index.html#download

打开sdk管理器并安装项目所需的库。做一个新项目。复制此新项目中的所有布局文件,然后清理项目。现在创建具有相同名称的新java文件并复制代码。在清单文件中创建条目。它现在应该工作。 我也存在同样的问题。在java构建路径中添加库是行不通的。