我正在构建AOSP。我严格按照要求和构建说明进行操作,但出现编译错误,提示:
frameworks / base / services / core / java / com / android / server / timezone / RulesManagerService.java:50: 错误:软件包libcore.timezone不存在
我不知道如何解决此问题。我是否错过了有关时区的某些设置? 谢谢您的帮助
这是错误日志:
java.jar-源1.8-目标1.8 -d out / soong / .intermediates / frameworks / base / services / core / services.core.unboosted / android_common / javac / classes -s out / soong / .intermediates / frameworks / base / services / core / services.core.unboosted / android_common / javac / anno @ out / soong / .intermediates / frameworks / base / services / core / services.core.unboosted / android_common / javac / services.core.unboosted.jar.rsp @ out / soong / .intermediates / frameworks / base / services / core / services.core.unboosted / android_common / javac / srcjars / list ; fi)&& out / soong / host / linux-x86 / bin / soong_zip -jar -o out / soong / .intermediates / frameworks / base / services / core / services.core.unboosted / android_common / javac / services.core.unboosted.jar -C out / soong / .intermediates / frameworks / base / services / core / services.core.unboosted / android_common / javac / classes -D out / soong / .intermediates / frameworks / base / services / core / services.core.unboosted / android_common / javac / classes frameworks / base / services / core / java / com / android / server / timezone / RulesManagerService.java:50: 错误:软件包libcore.timezone不存在导入 libcore.timezone.TzDataSetVersion; ^ frameworks / base / services / core / java / com / android / server / timezone / RulesManagerService.java:70: 错误:找不到符号 TzDataSetVersion.currentFormatMajorVersion(), ^符号:变量TzDataSetVersion位置:类RulesManagerService frameworks / base / services / core / java / com / android / server / timezone / RulesManagerService.java:71: 错误:找不到符号 TzDataSetVersion.currentFormatMinorVersion()); ^符号:变量TzDataSetVersion位置:类RulesManagerService 3错误[92%108190/116405] // frameworks / base:api-stubs-docs Metalava [common]
/local/android_source/frameworks/base/media/java/android/media/MediaDrm.java:1207: 警告:返回意外的常量SECURITY_LEVEL_MAX;是 @SecurityLevel缺少此常量吗?预期之一 SECURITY_LEVEL_UNKNOWN,SECURITY_LEVEL_SW_SECURE_CRYPTO, SECURITY_LEVEL_SW_SECURE_DECODE,SECURITY_LEVEL_HW_SECURE_CRYPTO, SECURITY_LEVEL_HW_SECURE_DECODE,SECURITY_LEVEL_HW_SECURE_ALL [ReturningUnexpectedConstant] [92%108191/116405] // frameworks / base:hiddenapi-lists-docs Metalava [common]
/local/android_source/frameworks/base/media/java/android/media/MediaDrm.java:1207: 警告:返回意外的常量SECURITY_LEVEL_MAX;是 @SecurityLevel缺少此常量吗?预期之一 SECURITY_LEVEL_UNKNOWN,SECURITY_LEVEL_SW_SECURE_CRYPTO, SECURITY_LEVEL_SW_SECURE_DECODE,SECURITY_LEVEL_HW_SECURE_CRYPTO, SECURITY_LEVEL_HW_SECURE_DECODE,SECURITY_LEVEL_HW_SECURE_ALL [ReturningUnexpectedConstant] [92%108192/116405] // frameworks / base:system-api-stubs-docs Metalava [common]
/local/android_source/frameworks/base/media/java/android/media/MediaDrm.java:1207: 警告:返回意外的常量SECURITY_LEVEL_MAX;是 @SecurityLevel缺少此常量吗?预期之一 SECURITY_LEVEL_UNKNOWN,SECURITY_LEVEL_SW_SECURE_CRYPTO, SECURITY_LEVEL_SW_SECURE_DECODE,SECURITY_LEVEL_HW_SECURE_CRYPTO, SECURITY_LEVEL_HW_SECURE_DECODE,SECURITY_LEVEL_HW_SECURE_ALL [ReturningUnexpectedConstant] 20:45:17忍者失败,退出状态 1
无法建立一些目标(10:03:02(hh:mm:ss))
答案 0 :(得分:0)
我已使用“回购同步”撤消了最新更改,并全部重建,但未收到此错误。我不知道第一次出什么毛病,但问题可以解决。