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?
Related
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.
wrong section
avbluestar14 said:
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.
Click to expand...
Click to collapse
FIXED! and the build continues. I just deleted all the offended .java files.
avbluestar14 said:
FIXED! and the build continues. I just deleted all the offended .java files.
Click to expand...
Click to collapse
Okay deleting files is NOT a solution to fixing errors, that'll just produce more faults later down the line. It was most likely just an upstream issue as they merge in all their changes at once.
Also if you're building for the hercules, make sure you disable the wipe command so you don't damage your emmc.
Emmanuel U said:
Okay deleting files is NOT a solution to fixing errors, that'll just produce more faults later down the line. It was most likely just an upstream issue as they merge in all their changes at once.
Also if you're building for the hercules, make sure you disable the wipe command so you don't damage your emmc.
Click to expand...
Click to collapse
Yeah, that's exactly what ended up happening, so I just deleted NFC from the apps folder for the time being. Upstream changes are still a big issue(a bunch of missing .so files(which seem to be temporarily fixed by making empty files with the name, but I guess that's going to make issues down the line too)), and I'm not entirely sure that the old hercules-specific repos and files from ./extract I'm using from 11.0 are working with this new code. Either way, I'm starting to wonder if the code is just not compilable at this point...maybe I should wait until they start producing nightlies for at least newer devices? Quite the learning experience.
And thanks for the pointer!
Emmanuel U said:
Also if you're building for the hercules, make sure you disable the wipe command so you don't damage your emmc.
Click to expand...
Click to collapse
Where do I disable the wipe command?
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.
Hello Guys.
I am new at developing for android.
Have some problems compiling the TWRP for this device. I know that the recovery is already compiled, but I am doing this for learning purpose.
Device Tree: https://github.com/E5-CyanogenMod/android_device_samsung_e5ltexx
Kenel: https://github.com/E5-CyanogenMod/android_kernel_samsung_e5ltexx
The problem is when i use TWRP. I am using branch "android-5.1"
This is the error message:
Code:
bootable/recovery/minui/graphics_overlay.c: In function 'alloc_ion_mem':
bootable/recovery/minui/graphics_overlay.c:151:17: error: 'struct ion_allocation_data' has no member named 'heap_id_mask'
ionAllocData.heap_id_mask =
^
bootable/recovery/minuitwrp/graphics_overlay.c: In function 'alloc_ion_mem':
bootable/recovery/minuitwrp/graphics_overlay.c:163:17: error: 'struct ion_allocation_data' has no member named 'heap_id_mask'
ionAllocData.heap_id_mask =
^
bootable/recovery/minuitwrp/graphics_overlay.c: In function 'allocate_overlay':
bootable/recovery/minuitwrp/graphics_overlay.c:205:5: warning: implicit declaration of function 'isDisplaySplit' [-Wimplicit-function-declaration]
if (!isDisplaySplit()) {
^
bootable/recovery/minuitwrp/graphics_overlay.c:231:9: warning: implicit declaration of function 'getFbXres' [-Wimplicit-function-declaration]
float xres = getFbXres();
^
bootable/recovery/minuitwrp/graphics_overlay.c:232:9: warning: implicit declaration of function 'getLeftSplit' [-Wimplicit-function-declaration]
int lSplit = getLeftSplit();
^
target Executable: erase_image (/home/eabz/cm12/out/target/product/e5lte/obj/RECOVERY_EXECUTABLES/erase_image_intermediates/LINKED/erase_image)
make: *** [/home/eabz/cm12/out/target/product/e5lte/obj/STATIC_LIBRARIES/libminui_intermediates/graphics_overlay.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [/home/eabz/cm12/out/target/product/e5lte/obj/SHARED_LIBRARIES/libminuitwrp_intermediates/graphics_overlay.o] Error 1
If someone knows how to fix?
eabz2000 said:
Hello Guys.
I am new at developing for android.
Have some problems compiling the TWRP for this device. I know that the recovery is already compiled, but I am doing this for learning purpose.
Device Tree: https://github.com/E5-CyanogenMod/android_device_samsung_e5ltexx
Kenel: https://github.com/E5-CyanogenMod/android_kernel_samsung_e5ltexx
The problem is when i use TWRP. I am using branch "android-5.1"
This is the error message:
Code:
bootable/recovery/minui/graphics_overlay.c: In function 'alloc_ion_mem':
bootable/recovery/minui/graphics_overlay.c:151:17: error: 'struct ion_allocation_data' has no member named 'heap_id_mask'
ionAllocData.heap_id_mask =
^
bootable/recovery/minuitwrp/graphics_overlay.c: In function 'alloc_ion_mem':
bootable/recovery/minuitwrp/graphics_overlay.c:163:17: error: 'struct ion_allocation_data' has no member named 'heap_id_mask'
ionAllocData.heap_id_mask =
^
bootable/recovery/minuitwrp/graphics_overlay.c: In function 'allocate_overlay':
bootable/recovery/minuitwrp/graphics_overlay.c:205:5: warning: implicit declaration of function 'isDisplaySplit' [-Wimplicit-function-declaration]
if (!isDisplaySplit()) {
^
bootable/recovery/minuitwrp/graphics_overlay.c:231:9: warning: implicit declaration of function 'getFbXres' [-Wimplicit-function-declaration]
float xres = getFbXres();
^
bootable/recovery/minuitwrp/graphics_overlay.c:232:9: warning: implicit declaration of function 'getLeftSplit' [-Wimplicit-function-declaration]
int lSplit = getLeftSplit();
^
target Executable: erase_image (/home/eabz/cm12/out/target/product/e5lte/obj/RECOVERY_EXECUTABLES/erase_image_intermediates/LINKED/erase_image)
make: *** [/home/eabz/cm12/out/target/product/e5lte/obj/STATIC_LIBRARIES/libminui_intermediates/graphics_overlay.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [/home/eabz/cm12/out/target/product/e5lte/obj/SHARED_LIBRARIES/libminuitwrp_intermediates/graphics_overlay.o] Error 1
If someone knows how to fix?
Click to expand...
Click to collapse
Enrique change TW_NEW_ION_HEAP to Flag to false ??
I'm trying to update the f2fs driver for the d852 and cannot get it to compile. I'm new to compiling ROMs so I'm hoping it's something simple. Without these changes I can get lineage to compile with no problems. I have been doing it for a week or so with no issues.
I'm taking https://kernel.googlesource.com/pub/scm/linux/kernel/git/jaegeuk/f2fs-stable/fs/f2fs/* and putting it in kernel/lge/g3/fs/f2fs. I am using the 3.4.y branch from jaedeuk's git. According to my phone currently running lineage, it's using the 3.4.0 kernel.
I get these errors when trying to build lineage for my d852:
Code:
CC fs/ext4/ialloc.o
CC security/keys/process_keys.o
CC fs/ext4/inode.o
../../../../../../kernel/lge/g3/fs/f2fs/dir.c:51:50: error: 'S_SHIFT' undeclared here (not in a function)
static unsigned char f2fs_type_by_mode[S_IFMT >> S_SHIFT] = {
^
../../../../../../kernel/lge/g3/fs/f2fs/dir.c:52:2: error: array index in initializer not of integer type
[S_IFREG >> S_SHIFT] = F2FS_FT_REG_FILE,
^
../../../../../../kernel/lge/g3/fs/f2fs/dir.c:52:2: error: (near initialization for 'f2fs_type_by_mode')
../../../../../../kernel/lge/g3/fs/f2fs/dir.c:53:2: error: array index in initializer not of integer type
[S_IFDIR >> S_SHIFT] = F2FS_FT_DIR,
^
../../../../../../kernel/lge/g3/fs/f2fs/dir.c:53:2: error: (near initialization for 'f2fs_type_by_mode')
../../../../../../kernel/lge/g3/fs/f2fs/dir.c:54:2: error: array index in initializer not of integer type
[S_IFCHR >> S_SHIFT] = F2FS_FT_CHRDEV,
^
../../../../../../kernel/lge/g3/fs/f2fs/dir.c:54:2: error: (near initialization for 'f2fs_type_by_mode')
../../../../../../kernel/lge/g3/fs/f2fs/dir.c:55:2: error: array index in initializer not of integer type
[S_IFBLK >> S_SHIFT] = F2FS_FT_BLKDEV,
^
../../../../../../kernel/lge/g3/fs/f2fs/dir.c:55:2: error: (near initialization for 'f2fs_type_by_mode')
../../../../../../kernel/lge/g3/fs/f2fs/dir.c:56:2: error: array index in initializer not of integer type
[S_IFIFO >> S_SHIFT] = F2FS_FT_FIFO,
^
../../../../../../kernel/lge/g3/fs/f2fs/dir.c:56:2: error: (near initialization for 'f2fs_type_by_mode')
../../../../../../kernel/lge/g3/fs/f2fs/dir.c:57:2: error: array index in initializer not of integer type
[S_IFSOCK >> S_SHIFT] = F2FS_FT_SOCK,
^
../../../../../../kernel/lge/g3/fs/f2fs/dir.c:57:2: error: (near initialization for 'f2fs_type_by_mode')
../../../../../../kernel/lge/g3/fs/f2fs/dir.c:58:2: error: array index in initializer not of integer type
[S_IFLNK >> S_SHIFT] = F2FS_FT_SYMLINK,
^
../../../../../../kernel/lge/g3/fs/f2fs/dir.c:58:2: error: (near initialization for 'f2fs_type_by_mode')
../../../../../../kernel/lge/g3/fs/f2fs/dir.c:51:22: warning: 'f2fs_type_by_mode' defined but not used [-Wunused-variable]
error, forbidden warning: dir.c:51
/root/android/system/kernel/lge/g3/scripts/Makefile.build:307: recipe for target 'fs/f2fs/dir.o' failed
make[3]: *** [fs/f2fs/dir.o] Error 1
/root/android/system/kernel/lge/g3/scripts/Makefile.build:443: recipe for target 'fs/f2fs' failed
make[2]: *** [fs/f2fs] Error 2
make[2]: *** Waiting for unfinished jobs....
Figured it out. Forgot to copy the new include/linux/f2fs_fs.h which defines S_SHIFT.
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?