Make sure your Java compiler compliance level in Eclipse is set to
1.6, not 1.5. You can find this in Project Properties, in the Java
Compiler area.
On Sun, Jul 8, 2012 at 5:47 PM, Shawn Walker binarycrusa...@gmail.com wrote:
Greetings,
I'm trying to build and run the ApiDemos from the Android JellyBean 4.1 SDK.
I've been able to successfully run the very basic new android project, but
I've had no luck with the ApiDemos from the SDK Samples.
These are the steps I followed:
1) from eclipse, file - new project - android - android sample project
2) Build Target - Android 4.1
3) ApiDemos - Finish
4) Right-Click ApiDemos Project in Package Explorer - Android Tools - Add
Support Library
5) Accept All Licenses - Install
However, once eclipse built the project, it found 69 errors, and had 573
warnings (obviously the build failed).
Here's a sampling of the errors:
Description Resource Path Location Type
The method getItemId(int) of type TaskAdapter must override a superclass
method TaskListView.java
/ApiDemos/src/com/example/android/apis/accessibility line 116 Java Problem
The method getView(int, View, ViewGroup) of type
GameControllerInput.SummaryAdapter must override a superclass method
GameControllerInput.java /ApiDemos/src/com/example/android/apis/view line
444 Java Problem
The method getItem(int) of type TaskAdapter must override a superclass
method TaskListView.java
/ApiDemos/src/com/example/android/apis/accessibility line 111 Java Problem
The method getCount() of type TaskAdapter must override a superclass method
TaskListView.java /ApiDemos/src/com/example/android/apis/accessibility line
79 Java Problem
The method getView(int, View, ViewGroup) of type TaskAdapter must override a
superclass method TaskListView.java
/ApiDemos/src/com/example/android/apis/accessibility line 87 Java Problem
The method onCheckedChanged(CompoundButton, boolean) of type new
CompoundButton.OnCheckedChangeListener(){} must override a superclass method
Hover.java /ApiDemos/src/com/example/android/apis/view line 101 Java Problem
The method onActionItemClicked(ActionMode, MenuItem) of type
OverscanActivity.IV.MyActionModeCallback must override a superclass method
OverscanActivity.java /ApiDemos/src/com/example/android/apis/view line 93
Java Problem
The method compare(LoaderCustom.AppEntry, LoaderCustom.AppEntry) of type new
ComparatorLoaderCustom.AppEntry(){} must override a superclass method
LoaderCustom.java /ApiDemos/src/com/example/android/apis/app line 152 Java
Problem
The method getCount() of type GameControllerInput.SummaryAdapter must
override a superclass method GameControllerInput.java
/ApiDemos/src/com/example/android/apis/view line 429 Java Problem
The method getItem(int) of type GameControllerInput.SummaryAdapter must
override a superclass method GameControllerInput.java
/ApiDemos/src/com/example/android/apis/view line 434 Java Problem
The method getItemId(int) of type GameControllerInput.SummaryAdapter must
override a superclass method GameControllerInput.java
/ApiDemos/src/com/example/android/apis/view line 439 Java Problem
...
What have I done wrong?
Does anyone have a proven set of steps to be able to build and run the
ApiDemos for the JB 4.1 SDK?
-Shawn
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy
Android Training in DC: http://marakana.com/training/android/
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en