Originally Posted by tomheng
can not find symbol when compiling cm 11.0 on debian.
any help will be greatful.
packages/apps/Settings/src/com/android/settings/hardware/DisplayColor.java:109: cannot find symbol
symbol : method getDefValue()
location: class org.cyanogenmod.hardware.DisplayColorCalibration
int defaultValue = DisplayColorCalibration.getDefValue();
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.
I got the same error just now and I'm trying to track down the java class it's referring to. Perhaps getDefValue has changed in it.
---------- Post added at 09:38 AM ---------- Previous post was at 09:32 AM ----------
The missing value is in the "common" device folder for your hardware. In my case, /device/lge/g2-common
specifically, it's in the file /device/lge/g2-common/cmhw/org/cyanogenmod/hardware/DisplayColorCalibration.java
It SHOULD work if you add in the proper support for getDefValue as found in THIS COMMIT
I'm going to make the changes and give it another try
---------- Post added at 10:25 AM ---------- Previous post was at 09:38 AM ----------
Well, my G2 build (VZW vs980) completed. Copied it to my device and flashed. Apart from an odd glitch where the vibration notification was going nonstop until I manually adjusted the audio mode (to vibrate only, then back to sound), everything works well.