[Android] m4570d0n:
I'm trying to build Sultanxda's version of LineageOS 14.1 for the Oneplus One and I'm hitting an error that I'm not quite sure how to resolve.

Here's the link to the ROM thread and the local manifest with the modified sources he uses:

https://xdaforums.com/oneplus-one/orig-development/rom-kernel-unofficial-lineageos-14-1-3-t3626403

https://github.com/sultanxda/android/blob/master/bacon/cm-14.1/local_manifest.xml

First errors I encountered were these:

[ 17% 2719/15522] Docs droiddoc: /home/m4570d0n/LineageOS/out/target/common/docs/cm-api-stubs
vendor/cmsdk/sdk/src/java/cyanogenmod/preference/SelfRemovingSwitchPreference.java:19: error: package android.support.v14.preference does not exist
import android.support.v14.preference.SwitchPreference;
^
vendor/cmsdk/sdk/src/java/cyanogenmod/preference/SelfRemovingSwitchPreference.java:20: error: package android.support.v7.preference does not exist
import android.support.v7.preference.PreferenceViewHolder;
^
vendor/cmsdk/sdk/src/java/cyanogenmod/preference/SelfRemovingSwitchPreference.java:27: error: cannot find symbol
public class SelfRemovingSwitchPreference extends SwitchPreference {
^
symbol: class SwitchPreference
vendor/cmsdk/sdk/src/java/cyanogenmod/preference/ConstraintsHelper.java:27: error: package android.support.v7.preference does not exist
import android.support.v7.preference.Preference;
^
vendor/cmsdk/sdk/src/java/cyanogenmod/preference/ConstraintsHelper.java:28: error: package android.support.v7.preference does not exist
import android.support.v7.preference.PreferenceGroup;
^
vendor/cmsdk/sdk/src/java/cyanogenmod/preference/ConstraintsHelper.java:29: error: package android.support.v7.preference does not exist
import android.support.v7.preference.PreferenceManager;
^
vendor/cmsdk/sdk/src/java/cyanogenmod/preference/ConstraintsHelper.java:30: error: package android.support.v7.preference does not exist
import android.support.v7.preference.PreferenceViewHolder;
^
vendor/cmsdk/sdk/src/java/cyanogenmod/preference/SelfRemovingSwitchPreference.java:47: error: cannot find symbol
public void onBindViewHolder(PreferenceViewHolder holder) {
^
symbol: class PreferenceViewHolder
location: class SelfRemovingSwitchPreference
vendor/cmsdk/sdk/src/java/cyanogenmod/preference/ConstraintsHelper.java:61: error: cannot find symbol
private final Preference mPref;
^
symbol: class Preference
location: class ConstraintsHelper
vendor/cmsdk/sdk/src/java/cyanogenmod/preference/ConstraintsHelper.java:71: error: cannot find symbol
public ConstraintsHelper(Context context, AttributeSet attrs, Preference pref) {
^
symbol: class Preference
location: class ConstraintsHelper
vendor/cmsdk/sdk/src/java/cyanogenmod/preference/ConstraintsHelper.java:100: error: cannot find symbol
private PreferenceGroup getParent(Preference preference) {
^
symbol: class Preference
location: class ConstraintsHelper
vendor/cmsdk/sdk/src/java/cyanogenmod/preference/ConstraintsHelper.java:100: error: cannot find symbol
private PreferenceGroup getParent(Preference preference) {
^
symbol: class PreferenceGroup
location: class ConstraintsHelper
vendor/cmsdk/sdk/src/java/cyanogenmod/preference/ConstraintsHelper.java:104: error: cannot find symbol
private PreferenceGroup getParent(PreferenceGroup root, Preference preference) {
^
symbol: class PreferenceGroup
location: class ConstraintsHelper
vendor/cmsdk/sdk/src/java/cyanogenmod/preference/ConstraintsHelper.java:104: error: cannot find symbol
private PreferenceGroup getParent(PreferenceGroup root, Preference preference) {
^
symbol: class Preference
location: class ConstraintsHelper
vendor/cmsdk/sdk/src/java/cyanogenmod/preference/ConstraintsHelper.java:104: error: cannot find symbol
private PreferenceGroup getParent(PreferenceGroup root, Preference preference) {
^
symbol: class PreferenceGroup
location: class ConstraintsHelper
vendor/cmsdk/sdk/src/java/cyanogenmod/preference/ConstraintsHelper.java:299: error: cannot find symbol
public void onBindViewHolder(PreferenceViewHolder holder) {
^
symbol: class PreferenceViewHolder
location: class ConstraintsHelper
vendor/cmsdk/sdk/src/java/cyanogenmod/preference/SelfRemovingListPreference.java:19: error: package android.support.v7.preference does not exist
import android.support.v7.preference.ListPreference;
^
vendor/cmsdk/sdk/src/java/cyanogenmod/preference/SelfRemovingListPreference.java:20: error: package android.support.v7.preference does not exist
import android.support.v7.preference.PreferenceViewHolder;
^
vendor/cmsdk/sdk/src/java/cyanogenmod/preference/SelfRemovingListPreference.java:27: error: cannot find symbol
public class SelfRemovingListPreference extends ListPreference {
^
symbol: class ListPreference
vendor/cmsdk/sdk/src/java/cyanogenmod/preference/SelfRemovingListPreference.java:47: error: cannot find symbol
public void onBindViewHolder(PreferenceViewHolder holder) {
^
symbol: class PreferenceViewHolder
location: class SelfRemovingListPreference
vendor/cmsdk/sdk/src/java/cyanogenmod/preference/SelfRemovingDropDownPreference.java:19: error: package android.support.v7.preference does not exist
import android.support.v7.preference.DropDownPreference;
^
vendor/cmsdk/sdk/src/java/cyanogenmod/preference/SelfRemovingDropDownPreference.java:20: error: package android.support.v7.preference does not exist
import android.support.v7.preference.PreferenceViewHolder;
^
vendor/cmsdk/sdk/src/java/cyanogenmod/preference/SelfRemovingDropDownPreference.java:27: error: cannot find symbol
public class SelfRemovingDropDownPreference extends DropDownPreference {
^
symbol: class DropDownPreference
vendor/cmsdk/sdk/src/java/cyanogenmod/preference/SelfRemovingDropDownPreference.java:47: error: cannot find symbol
public void onBindViewHolder(PreferenceViewHolder holder) {
^
symbol: class PreferenceViewHolder
location: class SelfRemovingDropDownPreference
vendor/cmsdk/sdk/src/java/cyanogenmod/preference/ConstraintsHelper.java:351: error: cannot find symbol
private PreferenceGroup getParent(Preference p1, Preference p2) {
^
symbol: class Preference
location: class Graveyard
vendor/cmsdk/sdk/src/java/cyanogenmod/preference/ConstraintsHelper.java:351: error: cannot find symbol
private PreferenceGroup getParent(Preference p1, Preference p2) {
^
symbol: class Preference
location: class Graveyard
vendor/cmsdk/sdk/src/java/cyanogenmod/preference/ConstraintsHelper.java:351: error: cannot find symbol
private PreferenceGroup getParent(Preference p1, Preference p2) {
^
symbol: class PreferenceGroup
location: class Graveyard
vendor/cmsdk/sdk/src/java/cyanogenmod/preference/ConstraintsHelper.java:355: error: cannot find symbol
private PreferenceGroup getParent(PreferenceGroup root, Preference preference) {
^
symbol: class PreferenceGroup
location: class Graveyard
vendor/cmsdk/sdk/src/java/cyanogenmod/preference/ConstraintsHelper.java:355: error: cannot find symbol
private PreferenceGroup getParent(PreferenceGroup root, Preference preference) {
^
symbol: class Preference
location: class Graveyard
vendor/cmsdk/sdk/src/java/cyanogenmod/preference/ConstraintsHelper.java:355: error: cannot find symbol
private PreferenceGroup getParent(PreferenceGroup root, Preference preference) {
^
symbol: class PreferenceGroup
location: class Graveyard
vendor/cmsdk/sdk/src/java/cyanogenmod/preference/ConstraintsHelper.java:369: error: cannot find symbol
private void removePreference(PreferenceManager mgr, Preference pref) {
^
symbol: class PreferenceManager
location: class Graveyard
vendor/cmsdk/sdk/src/java/cyanogenmod/preference/ConstraintsHelper.java:369: error: cannot find symbol
private void removePreference(PreferenceManager mgr, Preference pref) {
^
symbol: class Preference
location: class Graveyard
vendor/cmsdk/sdk/src/java/cyanogenmod/preference/ConstraintsHelper.java:377: error: cannot find symbol
public void summonReaper(PreferenceManager mgr) {
^
symbol: class PreferenceManager
location: class Graveyard
vendor/cmsdk/sdk/src/java/cyanogenmod/preference/RemotePreference.java:26: error: package android.support.v7.preference does not exist
import android.support.v7.preference.R;
^
vendor/cmsdk/sdk/src/java/cyanogenmod/preference/SelfRemovingPreference.java:19: error: package android.support.v7.preference does not exist
import android.support.v7.preference.Preference;
^
vendor/cmsdk/sdk/src/java/cyanogenmod/preference/SelfRemovingPreference.java:20: error: package android.support.v7.preference does not exist
import android.support.v7.preference.PreferenceViewHolder;
^
vendor/cmsdk/sdk/src/java/cyanogenmod/preference/SelfRemovingPreference.java:21: error: package android.support.v7.preference does not exist
import android.support.v7.preference.R;
^

However, the build continued after this for a little while so I'm not sure if that was what actually caused the build to fail. At the end before it quit though, I see this:

[ 18% 2839/15522] Building with Jack: /home/m4570d0n/LineageOS/out/target/common/obj/APPS/Snap_intermediates/with-local/classes.dex
FAILED: /bin/bash -c "(rm -f /home/m4570d0n/LineageOS/out/target/common/obj/APPS/Snap_intermediates/with-local/classes.dex ) && (rm -f /home/m4570d0n/LineageOS/out/target/common/obj/APPS/Snap_intermediates/classes.jack ) && (rm -rf /home/m4570d0n/LineageOS/out/target/common/obj/APPS/Snap_intermediates/jack-rsc ) && (mkdir -p /home/m4570d0n/LineageOS/out/target/common/obj/APPS/Snap_intermediates/with-local/ ) && (mkdir -p /home/m4570d0n/LineageOS/out/target/common/obj/APPS/Snap_intermediates/ ) && (mkdir -p /home/m4570d0n/LineageOS/out/target/common/obj/APPS/Snap_intermediates/jack-rsc ) && (rm -f /home/m4570d0n/LineageOS/out/target/common/obj/APPS/Snap_intermediates/jack-rsc/java-source-list ) && (touch /home/m4570d0n/LineageOS/out/target/common/obj/APPS/Snap_intermediates/jack-rsc/java-source-list ) && (echo -n 'packages/apps/Snap/src/android/util/Pools.java packages/apps/Snap/src/com/android/camera/AndroidCameraManagerImpl.java packages/apps/Snap/src/com/android/camera/AnimationManager.java packages/apps/Snap/src/com/android/camera/CameraActivity.java packages/apps/Snap/src/com/android/camera/CameraBackupAgent.java packages/apps/Snap/src/com/android/camera/CameraButtonIntentReceiver.java packages/apps/Snap/src/com/android/camera/CameraDisabledException.java packages/apps/Snap/src/com/android/camera/CameraErrorCallback.java packages/apps/Snap/src/com/android/camera/CameraHardwareException.java packages/apps/Snap/src/com/android/camera/CameraHolder.java packages/apps/Snap/src/com/android/camera/CameraManager.java packages/apps/Snap/src/com/android/camera/CameraManagerFactory.java packages/apps/Snap/src/com/android/camera/CameraModule.java packages/apps/Snap/src/com/android/camera/CameraPreference.java packages/apps/Snap/src/com/android/camera/CameraSettings.java packages/apps/Snap/src/com/android/camera/ComboPreferences.java packages/apps/Snap/src/com/android/camera/CountDownTimerPreference.java packages/apps/Snap/src/com/android/camera/DisableCameraReceiver.java packages/apps/Snap/src/com/android/camera/Exif.java packages/apps/Snap/src/com/android/camera/FocusOverlayManager.java packages/apps/Snap/src/com/android/camera/IconListPreference.java packages/apps/Snap/src/com/android/camera/ImageTaskManager.java packages/apps/Snap/src/com/android/camera/IntArray.java packages/apps/Snap/src/com/android/camera/ListPreference.java packages/apps/Snap/src/com/android/camera/LocationManager.java packages/apps/Snap/src/com/android/camera/MediaSaveService.java packages/apps/Snap/src/com/android/camera/MenuController.java packages/apps/Snap/src/com/android/camera/Mosaic.java packages/apps/Snap/src/com/android/camera/MosaicFrameProcessor.java packages/apps/Snap/src/com/android/camera/MosaicPreviewRenderer.java packages/apps/Snap/src/com/android/camera/MosaicRenderer.java packages/apps/Snap/src/com/android/camera/OnClickAttr.java packages/apps/Snap/src/com/android/camera/OnScreenHint.java packages/apps/Snap/src/com/android/camera/PanoProgressBar.java packages/apps/Snap/src/com/android/camera/PanoUtil.java packages/apps/Snap/src/com/android/camera/PauseButton.java packages/apps/Snap/src/com/android/camera/PhotoController.java packages/apps/Snap/src/com/android/camera/PhotoMenu.java packages/apps/Snap/src/com/android/camera/PhotoModule.java packages/apps/Snap/src/com/android/camera/PhotoUI.java packages/apps/Snap/src/com/android/camera/PieController.java packages/apps/Snap/src/com/android/camera/PreferenceGroup.java packages/apps/Snap/src/com/android/camera/PreferenceInflater.java packages/apps/Snap/src/com/android/camera/PreviewGestures.java packages/apps/Snap/src/com/android/camera/ProxyLauncher.java packages/apps/Snap/src/com/android/camera/RecordLocationPreference.java packages/apps/Snap/src/com/android/camera/RefocusActivity.java packages/apps/Snap/src/com/android/camera/SDCard.java packages/apps/Snap/src/com/android/camera/SecureCameraActivity.java packages/apps/Snap/src/com/android/camera/ShutterButton.java packages/apps/Snap/src/com/android/camera/SoundClips.java packages/apps/Snap/src/com/android/camera/SoundPlayer.java packages/apps/Snap/src/com/android/camera/Storage.java packages/apps/Snap/src/com/android/camera/SurfaceTextureRenderer.java packages/apps/Snap/src/com/android/camera/Thumbnail.java packages/apps/Snap/src/com/android/camera/VideoController.java packages/apps/Snap/src/com/android/camera/VideoMenu.java packages/apps/Snap/src/com/android/camera/VideoModule.java packages/apps/Snap/src/com/android/camera/VideoUI.java packages/apps/Snap/src/com/android/camera/WideAnglePanoramaController.java packages/apps/Snap/src/com/android/camera/WideAnglePanoramaModule.java packages/apps/Snap/src/com/android/camera/WideAnglePanoramaUI.java packages/apps/Snap/src/com/android/camera/app/AppManagerFactory.java packages/apps/Snap/src/com/android/camera/app/CameraApp.java packages/apps/Snap/src/com/android/camera/app/OrientationManager.java packages/apps/Snap/src/com/android/camera/app/PlaceholderManager.java packages/apps/Snap/src/com/android/camera/async/HandlerExecutor.java packages/apps/Snap/src/com/android/camera/async/MainThread.java packages/apps/Snap/src/com/android/camera/crop/BoundedRect.java packages/apps/Snap/src/com/android/camera/crop/CropActivity.java packages/apps/Snap/src/com/android/camera/crop/CropDrawingUtils.java packages/apps/Snap/src/com/android/camera/crop/CropExtras.java packages/apps/Snap/src/com/android/camera/crop/CropMath.java packages/apps/Snap/src/com/android/camera/crop/CropObject.java packages/apps/Snap/src/com/android/camera/crop/CropView.java packages/apps/Snap/src/com/android/camera/crop/GeometryMathUtils.java packages/apps/Snap/src/com/android/camera/crop/ImageLoader.java packages/apps/Snap/src/com/android/camera/crop/SaveImage.java packages/apps/Snap/src/com/android/camera/crop/Utils.java packages/apps/Snap/src/com/android/camera/data/AbstractLocalDataAdapterWrapper.java packages/apps/Snap/src/com/android/camera/data/CameraDataAdapter.java packages/apps/Snap/src/com/android/camera/data/CameraPreviewData.java packages/apps/Snap/src/com/android/camera/data/DataUtils.java packages/apps/Snap/src/com/android/camera/data/FixedFirstDataAdapter.java packages/apps/Snap/src/com/android/camera/data/FixedLastDataAdapter.java packages/apps/Snap/src/com/android/camera/data/InProgressDataWrapper.java packages/apps/Snap/src/com/android/camera/data/LocalData.java packages/apps/Snap/src/com/android/camera/data/LocalDataAdapter.java packages/apps/Snap/src/com/android/camera/data/LocalDataList.java packages/apps/Snap/src/com/android/camera/data/LocalMediaData.java packages/apps/Snap/src/com/android/camera/data/LocalMediaObserver.java packages/apps/Snap/src/com/android/camera/data/MediaDetails.java packages/apps/Snap/src/com/android/camera/data/PanoramaMetadataLoader.java packages/apps/Snap/src/com/android/camera/data/RotationTask.java packages/apps/Snap/src/com/android/camera/data/SimpleViewData.java packages/apps/Snap/src/com/android/camera/drawable/TextDrawable.java packages/apps/Snap/src/com/android/camera/exif/ByteBufferInputStream.java packages/apps/Snap/src/com/android/camera/exif/CountedDataInputStream.java packages/apps/Snap/src/com/android/camera/exif/ExifData.java packages/apps/Snap/src/com/android/camera/exif/ExifInterface.java packages/apps/Snap/src/com/android/camera/exif/ExifInvalidFormatException.java packages/apps/Snap/src/com/android/camera/exif/ExifModifier.java packages/apps/Snap/src/com/android/camera/exif/ExifOutputStream.java packages/apps/Snap/src/com/android/camera/exif/ExifParser.java packages/apps/Snap/src/com/android/camera/exif/ExifReader.java packages/apps/Snap/src/com/android/camera/exif/ExifTag.java packages/apps/Snap/src/com/android/camera/exif/IfdData.java packages/apps/Snap/src/com/android/camera/exif/IfdId.java packages/apps/Snap/src/com/android/camera/exif/JpegHeader.java packages/apps/Snap/src/com/android/camera/exif/OrderedDataOutputStream.java packages/apps/Snap/src/com/android/camera/exif/Rational.java packages/apps/Snap/src/com/android/camera/tinyplanet/TinyPlanetFragment.java packages/apps/Snap/src/com/android/camera/tinyplanet/TinyPlanetNative.java packages/apps/Snap/src/com/android/camera/tinyplanet/TinyPlanetPreview.java packages/apps/Snap/src/com/android/camera/ui/AbstractSettingPopup.java packages/apps/Snap/src/com/android/camera/ui/CameraControls.java packages/apps/Snap/src/com/android/camera/ui/CameraRootFrame.java packages/apps/Snap/src/com/android/camera/ui/CameraRootView.java packages/apps/Snap/src/com/android/camera/ui/CheckedLinearLayout.java packages/apps/Snap/src/com/android/camera/ui/CountDownView.java packages/apps/Snap/src/com/android/camera/ui/CountdownTimerPopup.java packages/apps/Snap/src/com/android/camera/ui/DetailsDialog.java packages/apps/Snap/src/com/android/camera/ui/ExpandedGridView.java packages/apps/Snap/src/com/android/camera/ui/FaceView.java packages/apps/Snap/src/com/android/camera/ui/FilmStripGestureRecognizer.java packages/apps/Snap/src/com/android/camera/ui/FilmStripView.java packages/apps/Snap/src/com/android/camera/ui/FilmstripBottomControls.java packages/apps/Snap/src/com/android/camera/ui/FocusIndicator.java packages/apps/Snap/src/com/android/camera/ui/HistogramView.java packages/apps/Snap/src/com/android/camera/ui/InLineSettingCheckBox.java packages/apps/Snap/src/com/android/camera/ui/InLineSettingItem.java packages/apps/Snap/src/com/android/camera/ui/InLineSettingMenu.java packages/apps/Snap/src/com/android/camera/ui/ListMenu.java packages/apps/Snap/src/com/android/camera/ui/ListMenuItem.java packages/apps/Snap/src/com/android/camera/ui/ListPrefSettingPopup.java packages/apps/Snap/src/com/android/camera/ui/ListSubMenu.java packages/apps/Snap/src/com/android/camera/ui/ModuleSwitcher.java packages/apps/Snap/src/com/android/camera/ui/MoreSettingPopup.java packages/apps/Snap/src/com/android/camera/ui/OnIndicatorEventListener.java packages/apps/Snap/src/com/android/camera/ui/OverlayRenderer.java packages/apps/Snap/src/com/android/camera/ui/PieItem.java packages/apps/Snap/src/com/android/camera/ui/PieMenuButton.java packages/apps/Snap/src/com/android/camera/ui/PieRenderer.java packages/apps/Snap/src/com/android/camera/ui/ProgressRenderer.java packages/apps/Snap/src/com/android/camera/ui/RenderOverlay.java packages/apps/Snap/src/com/android/camera/ui/Rotatable.java packages/apps/Snap/src/com/android/camera/ui/RotatableLayout.java packages/apps/Snap/src/com/android/camera/ui/RotateImageView.java packages/apps/Snap/src/com/android/camera/ui/RotateLayout.java packages/apps/Snap/src/com/android/camera/ui/RotateTextToast.java packages/apps/Snap/src/com/android/camera/ui/SelfieFlashView.java packages/apps/Snap/src/com/android/camera/ui/Switch.java packages/apps/Snap/src/com/android/camera/ui/TimeIntervalPopup.java packages/apps/Snap/src/com/android/camera/ui/TwoStateImageView.java packages/apps/Snap/src/com/android/camera/ui/ZoomRenderer.java packages/apps/Snap/src/com/android/camera/ui/ZoomView.java packages/apps/Snap/src/com/android/camera/ui/focus/AutoFocusRing.java packages/apps/Snap/src/com/android/camera/ui/focus/CameraCoordinateTransformer.java packages/apps/Snap/src/com/android/camera/ui/focus/FocusController.java packages/apps/Snap/src/com/android/camera/ui/focus/FocusRing.java packages/apps/Snap/src/com/android/camera/ui/focus/FocusRingRenderer.java packages/apps/Snap/src/com/android/camera/ui/focus/FocusRingView.java packages/apps/Snap/src/com/android/camera/ui/focus/FocusSound.java packages/apps/Snap/src/com/android/camera/ui/focus/LensRangeCalculator.java packages/apps/Snap/src/com/android/camera/ui/focus/ManualFocusRing.java packages/apps/Snap/src/com/android/camera/ui/motion/AnimationClock.java packages/apps/Snap/src/com/android/camera/ui/motion/DampedSpring.java packages/apps/Snap/src/com/android/camera/ui/motion/DynamicAnimation.java packages/apps/Snap/src/com/android/camera/ui/motion/DynamicAnimator.java packages/apps/Snap/src/com/android/camera/ui/motion/InterpolateUtils.java packages/apps/Snap/src/com/android/camera/ui/motion/InterpolatorHelper.java packages/apps/Snap/src/com/android/camera/ui/motion/Invalidator.java packages/apps/Snap/src/com/android/camera/ui/motion/LinearScale.java packages/apps/Snap/src/com/android/camera/ui/motion/UnitBezier.java packages/apps/Snap/src/com/android/camera/ui/motion/UnitCurve.java packages/apps/Snap/src/com/android/camera/ui/motion/UnitCurves.java packages/apps/Snap/src/com/android/camera/util/AccessibilityUtils.java packages/apps/Snap/src/com/android/camera/util/ApiHelper.java packages/apps/Snap/src/com/android/camera/util/CameraUtil.java packages/apps/Snap/src/com/android/camera/util/DoneHandler.java packages/apps/Snap/src/com/android/camera/util/MotionEventHelper.java packages/apps/Snap/src/com/android/camera/util/XmpUtil.java packages/apps/Snap/src_pd/com/android/camera/app/PanoramaStitchingManager.java packages/apps/Snap/src_pd/com/android/camera/util/HelpUtils.java packages/apps/Snap/src_pd/com/android/camera/util/IntentHelper.java packages/apps/Snap/src_pd/com/android/camera/util/PhotoSphereHelper.java packages/apps/Snap/src_pd/com/android/camera/util/UsageStatistics.java packages/apps/Snap/src_pd_gcam/com/android/camera/util/GcamHelper.java ' >> /home/m4570d0n/LineageOS/out/target/common/obj/APPS/Snap_intermediates/jack-rsc/java-source-list ) && (if [ -d \"/home/m4570d0n/LineageOS/out/target/common/obj/APPS/Snap_intermediates/src\" ]; then find /home/m4570d0n/LineageOS/out/target/common/obj/APPS/Snap_intermediates/src -name '*.java' >> /home/m4570d0n/LineageOS/out/target/common/obj/APPS/Snap_intermediates/jack-rsc/java-source-list; fi ) && (tr ' ' '\\n' < /home/m4570d0n/LineageOS/out/target/common/obj/APPS/Snap_intermediates/jack-rsc/java-source-list | build/tools/normalize_path.py | sort -u > /home/m4570d0n/LineageOS/out/target/common/obj/APPS/Snap_intermediates/jack-rsc/java-source-list-uniq ) && (echo -basedirectory /home/m4570d0n/LineageOS > /home/m4570d0n/LineageOS/out/target/common/obj/APPS/Snap_intermediates/with-local/classes.dex.flags; echo -forceprocessing -include build/core/proguard.flags -dontobfuscate -dontoptimize -printmapping /home/m4570d0n/LineageOS/out/target/common/obj/APPS/Snap_intermediates/jack_dictionary -include /home/m4570d0n/LineageOS/out/target/common/obj/APPS/Snap_intermediates/proguard_options -include /home/m4570d0n/LineageOS/out/target/common/obj/APPS/Snap_intermediates/proguard_options -include packages/apps/Snap/proguard.flags >> /home/m4570d0n/LineageOS/out/target/common/obj/APPS/Snap_intermediates/with-local/classes.dex.flags ) && (if [ -s /home/m4570d0n/LineageOS/out/target/common/obj/APPS/Snap_intermediates/jack-rsc/java-source-list-uniq ] ; then export tmpEcjArg=\"@/home/m4570d0n/LineageOS/out/target/common/obj/APPS/Snap_intermediates/jack-rsc/java-source-list-uniq\"; else export tmpEcjArg=\"\"; fi; JACK_VERSION=3.36.CANDIDATE /home/m4570d0n/LineageOS/out/host/linux-x86/bin/jack @build/core/jack-default.args --verbose error -g -D jack.java.source.version=1.8 --classpath /home/m4570d0n/LineageOS/out/target/common/obj/JAVA_LIBRARIES/core-oj_intermediates/classes.jack:/home/m4570d0n/LineageOS/out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/classes.jack:/home/m4570d0n/LineageOS/out/target/common/obj/JAVA_LIBRARIES/core-junit_intermediates/classes.jack:/home/m4570d0n/LineageOS/out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/classes.jack:/home/m4570d0n/LineageOS/out/target/common/obj/JAVA_LIBRARIES/core-oj_intermediates/classes.jack:/home/m4570d0n/LineageOS/out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/classes.jack:/home/m4570d0n/LineageOS/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes.jack:/home/m4570d0n/LineageOS/out/target/common/obj/JAVA_LIBRARIES/okhttp_intermediates/classes.jack:/home/m4570d0n/LineageOS/out/target/common/obj/JAVA_LIBRARIES/android-support-v13_intermediates/classes.jack:/home/m4570d0n/LineageOS/out/target/common/obj/JAVA_LIBRARIES/xmp_toolkit_intermediates/classes.jack --import /home/m4570d0n/LineageOS/out/target/common/obj/JAVA_LIBRARIES/xmp_toolkit_intermediates/classes.jack --import /home/m4570d0n/LineageOS/out/target/common/obj/JAVA_LIBRARIES/android-support-v13_intermediates/classes.jack -D jack.android.min-api-level=25 -D jack.import.resource.policy=keep-first -D jack.import.type.policy=keep-first --output-jack /home/m4570d0n/LineageOS/out/target/common/obj/APPS/Snap_intermediates/classes.jack --output-dex /home/m4570d0n/LineageOS/out/target/common/obj/APPS/Snap_intermediates/jack-rsc --config-proguard /home/m4570d0n/LineageOS/out/target/common/obj/APPS/Snap_intermediates/with-local/classes.dex.flags \$tmpEcjArg || ( rm -rf /home/m4570d0n/LineageOS/out/target/common/obj/APPS/Snap_intermediates/classes.jack; exit 41 ) ) && (mv /home/m4570d0n/LineageOS/out/target/common/obj/APPS/Snap_intermediates/jack-rsc/classes*.dex /home/m4570d0n/LineageOS/out/target/common/obj/APPS/Snap_intermediates/with-local/ ) && (rm -f /home/m4570d0n/LineageOS/out/target/common/obj/APPS/Snap_intermediates/jack-rsc/java-source-list ) && (mv /home/m4570d0n/LineageOS/out/target/common/obj/APPS/Snap_intermediates/jack-rsc/java-source-list-uniq /home/m4570d0n/LineageOS/out/target/common/obj/APPS/Snap_intermediates/jack-rsc.java-source-list )"
ERROR: /home/m4570d0n/LineageOS/packages/apps/Snap/src/com/android/camera/CameraSettings.java:267: QUALITY_1440P cannot be resolved or is not a field
ERROR: /home/m4570d0n/LineageOS/packages/apps/Snap/src/com/android/camera/CameraSettings.java:291: QUALITY_1440P cannot be resolved or is not a field
ERROR: /home/m4570d0n/LineageOS/packages/apps/Snap/src/com/android/camera/CameraSettings.java:291: QUALITY_TIME_LAPSE_1440P cannot be resolved or is not a field
ERROR: /home/m4570d0n/LineageOS/packages/apps/Snap/src/com/android/camera/CameraSettings.java:321: QUALITY_1440P cannot be resolved or is not a field
ninja: build stopped: subcommand failed.
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/home/m4570d0n/LineageOS'

#### make failed to build some targets (13:28 (mm:ss)) ####

I went and checked frameworks/base/media/java/android/media/CamcorderProfile.java and sure enough, QUALITY_1440P and QUALITY_TIME_LAPSE_1440P are not listed there, but are referenced in CameraSettings.java, which I assume is why it threw the error. However, he seems to have gotten to build without this issue and I'm running the ROM right now and those 1440P settings are definitely there in the Camera app.

Not sure what the issue is here. I thought perhaps it might have been due to using the official Oracle Java 8 JDK rather than OpenJDK 8, but after I switched to OpenJDK I'm still getting these same errors.