Welcome to the Android Central Forums Create Your Account or Ask a Question Answers in 5 minutes - no registration required!
+ Reply
Results 1 to 1 of 1
  1. Thread Author  Thread Author    #1  
    Unregistered
    Unregistered's Avatar
    Guest

    Default error 41 while building android

    I'm trying to build a ROM for Android and everything is going smooth, but then i added Proximity Wake feature from CM and got this error:

    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
    when i open up the file i find this lines:

    advancedPrefs.removePreference(findPreference(KEY_PROXIMITY_WAKE));
    Settings.System.putInt(getContentResolver(), Settings.System.PROXIMITY_ON_WAKE, 1);
    The error states that it cannot find a symbol, what is wrong?

Similar Threads

  1. Replies: 3
    Last Post: 05-17-2015, 10:44 AM
  2. Why am I getting a download error with the Google Play Store?
    By Kent Nehemiah Ybalez in forum Android 4.1 / 4.2 / 4.3 Jelly Bean
    Replies: 2
    Last Post: 08-23-2014, 09:58 AM
  3. Secure Work Space "Cannot establish WorkSpace" on Android 4G
    By AC Question in forum Ask a Question
    Replies: 0
    Last Post: 08-22-2014, 02:29 AM
  4. Galaxy s2 MMS error
    By Unregistered in forum Ask a Question
    Replies: 1
    Last Post: 08-22-2014, 12:47 AM
  5. network error
    By AC Question in forum Ask a Question
    Replies: 1
    Last Post: 08-21-2014, 11:41 PM

Posting Permissions