找不到符号符号:变量PROXIMITY_ON_WAKE?

时间:2014-08-22 06:33:24

标签: java android

我正在尝试为Android构建一个ROM,一切顺利,但后来我从CM添加了Proximity Wake功能并得到了这个错误:

packages/apps/Settings/src/com/android/settings/DisplaySettings.java:148: cannot find symbol symbol  : 
variable advancedPrefs location: class com.android.settings.DisplaySettings         
advancedPrefs.removePreference(findPreference(KEY_PROXIMITY_WAKE));         ^ 
packages/apps/Settings/src/com/android/settings/DisplaySettings.java:149: cannot find symbol symbol  : 
variable PROXIMITY_ON_WAKE location: class android.provider.Settings.System         
Settings.System.putInt(getContentResolver(), Settings.System.PROXIMITY_ON_WAKE, 1);


^ 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. 2 errors

当我打开文件时,我发现这一行:

advancedPrefs.removePreference(findPreference(KEY_PROXIMITY_WAKE));             
Settings.System.putInt(getContentResolver(), Settings.System.PROXIMITY_ON_WAKE, 1);

错误说它找不到符号,出了什么问题?

0 个答案:

没有答案