[Java for Android App Development] thewisenerd:
Hi, basically a n00b to Java, and now I have these errors in front of me :confused:

I was (and still am) trying to compile ProvisionMod (https://github.com/Provision-Team) [Branch: ICS] for my device. The problem is that everything goes on well, until it starts building the packages. This particular package named ControlPanel (source found here) is causing exactly 14 errors, which is causing the compilation to stop.

Error Log:

packages/apps/ControlPanel/src/com/provision/customizer/fragment/Clock.java:33: cannot find symbol
symbol : variable CLOCK_USE_SECOND
location: class android.provider.Settings.System
cSecond = new SettingCheckBoxManager(p, "clock_use_second", Settings.System.CLOCK_USE_SECOND, false);
^
packages/apps/ControlPanel/src/com/provision/customizer/fragment/Clock.java:34: cannot find symbol
symbol : variable CLOCK_COLOR
location: class android.provider.Settings.System
cColor = new SettingColorManager(p, "clock_color", Settings.System.CLOCK_COLOR, getResources().getColor(android.R.color.holo_blue_light));
^
packages/apps/ControlPanel/src/com/provision/customizer/fragment/Clock.java:35: cannot find symbol
symbol : variable CLOCK_STYLE
location: class android.provider.Settings.System
cStyle = new SettingListManager(p, "clock_style", Settings.System.CLOCK_STYLE, 0);
^
packages/apps/ControlPanel/src/com/provision/customizer/fragment/GeneralUI.java:28: cannot find symbol
symbol : variable USE_CUSTOM_CARRIER
location: class android.provider.Settings.System
cCarrier = new SettingCheckBoxManager(p, "use_custom_carrier", Settings.System.USE_CUSTOM_CARRIER, false);
^
packages/apps/ControlPanel/src/com/provision/customizer/fragment/GeneralUI.java:29: cannot find symbol
symbol : variable CUSTOM_CARRIER_TEXT
location: class android.provider.Settings.System
eText = new SettingEditManager(p, "custom_carrier_text", Settings.System.CUSTOM_CARRIER_TEXT, "PROVISION");
^
packages/apps/ControlPanel/src/com/provision/customizer/fragment/Navigation.java:104: cannot find symbol
symbol : variable NAVBAR_EDIT
location: class android.provider.Settings.System
Settings.System.putInt(getContentResolver(), Settings.System.NAVBAR_EDIT, on ? 1 : 0);
^
packages/apps/ControlPanel/src/com/provision/customizer/fragment/Navigation.java:105: cannot find symbol
symbol : variable NAVBAR_SAVE
location: class android.provider.Settings.System
Settings.System.putInt(getContentResolver(), Settings.System.NAVBAR_SAVE, save ? 1 : 0);
^
packages/apps/ControlPanel/src/com/provision/customizer/fragment/Navigation.java:207: cannot find symbol
symbol : variable NAVIGATION_BAR_TRANSPARENCY
location: class android.provider.Settings.System
Settings.System.putFloat(getContentResolver(), Settings.System.NAVIGATION_BAR_TRANSPARENCY, (float)(t / 255.0f));
^
packages/apps/ControlPanel/src/com/provision/customizer/fragment/Navigation.java:215: cannot find symbol
symbol : variable NAVIGATION_BAR_COLOR
location: class android.provider.Settings.System
cBkg = new SettingColorManager(root, "navbar_background_color", Settings.System.NAVIGATION_BAR_COLOR, Color.BLACK);
^
packages/apps/ControlPanel/src/com/provision/customizer/fragment/Navigation.java:216: cannot find symbol
symbol : variable NAVIGATION_BUTTON_COLOR
location: class android.provider.Settings.System
cBtn = new SettingColorManager(root, "navbar_color", Settings.System.NAVIGATION_BUTTON_COLOR, Color.WHITE);
^
packages/apps/ControlPanel/src/com/provision/customizer/fragment/Navigation.java:217: cannot find symbol
symbol : variable NAVIGATION_BAR_GLOW_COLOR
location: class android.provider.Settings.System
cGlw = new SettingColorManager(root, "navbar_glow_color", Settings.System.NAVIGATION_BAR_GLOW_COLOR, getResources().getColor(
^
packages/apps/ControlPanel/src/com/provision/customizer/fragment/Navigation.java:220: cannot find symbol
symbol : variable NAVIGATION_BAR_TRANSPARENCY
location: class android.provider.Settings.System
eTrans.setText(String.valueOf((int)(Settings.System.getFloat(getContentResolver(), Settings.System.NAVIGATION_BAR_TRANSPARENCY, 0.6f)) * 255));
^
packages/apps/ControlPanel/src/com/provision/customizer/fragment/NotiPanel.java:26: cannot find symbol
symbol : variable USE_WIDGETBOARD
location: class android.provider.Settings.System
cWeather = new SettingCheckBoxManager(p, "use_weather", Settings.System.USE_WIDGETBOARD, false);
^
packages/apps/ControlPanel/src/com/provision/customizer/fragment/StatusBar.java:31: cannot find symbol
symbol : variable SHOW_IME_SWITCHER
location: class android.provider.Settings.System
cIME = new SettingCheckBoxManager(p, "show_ime_switcher", Settings.System.SHOW_IME_SWITCHER, true);
^
14 errors
make: *** [out/target/common/obj/APPS/ControlPanel_intermediates/classes-full-debug.jar] Error 41
make: *** Waiting for unfinished jobs....
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
DroidDoc took 12 sec. to write docs to out/target/common/docs/api-stubs

Note that the "^" points towards the end of the package name, and beginning of variable name. Example:

packages/apps/ControlPanel/src/com/provision/customizer/fragment/Clock.java:33: cannot find symbol
symbol : variable CLOCK_USE_SECOND
location: class android.provider.Settings.System
cSecond = new SettingCheckBoxManager(p, "clock_use_second", Settings.System.CLOCK_USE_SECOND, false);
^

Link to the "packages/apps/ControlPanel/src/com/provision/customizer/fragment" folder on GitHub: https://github.com/Provision-Team/android_packages_apps_ControlPanel/tree/ics/src/com/provision/customizer/fragment

Note: I tried using make clean; make update-api; . build/envsetup.sh; brunch pico -j5, but still doesn't work :rolleyes:

What could be the cause of this error? Any changes that I need to make, or any variables that I need to pre-initialise, or any libraries to import?