[Android Q&A, Help & Troubleshooting] Kapiljhajhria:
i am trying to build omniROM for oneplus 2 and getting this error.

Deleting /home/vj/android/omniROM/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes/android/app/admin/SystemUpdatePolicy$SystemUpdatePolicyType.class
Deleting /home/vj/android/omniROM/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes/android/app/Notification$Priority.class
Deleting /home/vj/android/omniROM/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes/android/bluetooth/BluetoothAdapter$AdapterState.class
Deleting /home/vj/android/omniROM/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes/android/bluetooth/BluetoothAdapter$ScanMode.class
Deleting /home/vj/android/omniROM/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes/android/widget/Toast$Duration.class
Deleting /home/vj/android/omniROM/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes/android/widget/GridView$StretchMode.class
Deleting /home/vj/android/omniROM/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes/android/widget/LinearLayout$DividerMode.class
Deleting /home/vj/android/omniROM/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes/android/widget/GridLayout$AlignmentMode.class
Deleting /home/vj/android/omniROM/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes/android/widget/NumberPicker$OnScrollListener$ScrollState.class
Deleting /home/vj/android/omniROM/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes/android/widget/LinearLayout$OrientationMode.class
Deleting /home/vj/android/omniROM/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes/android/widget/GridLayout$Orientation.class
Deleting /home/vj/android/omniROM/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes/android/security/keystore/KeyProperties$KeyAlgorithmEnum.class
Deleting /home/vj/android/omniROM/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes/android/security/keystore/KeyProperties$DigestEnum.class
Deleting /home/vj/android/omniROM/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes/android/security/keystore/KeyProperties$SignaturePaddingEnum.class
Deleting /home/vj/android/omniROM/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes/android/security/keystore/KeyProperties$BlockModeEnum.class
Deleting /home/vj/android/omniROM/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes/android/security/keystore/KeyProperties$EncryptionPaddingEnum.class
Deleting /home/vj/android/omniROM/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes/android/security/keystore/KeyProperties$PurposeEnum.class
Deleting /home/vj/android/omniROM/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes/android/security/keystore/KeyProperties$OriginEnum.class
Deleting /home/vj/android/omniROM/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes/android/content/Context$CreatePackageOptions.class
Deleting /home/vj/android/omniROM/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes/android/content/Intent$AccessUriMode.class
Deleting /home/vj/android/omniROM/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes/android/content/Intent$FillInFlags.class
Deleting /home/vj/android/omniROM/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes/android/content/Context$BindServiceFlags.class
Deleting /home/vj/android/omniROM/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes/android/content/Intent$GrantUriMode.class
Deleting /home/vj/android/omniROM/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes/android/content/Context$ServiceName.class
Deleting /home/vj/android/omniROM/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes/android/content/pm/ActivityInfo$ScreenOrientation.class
Deleting /home/vj/android/omniROM/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes/android/content/pm/PackageManager$PermissionFlags.class
Deleting /home/vj/android/omniROM/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes/android/content/pm/PackageManager$PermissionResult.class
Copying: /home/vj/android/omniROM/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes-jarjar.jar
Copying: /home/vj/android/omniROM/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/emma_out/lib/classes-jarjar.jar
Copying: /home/vj/android/omniROM/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes.jar
target Java: ims-common (/home/vj/android/omniROM/out/target/common/obj/JAVA_LIBRARIES/ims-common_intermediates/classes)
Copying: /home/vj/android/omniROM/out/target/common/obj/JAVA_LIBRARIES/ims-common_intermediates/classes-jarjar.jar
Copying: /home/vj/android/omniROM/out/target/common/obj/JAVA_LIBRARIES/ims-common_intermediates/emma_out/lib/classes-jarjar.jar
Copying: /home/vj/android/omniROM/out/target/common/obj/JAVA_LIBRARIES/ims-common_intermediates/classes.jar
target Java: voip-common (/home/vj/android/omniROM/out/target/common/obj/JAVA_LIBRARIES/voip-common_intermediates/classes)
Copying: /home/vj/android/omniROM/out/target/common/obj/JAVA_LIBRARIES/voip-common_intermediates/classes-jarjar.jar
Copying: /home/vj/android/omniROM/out/target/common/obj/JAVA_LIBRARIES/voip-common_intermediates/emma_out/lib/classes-jarjar.jar
Copying: /home/vj/android/omniROM/out/target/common/obj/JAVA_LIBRARIES/voip-common_intermediates/classes.jar
target Java: telephony-common (/home/vj/android/omniROM/out/target/common/obj/JAVA_LIBRARIES/telephony-common_intermediates/classes)
Copying: /home/vj/android/omniROM/out/target/common/obj/JAVA_LIBRARIES/telephony-common_intermediates/classes-jarjar.jar
Copying: /home/vj/android/omniROM/out/target/common/obj/JAVA_LIBRARIES/telephony-common_intermediates/emma_out/lib/classes-jarjar.jar
Copying: /home/vj/android/omniROM/out/target/common/obj/JAVA_LIBRARIES/telephony-common_intermediates/classes.jar
Docs droiddoc: /home/vj/android/omniROM/out/target/common/docs/api-stubs
DroidDoc took 36 sec. to write docs to /home/vj/android/omniROM/out/target/common/docs/api-stubs
Copy: apicheck (/home/vj/android/omniROM/out/host/linux-x86/obj/EXECUTABLES/apicheck_intermediates/apicheck)
Install: /home/vj/android/omniROM/out/host/linux-x86/bin/apicheck
Checking API: checkpublicapi-last
/home/vj/android/omniROM/out/target/common/obj/PACKAGING/public_api.txt:1966: error 17: Field android.R.style.TextAppearance_Material_Widget_Button_Inverse has changed value from 16974548 to 16974565
/home/vj/android/omniROM/out/target/common/obj/PACKAGING/public_api.txt:2011: error 17: Field android.R.style.ThemeOverlay_Material_Dialog has changed value from 16974550 to 16974564
/home/vj/android/omniROM/out/target/common/obj/PACKAGING/public_api.txt:2012: error 17: Field android.R.style.ThemeOverlay_Material_Dialog_Alert has changed value from 16974551 to 16974566
/home/vj/android/omniROM/out/target/common/obj/PACKAGING/public_api.txt:2120: error 17: Field android.R.style.Theme_Material_Light_LightStatusBar has changed value from 16974549 to 16974563

******************************
You have tried to change the API from what has been previously released in
an SDK. Please fix the errors listed above.
******************************

build/core/tasks/apicheck.mk:46: recipe for target '/home/vj/android/omniROM/out/target/common/obj/PACKAGING/checkpublicapi-last-timestamp' failed
make: *** [/home/vj/android/omniROM/out/target/common/obj/PACKAGING/checkpublicapi-last-timestamp] Error 38

#### make failed to build some targets (14:24 (mm:ss)) ####