English 中文(简体)
行动Barsherlock AndersManifest.xml和其他在进口过程中丢失的文件
原标题:ActionBarSherlock AndroidManifest.xml and other files missing on import

我要尝试BarSherlock行动图书馆,但无论我所尝试的是哪一个项目获得了红色的挖掘点,还是锁定了红色的挖掘点,或者有错,或者我获得“[2011-11-09 18:59:29 - 图书馆-行动” AndersManifest,xml file Disappearance, 等......

I constantly open, close, clean, "fix project properties". I ve tried it on the app i actually want to use it on and ive tried it with a brand new project with nothing else in the workspace but the library.

我确实不知道什么是尝试的,或者说我做错做什么,以使之似乎如此模糊。

EDIT: for example, right now sherlock has a red x with the missing manifest error and my project has a red exclamation point and when i go to build path the error is "actionbarsherlock.jar - ...(missing)".

EDIT2: I ve looked many place including here, here, here, and here.

最佳回答

Fixed. Following note made by Gintautas Miliauskas Dec 10 10 at 15:46 on this web page. So basically copy the source to a folder outside the Eclipse workspace, Create Android Project from Existing Source with the source being the library folder. This clears the missing AndroidManifest.xml error. After than the project can be moved to the workspace through Right Click > Refactor > Move

Having fixed the missing AndroidManifest.xml file - now getting erorrs : The type ActionMenuItem must implement the inherited abstract method MenuItem.expandActionView()ActionMenuItem.java /ActionBarSherlock/src/com/actionbarsherlock/internal/view/menu line 11 Java Problem

这些错误的错误。 开始研究这些问题。 而且,也不能即时使用MendyWrapper Action BarWrapper.java。 这些行动在改变“BarSherlock”行动,从Anth 4.0改为“Anderson 3.2”。

问题回答

确保你在项目实施时,其目标为3.2。 它不会与其他任何目标APIC合作。 我最近与这一问题作斗争。

在我首次尝试安装“BarSherlock行动”时,我也有同样的问题。

我的解决办法是:

  1. Completely remove all ActionBarSherlock files/folder
  2. Update Eclipse (Help -> Check for updates)
  3. Re-download ActionBarSherlock
  4. Unpack it to a folder outside my Eclipse workspace.
  5. Do the File -> New Android Project -> from existing source, using com_actionbarsherlock as the project name (first time I used ActionBarSherlock).
  6. Change my app project to target API version 15
  7. Import com.actionbarsherlock.app.SherlockFragmentActivity etc.

如果你在进口Sherlock图书馆时遇到麻烦,以躲避,拿到失踪的标志和其他档案,那么我就有一个简单的工作

我不肯定为什么发生这种情况。 但现在我能够用我的所有机器解决这一问题。

基本上,我们将使用安乐器进口,然后用香草进口。

  1. Add project to Eclipse by going to File >> New Project >> Android Project
  2. Select existing project from existing source and select the folder Your-Sherlock-Project-Path/library, continue and hit Finish.
  3. You will get errors, missing Manifest and more ...
  4. Now go to File >> Import and select import existing file system Select the same folder from step 2. Make sure your into folder is from Step 2
  5. Tick overwrite all files.
  6. That is it .... Thanks :P

乘客。





相关问题
Android - ListView fling gesture triggers context menu

I m relatively new to Android development. I m developing an app with a ListView. I ve followed the info in #1338475 and have my app recognizing the fling gesture, but after the gesture is complete, ...

AsyncTask and error handling on Android

I m converting my code from using Handler to AsyncTask. The latter is great at what it does - asynchronous updates and handling of results in the main UI thread. What s unclear to me is how to handle ...

Android intent filter for a particular file extension?

I want to be able to download a file with a particular extension from the net, and have it passed to my application to deal with it, but I haven t been able to figure out the intent filter. The ...

Android & Web: What is the equivalent style for the web?

I am quite impressed by the workflow I follow when developing Android applications: Define a layout in an xml file and then write all the code in a code-behind style. Is there an equivalent style for ...

TiledLayer equivalent in Android [duplicate]

To draw landscapes, backgrounds with patterns etc, we used TiledLayer in J2ME. Is there an android counterpart for that. Does android provide an option to set such tiled patterns in the layout XML?

Using Repo with Msysgit

When following the Android Open Source Project instructions on installing repo for use with Git, after running the repo init command, I run into this error: /c/Users/Andrew Rabon/bin/repo: line ...

Android "single top" launch mode and onNewIntent method

I read in the Android documentation that by setting my Activity s launchMode property to singleTop OR by adding the FLAG_ACTIVITY_SINGLE_TOP flag to my Intent, that calling startActivity(intent) would ...

From Web Development to Android Development

I have pretty good skills in PHP , Mysql and Javascript for a junior developer. If I wanted to try my hand as Android Development do you think I might find it tough ? Also what new languages would I ...

热门标签