[Android Q&A, Help & Troubleshooting] brajesh.sharma87:
I cherry-picked commits from purity rom for quick settings. In the build process I am getting this error at the time of "settings.apk" compilation.

packages/apps/Settings/src/com/android/settings/quicksettings/QuickSettings.java:83: cannot find symbol
symbol : method isPhone(android.app.Activity)
location: class com.android.settings.Utils
if (!Utils.isPhone(getActivity())) {
^
packages/apps/Settings/src/com/android/settings/quicksettings/QuickSettingsTiles.java:235: cannot find symbol
symbol : method isPhone(android.app.Activity)
location: class com.android.settings.Utils
if (Utils.isPhone(getActivity())) {

And while compilation of SystemUI I get this error:

target Java: SystemUI (out/target/common/obj/APPS/SystemUI_intermediates/classes)
target Java: TeleService (out/target/common/obj/APPS/TeleService_intermediates/classes)
frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:217: com.android.systemui.statusbar.BaseStatusBar.SettingsObserver has private access in com.android.systemui.statusbar.BaseStatusBar
private SettingsObserver mSettingsObserver;
^
frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:692: cannot find symbol
symbol : class ContentResolver
location: class com.android.systemui.statusbar.phone.PhoneStatusBar
final ContentResolver resolver = mContext.getContentResolver();
^
frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:2545: cannot find symbol
symbol: variable mNotifyClearAll
mPile.runOnDismiss(lastEntry, mNotifyClearAll);
^
frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:2954: cannot find symbol
symbol : class ContentResolver
location: class com.android.systemui.statusbar.phone.PhoneStatusBar.TilesChangedObserver
final ContentResolver resolver = mContext.getContentResolver();
^
frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:2965: cannot find symbol
symbol : class ContentResolver
location: class com.android.systemui.statusbar.phone.PhoneStatusBar.TilesChangedObserver
final ContentResolver resolver = mContext.getContentResolver();
^
frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java:2989: cannot find symbol
symbol : class ContentResolver
location: class com.android.systemui.statusbar.phone.PhoneStatusBar.TilesChangedObserver
final ContentResolver cr = mContext.getContentResolver();
^
packages/services/Telephony/src/com/android/phone/PhoneInterfaceManager.java:55: com.android.phone.PhoneInterfaceManager is not abstract and does not override abstract method getLteOnGsmMode() in com.android.internal.telephony.ITelephony
public class PhoneInterfaceManager extends ITelephony.Stub {
^
frameworks/base/packages/SystemUI/src/com/android/systemui/quicksettings/WiFiDisplayTile.java:57: cannot find symbol
symbol : variable ic_qs_remote_display_connected
location: class com.android.systemui.R.drawable
mDrawable = R.drawable.ic_qs_remote_display_connected;
^
frameworks/base/packages/SystemUI/src/com/android/systemui/quicksettings/WiFiDisplayTile.java:60: cannot find symbol
symbol : variable ic_qs_remote_display
location: class com.android.systemui.R.drawable
mDrawable = R.drawable.ic_qs_remote_display;
^
frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettings.java:672: cannot find symbol
symbol: variable MediaRouter
MediaRouter.ROUTE_TYPE_REMOTE_DISPLAY,
^
frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettings.java:671: cannot find symbol
symbol: variable MediaRouteDialogPresenter
dialog[0] = MediaRouteDialogPresenter.createDialog(mContext,
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
10 errors
make: *** [out/target/common/obj/APPS/SystemUI_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.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
make: *** [out/target/common/obj/APPS/TeleService_intermediates/classes-full-debug.jar] Error 41
brajesh@Brajesh-Sharma:~/android/aosp-kitkat$

Any help?