Android Source & Eclipse, Unresolved imports and undefined Variables
I used the search function for forums and Google to try and find an answer first, so this is either a somewhat unique issue... or I am very bad at searching.
I followed the instruction on the Android source site, using git to acquire the source, etc...
However I am having many, many issues when I load the source for Launcher into eclipse as a new project from existing source. Immediately upon load, I have 100 errors, the majority of which are as follows:
Code:
Description Resource Path Location Type
com.android.internal.R cannot be resolved Launcher.java Launcher/src/com/android/launcher line 865 Java Problem
ISearchManager cannot be resolved Search.java Launcher/src/com/android/launcher line 364 Java Problem
IWallpaperService cannot be resolved Launcher.java Launcher/src/com/android/launcher line 292 Java Problem
mBottom cannot be resolved BubbleTextView.java Launcher/src/com/android/launcher line 80 Java Problem
mContext cannot be resolved LiveFolderAdapter.java Launcher/src/com/android/launcher line 144 Java Problem
mCursor cannot be resolved Search.java Launcher/src/com/android/launcher line 719 Java Problem
mLeft cannot be resolved BubbleTextView.java Launcher/src/com/android/launcher line 80 Java Problem
mParent cannot be resolved LauncherAppWidgetHostView.java Launcher/src/com/android/launcher line 78 Java Problem
mRight cannot be resolved BubbleTextView.java Launcher/src/com/android/launcher line 80 Java Problem
mScrollX cannot be resolved BubbleTextView.java Launcher/src/com/android/launcher line 104 Java Problem
mScrollY cannot be resolved BubbleTextView.java Launcher/src/com/android/launcher line 105 Java Problem
mTop cannot be resolved BubbleTextView.java Launcher/src/com/android/launcher line 80 Java Problem
SearchableInfo cannot be resolved to a type Search.java Launcher/src/com/android/launcher line 72 Java Problem
SearchManager.SOURCE cannot be resolved Launcher.java Launcher/src/com/android/launcher line 845 Java Problem
ServiceManager cannot be resolved Launcher.java Launcher/src/com/android/launcher line 291 Java Problem
STATUS_BAR_SERVICE cannot be resolved Launcher.java Launcher/src/com/android/launcher line 1119 Java Problem
StatusBarManager cannot be resolved to a type Launcher.java Launcher/src/com/android/launcher line 1119 Java Problem
The constructor Vibrator() is not visible DragLayer.java Launcher/src/com/android/launcher line 94 Java Problem
The import android.app.ISearchManager cannot be resolved Search.java Launcher/src/com/android/launcher line 19 Java Problem
The import android.app.IWallpaperService cannot be resolved Launcher.java Launcher/src/com/android/launcher line 78 Java Problem
The import android.app.StatusBarManager cannot be resolved Launcher.java Launcher/src/com/android/launcher line 24 Java Problem
The import android.os.ServiceManager cannot be resolved Launcher.java Launcher/src/com/android/launcher line 54 Java Problem
The import android.os.ServiceManager cannot be resolved Search.java Launcher/src/com/android/launcher line 34 Java Problem
The import android.server cannot be resolved Search.java Launcher/src/com/android/launcher line 35 Java Problem
The import com.android.internal.util.XmlUtils cannot be resolved LauncherProvider.java Launcher/src/com/android/launcher line 49 Java Problem
The method peekInstance() is undefined for the type InputMethodManager SearchAutoCompleteTextView.java Launcher/src/com/android/launcher line 44 Java Problem
I am using the cupcake branch in git, and have tried to have the project use both the 1.5 SDK or the Google SDK (1.5 with Google APIs)
If anyone has any ideas as to why this is occuring, I would very much appreciate it.
Also, I can write any original android programs I want using this eclipse setup, so I am sure I must have an issue related just with the Android Source.
|