Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,729,054 Members 40,850 Now Online
XDA Developers Android and Mobile Development Forum

[Q] can not find symbol when compiling cm 11.0

Tip us?
 
tomheng
Old
#1  
Junior Member - OP
Thanks Meter 1
Posts: 3
Join Date: Apr 2011
Default [Q] can not find symbol when compiling cm 11.0

can not find symbol when compiling cm 11.0 on debian.

any help will be greatful.

Code:
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.
1 error
 
RandomPooka
Old
(Last edited by RandomPooka; 31st May 2014 at 03:32 PM.)
#2  
RandomPooka's Avatar
Senior Member
Thanks Meter 202
Posts: 633
Join Date: Oct 2010
Quote:
Originally Posted by tomheng View Post
can not find symbol when compiling cm 11.0 on debian.

any help will be greatful.

Code:
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.
1 error
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.
 
tomheng
Old
#3  
Junior Member - OP
Thanks Meter 1
Posts: 3
Join Date: Apr 2011
i recomipiled successfully, after modify the file according your answer.

thanks a lot, and i will move on my ROM
The Following User Says Thank You to tomheng For This Useful Post: [ Click to Expand ]
 
RandomPooka
Old
#4  
RandomPooka's Avatar
Senior Member
Thanks Meter 202
Posts: 633
Join Date: Oct 2010
Quote:
Originally Posted by tomheng View Post
i recomipiled successfully, after modify the file according your answer.

thanks a lot, and i will move on my ROM
Very glad to hear it!
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes