I'm using Ubuntu 19.10, and build the rom in "user" variant.What version system does the landlord use to compile? I am using Ubuntu 16.04 LTS. Did the landlord encounter such a problem during compilation ?
If you're building "userdebug", there should not be errors that caused by "-Werror" flag (it means to regard all warnings as errors). As for a solution, whenever you met such problems, just add cflags "-Wno-[warning type]" (eg. "-Wno-incompatible-pointer-types") to Android.mk besides the source files.
Example #0
before:
LOCAL_CFLAGS += -O3 -g0 -Wall -Werror
after:
LOCAL_CFLAGS += -O3 -g0 -Wall
or:
LOCAL_CFLAGS += -O3 -g0 -Wall -Wno-[warning type]
Last edited: