[LineageOS Questions & Answers] govindmh14:
I am trying to build lineageOS 16.0 but always getting this error. please help me in solving this.

FAILED: /home/govind/Desktop/androidLineage/out/target/common/docs/lineage-api-stubs-timestamp

/bin/bash -c "(rm -rf /home/govind/Desktop/androidLineage/out/target/common/obj/JAVA_LIBRARIES/lineage-sdk_stubs_current_intermediates/src ) && (mkdir -p /home/govind/Desktop/androidLineage/out/target/common/obj/JAVA_LIBRARIES/lineage-api-stubs_intermediates/ ) && (rm -f /home/govind/Desktop/androidLineage/out/target/common/obj/JAVA_LIBRARIES/lineage-api-stubs_intermediates/droiddoc-src-list ) && (touch /home/govind/Desktop/androidLineage/out/target/common/obj/JAVA_LIBRARIES/lineage-api-stubs_intermediates/droiddoc-src-list ) && (echo -n 'lineage-sdk/host/migration/src/AdbCommand.java lineage-sdk/host/migration/src/Command.java lineage-sdk/host/migration/src/CommandExecutor.java lineage-sdk/host/migration/src/DebuggingCommands.java lineage-sdk/host/migration/src/FastbootCommand.java lineage-sdk/host/migration/src/GenerateExampleSettings.java lineage-sdk/host/migration/src/InsertCommand.java lineage-sdk/host/migration/src/LineageSettings.java lineage-sdk/host/migration/src/MigrationTest.java lineage-sdk/host/migration/src/QueryCommand.java lineage-sdk/host/migration/src/ReadCommand.java lineage-sdk/host/migration/src/RowParser.java lineage-sdk/host/migration/src/Setting.java lineage-sdk/host/migration/src/SettingImageCommands.java lineage-sdk/host/migration/src/SettingsConstants.java lineage-sdk/lib/src/java/org/lineageos/lib/phone/SensitivePhoneNumber.java lineage-sdk/lib/src/java/org/lineageos/lib/phone/SensitivePhoneNumbers.java lineage-sdk/lineage/lib/main/java/org/lineageos/platform/internal/LineageAudioService.java lineage-sdk/lineage/lib/main/java/org/lineageos/platform/internal/LineageHardwareService.java lineage-sdk/lineage/lib/main/java/org/lineageos/platform/internal/LineageSettingsService.java lineage-sdk/lineage/lib/main/java/org/lineageos/platform/internal/LineageSystemServer.java lineage-sdk/lineage/lib/main/java/org/lineageos/platform/internal/LineageSystemService.java lineage-sdk/lineage/lib/main/java/org/lineageos/platform/internal/LineageWeatherManagerService.java lineage-sdk/lineage/lib/main/java/org/lineageos/platform/internal/NativeHelper.java lineage-sdk/lineage/lib/main/java/org/lineageos/platform/internal/PerformanceManagerService.java lineage-sdk/lineage/lib/main/java/org/lineageos/platform/internal/ProfileManagerService.java lineage-sdk/lineage/lib/main/java/org/lineageos/platform/internal/ProfileTriggerHelper.java lineage-sdk/lineage/lib/main/java/org/lineageos/platform/internal/StyleInterfaceService.java lineage-sdk/lineage/lib/main/java/org/lineageos/platform/internal/TrustInterfaceService.java lineage-sdk/lineage/lib/main/java/org/lineageos/platform/internal/common/LineageSystemServiceHelper.java lineage-sdk/sdk/src/java/lineageos/power/PerformanceManager.java lineage-sdk/tests/src/org/lineageos/tests/common/ThreadServiceTestCase.java lineage-sdk/tests/src/org/lineageos/tests/hardware/LineageHardwareTest.java lineage-sdk/tests/src/org/lineageos/tests/hardware/unit/DisplayModeTest.java lineage-sdk/tests/src/org/lineageos/tests/hardware/unit/LineageHardwareManagerTest.java lineage-sdk/tests/src/org/lineageos/tests/hardware/unit/LiveDisplayManagerTest.java lineage-sdk/tests/src/org/lineageos/tests/media/unit/LineageAudioManagerTest.java lineage-sdk/tests/src/org/lineageos/tests/power/unit/PerfomanceManagerTest.java lineage-sdk/tests/src/org/lineageos/tests/profiles/ProfileTest.java lineage-sdk/tests/src/org/lineageos/tests/profiles/unit/AirplaneModeSettingsTest.java lineage-sdk/tests/src/org/lineageos/tests/profiles/unit/BrightnessSettingsTest.java lineage-sdk/tests/src/org/lineageos/tests/profiles/unit/ConnectionSettingsTest.java lineage-sdk/tests/src/org/lineageos/tests/profiles/unit/LockSettingsTest.java lineage-sdk/tests/src/org/lineageos/tests/profiles/unit/ProfileManagerTest.java lineage-sdk/tests/src/org/lineageos/tests/profiles/unit/ProfileTest.java lineage-sdk/tests/src/org/lineageos/tests/profiles/unit/RingModeSettingsTest.java lineage-sdk/tests/src/org/lineageos/tests/profiles/unit/StreamSettingsTest.java lineage-sdk/tests/src/org/lineageos/tests/providers/LineageSettingsTest.java lineage-sdk/tests/src/org/lineageos/tests/util/ColorUtilTest.java lineage-sdk/tests/src/org/lineageos/tests/versioning/VersioningTest.java lineage-sdk/tests/src/org/lineageos/tests/versioning/unit/BinderTransactionTest.java lineage-sdk/tests/src/org/lineageos/tests/versioning/unit/BuildTest.java lineage-sdk/tests/src/org/lineageos/tests/versioning/unit/ClassPathException.java lineage-sdk/tests/src/org/lineageos/tests/versioning/unit/ClassPathTest.java lineage-sdk/tests/src/org/lineageos/tests/versioning/unit/MagicalDexHelper.java lineage-sdk/tests/src/org/lineageos/tests/versioning/unit/apiv2/ApiV2PriorReleaseInterfaces.java lineage-sdk/tests/src/org/lineageos/tests/versioning/unit/apiv4/ApiV4PriorReleaseInterfaces.java lineage-sdk/tests/src/org/lineageos/tests/versioning/unit/apiv5/ApiV5PriorReleaseInterfaces.java lineage-sdk/tests/src/org/lineageos/tests/weather/unit/DayForecastBuilderTest.java lineage-sdk/tests/src/org/lineageos/tests/weather/unit/LineageWeatherManagerTest.java lineage-sdk/tests/src/org/lineageos/tests/weather/unit/MockWeatherProviderService.java lineage-sdk/tests/src/org/lineageos/tests/weather/unit/ServiceRequestResultBuilderTest.java lineage-sdk/tests/src/org/lineageos/tests/weather/unit/WeatherInfoBuilderTest.java lineage-sdk/tests/src/org/lineageos/tests/weather/unit/WeatherLocationBuilderTest.java lineage-sdk/tests/src/org/lineageos/tests/weather/unit/WeatherProviderServiceTest.java ' >> /home/govind/Desktop/androidLineage/out/target/common/obj/JAVA_LIBRARIES/lineage-api-stubs_intermedi -d /home/govind/Desktop/androidLineage/out/target/common/docs/lineage-api-stubs -hdf page.build PQ3A.190801.002-\$(cat /home/govind/Desktop/androidLineage/out/build_number.txt) -hdf page.now \"\$(date -d @\$(cat /home/govind/Desktop/androidLineage/out/build_date.txt) \"+%d %b %Y %k:%M\")\" -referenceonly -stubpackages lineageos.app:lineageos.content:lineageos.hardware:lineageos.media:lineageos.os:lineageos.preference:lineageos.profiles:lineageos.providers:lineageos.platform:lineageos.power:lineageos.util:lineageos.weather:lineageos.weatherservice:lineageos.style:lineageos.trust -exclude org.lineageos.platform.internal -api /home/govind/Desktop/androidLineage/out/target/common/obj/PACKAGING/lineage_public_api.txt -removedApi /home/govind/Desktop/androidLineage/out/target/common/obj/PACKAGING/lineage_removed.txt -nodocs -stubs /home/govind/Desktop/androidLineage/out/target/common/obj/JAVA_LIBRARIES/lineage-sdk_stubs_current_intermediates/src && touch -f /home/govind/Desktop/androidLineage/out/target/common/docs/lineage-api-stubs-timestamp ) || (rm -rf /home/govind/Desktop/androidLineage/out/target/common/docs/lineage-api-stubs /home/govind/Desktop/androidLineage/out/target/common/obj/JAVA_LIBRARIES/lineage-api-stubs_intermediates/droiddoc-src-list; exit 45) )"

javadoc: warning - The old Doclet and Taglet APIs in the packages

com.sun.javadoc, com.sun.tools.doclets and their implementations

are planned to be removed in a future JDK release. These

components have been superseded by the new APIs in jdk.javadoc.doclet.

Users are strongly recommended to migrate to the new APIs.

lineage-sdk/lib/src/java/org/lineageos/lib/phone/SensitivePhoneNumbers.java:30: error: package com.google.i18n.phonenumbers does not exist

import com.google.i18n.phonenumbers.NumberParseException;

^

lineage-sdk/lib/src/java/org/lineageos/lib/phone/SensitivePhoneNumbers.java:31: error: package com.google.i18n.phonenumbers does not exist

import com.google.i18n.phonenumbers.Phonenumber;

^

lineage-sdk/lib/src/java/org/lineageos/lib/phone/SensitivePhoneNumbers.java:32: error: package com.google.i18n.phonenumbers does not exist

import com.google.i18n.phonenumbers.PhoneNumberUtil;

^

lineage-sdk/lib/src/java/org/lineageos/lib/phone/SensitivePhoneNumbers.java:33: error: package com.google.i18n.phonenumbers.PhoneNumberUtil does not exist

import com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberFormat;

^

lineage-sdk/lineage/lib/main/java/org/lineageos/platform/internal/LineageAudioService.java:26: error: cannot find symbol

import com.android.server.SystemService;

^

symbol: class SystemService

location: package com.android.server

lineage-sdk/lineage/lib/main/java/org/lineageos/platform/internal/LineageSystemService.java:20: error: cannot find symbol

import com.android.server.SystemService;

^

symbol: class SystemService

location: package com.android.server

lineage-sdk/lineage/lib/main/java/org/lineageos/platform/internal/LineageSystemService.java:22: error: cannot find symbol

public abstract class LineageSystemService extends SystemService {

^

symbol: class SystemService

lineage-sdk/lineage/lib/main/java/org/lineageos/platform/internal/LineageHardwareService.java:28: error: package com.android.server.display does not exist

import com.android.server.display.DisplayTransformManager;

^

lineage-sdk/lineage/lib/main/java/org/lineageos/platform/internal/LineageHardwareService.java:30: error: cannot find symbol

import com.android.server.SystemService;

^

symbol: class SystemService

location: package com.android.server

lineage-sdk/lineage/lib/main/java/org/lineageos/platform/internal/LineageHardwareService.java:44: error: package org.lineageos.hardware does not exist

import org.lineageos.hardware.AdaptiveBacklight;

^

lineage-sdk/lineage/lib/main/java/org/lineageos/platform/internal/LineageHardwareService.java:45: error: package org.lineageos.hardware does not exist

import org.lineageos.hardware.AutoContrast;

^

lineage-sdk/lineage/lib/main/java/org/lineageos/platform/internal/LineageHardwareService.java:46: error: package org.lineageos.hardware does not exist

import org.lineageos.hardware.ColorBalance;

^

lineage-sdk/lineage/lib/main/java/org/lineageos/platform/internal/LineageHardwareService.java:47: error: package org.lineageos.hardware does not exist

import org.lineageos.hardware.ColorEnhancement;

^

lineage-sdk/lineage/lib/main/java/org/lineageos/platform/internal/LineageHardwareService.java:48: error: package org.lineageos.hardware does not exist

import org.lineageos.hardware.DisplayColorCalibration;

^

lineage-sdk/lineage/lib/main/java/org/lineageos/platform/internal/LineageHardwareService.java:49: error: package org.lineageos.hardware does not exist

import org.lineageos.hardware.DisplayModeControl;

^

symbol: class ServiceThread

location: class PerformanceManagerService

lineage-sdk/lineage/lib/main/java/org/lineageos/platform/internal/ProfileManagerService.java:52: error: cannot find symbol

import com.android.server.SystemService;

^

symbol: class SystemService

location: package com.android.server

lineage-sdk/lineage/lib/main/java/org/lineageos/platform/internal/StyleInterfaceService.java:35: error: cannot find symbol

import com.android.server.SystemService;

^

symbol: class SystemService

location: package com.android.server

lineage-sdk/lineage/lib/main/java/org/lineageos/platform/internal/TrustInterfaceService.java:46: error: package vendor.lineage.trust.V1_0 does not exist

import vendor.lineage.trust.V1_0.IUsbRestrict;

^

lineage-sdk/lineage/lib/main/java/org/lineageos/platform/internal/TrustInterfaceService.java:72: error: cannot find symbol

private IUsbRestrict mUsbRestrictor = null;

^

symbol: class IUsbRestrict

location: class TrustInterfaceService

lineage-sdk/lineage/lib/main/java/org/lineageos/platform/internal/display/LiveDisplayService.java:38: error: cannot find symbol

import com.android.server.ServiceThread;

^

symbol: class ServiceThread

location: package com.android.server

lineage-sdk/lineage/lib/main/java/org/lineageos/platform/internal/display/LiveDisplayService.java:81: error: cannot find symbol

private final ServiceThread mHandlerThread;

^

symbol: class ServiceThread

location: class LiveDisplayService

lineage-sdk/packages/LineageSettingsProvider/tests/src/org/lineageos/lineagesettings/tests/LineageSettingsGlobalTests.java:21: error: package android.test does not exist

import android.test.AndroidTestCase;

^

lineage-sdk/packages/LineageSettingsProvider/tests/src/org/lineageos/lineagesettings/tests/LineageSettingsGlobalTests.java:22: error: package android.test.suitebuilder.annotation does not exist

import android.test.suitebuilder.annotation.SmallTest;

^

lineage-sdk/packages/LineageSettingsProvider/tests/src/org/lineageos/lineagesettings/tests/LineageSettingsGlobalTests.java:25: error: cannot find symbol

public class LineageSettingsGlobalTests extends AndroidTestCase {

^

symbol: class AndroidTestCase

lineage-sdk/packages/LineageSettingsProvider/tests/src/org/lineageos/lineagesettings/tests/LineageSettingsProviderDefaultsTest.java:24: error: package android.test does not exist

import android.test.AndroidTestCase;

^

lineage-sdk/packages/LineageSettingsProvider/tests/src/org/lineageos/lineagesettings/tests/LineageSettingsProviderDefaultsTest.java:25: error: package android.test.suitebuilder.annotation does not exist

import android.test.suitebuilder.annotation.SmallTest;

^

lineage-sdk/packages/LineageSettingsProvider/tests/src/org/lineageos/lineagesettings/tests/LineageSettingsProviderDefaultsTest.java:35: error: cannot find symbol

import org.lineageos.lineagesettings.R;

^

symbol: class R

location: package org.lineageos.lineagesettings

lineage-sdk/packages/LineageSettingsProvider/tests/src/org/lineageos/lineagesettings/tests/LineageSettingsProviderDefaultsTest.java:40: error: cannot find symbol

public class LineageSettingsProviderDefaultsTest extends AndroidTestCase {

^

symbol: class Call

location: interface OpenWeatherMapInterface

lineage-sdk/samples/weatherproviderservice/OpenWeatherMapProvider/app/src/main/java/org/lineageos/openweathermapprovider/openweathermap/LookupCityResponse.java:19: error: package com.google.gson.annotations does not exist

import com.google.gson.annotations.SerializedName;

^

lineage-sdk/sdk/src/java/lineageos/preference/ConstraintsHelper.java:27: error: package android.support.v7.preference does not exist

import android.support.v7.preference.Preference;

^

lineage-sdk/sdk/src/java/lineageos/preference/ConstraintsHelper.java:28: error: package android.support.v7.preference does not exist

import android.support.v7.preference.PreferenceGroup;

^

lineage-sdk/sdk/src/java/lineageos/preference/ConstraintsHelper.java:29: error: package android.support.v7.preference does not exist

import android.support.v7.preference.PreferenceManager;

^

lineage-sdk/sdk/src/java/lineageos/preference/ConstraintsHelper.java:30: error: package android.support.v7.preference does not exist

import android.support.v7.preference.PreferenceViewHolder;

^

lineage-sdk/sdk/src/java/lineageos/preference/ConstraintsHelper.java:61: error: cannot find symbol

private final Preference mPref;

^

symbol: class Preference

location: class ConstraintsHelper

lineage-sdk/sdk/src/java/lineageos/preference/ConstraintsHelper.java:71: error: cannot find symbol

public ConstraintsHelper(Context context, AttributeSet attrs, Preference pref) {

^

symbol: class Preference

location: class ConstraintsHelper

lineage-sdk/sdk/src/java/lineageos/preference/ConstraintsHelper.java:100: error: cannot find symbol

private PreferenceGroup getParent(Preference preference) {

^

symbol: class Preference

location: class ConstraintsHelper

lineage-sdk/sdk/src/java/lineageos/preference/ConstraintsHelper.java:100: error: cannot find symbol

private PreferenceGroup getParent(Preference preference) {

^

symbol: class PreferenceGroup

location: class ConstraintsHelper

lineage-sdk/sdk/src/java/lineageos/preference/ConstraintsHelper.java:104: error: cannot find symbol

private PreferenceGroup getParent(PreferenceGroup root, Preference preference) {

^

symbol: class PreferenceGroup

location: class ConstraintsHelper

lineage-sdk/sdk/src/java/lineageos/preference/ConstraintsHelper.java:104: error: cannot find symbol

private PreferenceGroup getParent(PreferenceGroup root, Preference preference) {

^

symbol: class Preference

location: class ConstraintsHelper

lineage-sdk/sdk/src/java/lineageos/preference/ConstraintsHelper.java:104: error: cannot find symbol

private PreferenceGroup getParent(PreferenceGroup root, Preference preference) {

^

symbol: class PreferenceGroup

location: class ConstraintsHelper

lineage-sdk/sdk/src/java/lineageos/preference/ConstraintsHelper.java:313: error: cannot find symbol

public void onBindViewHolder(PreferenceViewHolder holder) {

^

symbol: class PreferenceViewHolder

location: class ConstraintsHelper

lineage-sdk/sdk/src/java/lineageos/preference/ConstraintsHelper.java:357: error: cannot find symbol

private PreferenceGroup getParent(Preference p1, Preference p2) {

^

symbol: class Preference

location: class Graveyard

lineage-sdk/sdk/src/java/lineageos/preference/ConstraintsHelper.java:357: error: cannot find symbol

private PreferenceGroup getParent(Preference p1, Preference p2) {

^

symbol: class Preference

location: class Graveyard

lineage-sdk/sdk/src/java/lineageos/preference/ConstraintsHelper.java:357: error: cannot find symbol

private PreferenceGroup getParent(Preference p1, Preference p2) {

^

symbol: class PreferenceGroup

location: class Graveyard

lineage-sdk/sdk/src/java/lineageos/preference/ConstraintsHelper.java:361: error: cannot find symbol

private PreferenceGroup getParent(PreferenceGroup root, Preference preference) {

^

symbol: class PreferenceGroup

location: class Graveyard

lineage-sdk/sdk/src/java/lineageos/preference/ConstraintsHelper.java:361: error: cannot find symbol

private PreferenceGroup getParent(PreferenceGroup root, Preference preference) {

^

symbol: class Preference

location: class Graveyard

lineage-sdk/sdk/src/java/lineageos/preference/ConstraintsHelper.java:361: error: cannot find symbol

private PreferenceGroup getParent(PreferenceGroup root, Preference preference) {

^

symbol: class PreferenceGroup

location: class Graveyard

lineage-sdk/sdk/src/java/lineageos/preference/ConstraintsHelper.java:375: error: cannot find symbol

private void hidePreference(PreferenceManager mgr, Preference pref) {

^

symbol: class PreferenceManager

location: class Graveyard

lineage-sdk/sdk/src/java/lineageos/preference/ConstraintsHelper.java:375: error: cannot find symbol

private void hidePreference(PreferenceManager mgr, Preference pref) {

^

symbol: class Preference

location: class Graveyard

lineage-sdk/lineage/lib/main/java/org/lineageos/platform/internal/LineageHardwareService.java:128: error: cannot find symbol

private final int LEVEL_COLOR_MATRIX_CALIB = LEVEL_COLOR_MATRIX_NIGHT_DISPLAY + 1;

^

symbol: variable LEVEL_COLOR_MATRIX_NIGHT_DISPLAY

location: class LineageHardwareService.LegacyLineageHardware

lineage-sdk/lineage/lib/main/java/org/lineageos/platform/internal/LineageHardwareService.java:129: error: cannot find symbol

private final int LEVEL_COLOR_MATRIX_READING = LEVEL_COLOR_MATRIX_GRAYSCALE + 1;

^

symbol: variable LEVEL_COLOR_MATRIX_GRAYSCALE

location: class LineageHardwareService.LegacyLineageHardware

Editor.java:0: warning 122: Public class android.widget.Editor.SuggestionsPopupWindow extends private class android.widget.Editor.PinnedPopupWindow

lineage-sdk/sdk/src/java/lineageos/providers/LineageSettings.java:3087: warning 121: Member VOLUME_PANEL_ON_LEFT_VALIDATOR references hidden type lineageos.providers.LineageSettings.Validator.

lineage-sdk/sdk/src/java/lineageos/providers/LineageSettings.java:3096: warning 121: Member TETHERING_ALLOW_VPN_UPSTREAMS_VALIDATOR references hidden type lineageos.providers.LineageSettings.Validator.

lineage-sdk/sdk/src/java/lineageos/util/ColorUtils.java:241: warning 121: Member getDominantSwatch references hidden type lineageos.util.palette.Palette.

lineage-sdk/sdk/src/java/lineageos/util/ColorUtils.java:241: warning 121: Member getDominantSwatch references hidden type lineageos.util.palette.Palette.Swatch.

lineage-sdk/sdk/src/java/lineageos/util/ColorUtils.java:241: warning 110: Method lineageos.util.ColorUtils.getDominantSwatch returns unavailable type Palette.Swatch

lineage-sdk/sdk/src/java/lineageos/util/ColorUtils.java:241: warning 110: Parameter of unavailable type lineageos.util.palette.Palette in lineageos.util.ColorUtils.getDominantSwatch()

lineage-sdk/sdk/src/java/lineageos/util/palette/Palette.java:102: warning 110: Parameter of hidden type lineageos.util.palette.Palette.Swatch in lineageos.util.palette.Palette.from()

lineage-sdk/sdk/src/java/lineageos/util/palette/Palette.java:467: warning 110: Parameter of hidden type lineageos.util.palette.Palette.Swatch in lineageos.util.palette.Palette.Builder.Palette.Builder()

DroidDoc took 18 sec. to write docs to /home/govind/Desktop/androidLineage/out/target/common/docs/lineage-api-stubs

2 errors

100 warnings