I am trying to port CyanMobile to the Droid Incredible 2 and for the most part I can get most of the build done but I keep getting stuck at this error:
Code:
target Package: LatinIMETests (/home/duffieldj1/A-L-D/Build/out/target/product/vivow/obj/APPS/LatinIMETests_intermediates/package.apk)
frameworks/base/packages/SystemUI/src/com/android/systemui/navbar/NavigationBarView.java:314: cannot find symbol
symbol : variable lights_out
location: class com.android.systemui.R.id
lowLights = mNaviBackground.findViewById(R.id.lights_out);
^
frameworks/base/packages/SystemUI/src/com/android/systemui/navbar/NavigationBarView.java:336: cannot find symbol
symbol : variable home_out
location: class com.android.systemui.R.id
mHomeOutButton = (ImageView) mNaviBackground.findViewById(R.id.home_out);
^
frameworks/base/packages/SystemUI/src/com/android/systemui/navbar/NavigationBarView.java:337: cannot find symbol
symbol : variable menu_out
location: class com.android.systemui.R.id
mMenuOutButton = (ImageView) mNaviBackground.findViewById(R.id.menu_out);
^
frameworks/base/packages/SystemUI/src/com/android/systemui/navbar/NavigationBarView.java:338: cannot find symbol
symbol : variable back_out
location: class com.android.systemui.R.id
mBackOutButton = (ImageView) mNaviBackground.findViewById(R.id.back_out);
^
frameworks/base/packages/SystemUI/src/com/android/systemui/navbar/NavigationBarView.java:339: cannot find symbol
symbol : variable search_out
location: class com.android.systemui.R.id
mSearchOutButton = (ImageView) mNaviBackground.findViewById(R.id.search_out);
^
frameworks/base/packages/SystemUI/src/com/android/systemui/navbar/NavigationBarView.java:340: cannot find symbol
symbol : variable quicker_out
location: class com.android.systemui.R.id
mQuickOutButton = (ImageView) mNaviBackground.findViewById(R.id.quicker_out);
^
'/home/duffieldj1/A-L-D/Build/out/target/common/obj/APPS/LatinIMETests_intermediates//classes.dex' as 'classes.dex'...
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.
6 errors
make: *** [/home/duffieldj1/A-L-D/Build/out/target/common/obj/APPS/SystemUI_intermediates/classes-full-debug.jar] Error 41
make: *** Waiting for unfinished jobs....
[email protected]:~/A-L-D/Build$
Does anyone know how I can fix this?
I was trying to build cm12 for our herc, and everything went smooth enough, then I got this:
Code:
packages/apps/Nfc/src/com/android/nfc/NfcService.java:26: error: package com.android.nfc.cardemulation does not exist
import com.android.nfc.cardemulation.AidRoutingManager;
^
packages/apps/Nfc/src/com/android/nfc/NfcService.java:27: error: package com.android.nfc.cardemulation does not exist
import com.android.nfc.cardemulation.HostEmulationManager;
^
packages/apps/Nfc/src/com/android/nfc/NfcService.java:28: error: package com.android.nfc.cardemulation does not exist
import com.android.nfc.cardemulation.RegisteredAidCache;
^
packages/apps/Nfc/src/com/android/nfc/NfcService.java:277: error: cannot find symbol
private RegisteredAidCache mAidCache;
^
symbol: class RegisteredAidCache
location: class NfcService
packages/apps/Nfc/src/com/android/nfc/NfcService.java:278: error: cannot find symbol
private HostEmulationManager mHostEmulationManager;
^
symbol: class HostEmulationManager
location: class NfcService
packages/apps/Nfc/src/com/android/nfc/NfcService.java:279: error: cannot find symbol
private AidRoutingManager mAidRoutingManager;
^
symbol: class AidRoutingManager
location: class NfcService
packages/apps/Nfc/src/com/android/nfc/NfcService.java:511: error: cannot find symbol
mAidRoutingManager = new AidRoutingManager();
^
symbol: class AidRoutingManager
location: class NfcService
packages/apps/Nfc/src/com/android/nfc/NfcService.java:512: error: cannot find symbol
mAidCache = new RegisteredAidCache(mContext, mAidRoutingManager);
^
symbol: class RegisteredAidCache
location: class NfcService
packages/apps/Nfc/src/com/android/nfc/NfcService.java:513: error: cannot find symbol
mHostEmulationManager = new HostEmulationManager(mContext, mAidCache);
^
symbol: class HostEmulationManager
location: class NfcService
9 errors
make: *** [/home/avin/android/system/out/target/common/obj/APPS/Nfc_intermediates/classes-full-debug.jar] Error 41
make: *** Waiting for unfinished jobs....
Note: packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/CellBroadcastAlertAudio.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
drivers/video/Kconfig:2335:warning: choice value used outside its choice group
#
# configuration written to .config
#
make[1]: Leaving directory `/home/avin/android/system/kernel/samsung/msm8660-common'
Is there anyway to just skip building nfc card emulation? Other threads never found much of a solution.
Sorry, didn't realize my first thread was moved! Didn't mean to double post.
I am having a problem building MoKee ROM for the asus zenfone 2 Z00A.
This is what I get:
Code:
target C++: libhealthd.mofd_v1 <= device/asus/mofd-common/libhealthd/healthd_board_mofd_v1.cpp
device/asus/mofd-common/libhealthd/healthd_board_mofd_v1.cpp: In function 'int mapBatteryStatusString(const char*)':
device/asus/mofd-common/libhealthd/healthd_board_mofd_v1.cpp:26:12: error: 'HEALTHD_MAP_CONTINUE_SEARCH' was not declared in this scope
return HEALTHD_MAP_CONTINUE_SEARCH;
^
device/asus/mofd-common/libhealthd/healthd_board_mofd_v1.cpp: In function 'int mapChargeTypeString(const char*)':
device/asus/mofd-common/libhealthd/healthd_board_mofd_v1.cpp:32:16: error: 'BATTERY_CHARGE_TYPE_FAST_CHARGING' is not a member of 'android'
return android::BATTERY_CHARGE_TYPE_FAST_CHARGING;
^
device/asus/mofd-common/libhealthd/healthd_board_mofd_v1.cpp:34:16: error: 'BATTERY_CHARGE_TYPE_UNKNOWN' is not a member of 'android'
return android::BATTERY_CHARGE_TYPE_UNKNOWN;
^
device/asus/mofd-common/libhealthd/healthd_board_mofd_v1.cpp: In function 'void healthd_board_init(healthd_config*)':
device/asus/mofd-common/libhealthd/healthd_board_mofd_v1.cpp:39:13: error: 'struct healthd_config' has no member named 'batteryChargeTypePath'
config->batteryChargeTypePath = "/sys/class/power_supply/battery/status";
^
device/asus/mofd-common/libhealthd/healthd_board_mofd_v1.cpp:40:13: error: 'struct healthd_config' has no member named 'mapBatteryStatusString'
config->mapBatteryStatusString = mapBatteryStatusString;
^
device/asus/mofd-common/libhealthd/healthd_board_mofd_v1.cpp:41:13: error: 'struct healthd_config' has no member named 'mapChargeTypeString'
config->mapChargeTypeString = mapChargeTypeString;
hint: I am new to building.
I am compiling cm 14 for core prime ve 3g (sm-g361h).
i am getting these error after executing mka bacon command (i have skipped all log above errors). I am building rom from source first time so i ain't got any clue what this error says (maybe a little bit but that ain't helping).
Code:
device/samsung/coreprimeve3g/ril/SamsungSPRDRIL.java:276: error: method does not override or implement a method from a supertype
@Override
^
device/samsung/coreprimeve3g/ril/SamsungSPRDRIL.java:314: error: method processSolicited in class RIL cannot be applied to given types;
return super.processSolicited(p);
^
required: Parcel,int
found: Parcel
reason: actual and formal argument lists differ in length
device/samsung/coreprimeve3g/ril/SamsungSPRDRIL.java:366: error: method does not override or implement a method from a supertype
@Override
^
device/samsung/coreprimeve3g/ril/SamsungSPRDRIL.java:422: error: method processUnsolicited in class RIL cannot be applied to given types;
super.processUnsolicited(p);
^
required: Parcel,int
found: Parcel
reason: actual and formal argument lists differ in length
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.
4 errors
[ 3% 1018/28725] host C++: libLLVMCor...2 <= external/llvm/lib/IR/Function.cpp
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/hamza/cm14'
#### make failed to build some targets (27:37 (mm:ss)) ####
bump
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
@govindmh14, I have stumbled upon the same.
Disclaimer:
Lineage team needs better quality control. This is a total mess!!! I have spent 2 days fixing this.
Looks like this commit has ruined the makefile of lineage-sdk package:
https://github.com/LineageOS/android_lineage-sdk/commit/703249ae8d1fa0e20c156f9179a03622ddb0f65c
This commit's author @Rashed97 and @sam3000 converted Android.mk to Android.bp. He stripped out huge portions of code, and the bad thing, stripped out some vital variables like "lineage_sdk_src", which is used in this makefile to generate DROIDDOCs. This has ruined the build process completely!
But even if I add the needed variables back in Android.mk, the build process checks and complains that I have modified the Lineage Public API. Yes I did, because that "legit" API is also ruined. So I had to rewrite 2 files, where that "legit" API resides:
Code:
cp /out/target/common/obj/PACKAGING/lineage_public_api.txt /prebuilts/lineage-sdk/api/9.txt
cp /out/target/common/obj/PACKAGING/lineage_public_api.txt /lineage-sdk/api/lineage_current.txt
Don't forget to add /prebuilts/lineage-sdk package to your local manifest file roomservice.xml like this:
Code:
<project name="LineageOS/android_prebuilts_lineage-sdk" path="prebuilts/lineage-sdk" remote="github" />
Then:
Code:
repo sync
I have attached the patch to fix the broken /lineage-sdk/Android.mk file. Place it into /lineage-sdk folder and apply from there.
Thanks for the fix! I had the same issue with lineage-16.0.
What about committing your patch to lineageos so that it can be reviewed and everyone can benefit from it?