ERROR EC1333: Patch generation failed: [errors]


The user has used the --emake-android-version option to indicate that the build is for Android. This causes patches to be generated (from diffs) for the specified version that will enable it to be built properly. This error indicates that patch creation failed.

The output from patch generation is appended to this error in [errors] and should indicate precisely what went wrong.


The most likely reasons are: 1) Some of the original files cannot be found in the Android root directory (assumed to be the current directory or specified by --emake-android-root). 2) One of the diffs failed to work which means that the version of android specified on the commandline didn’t match what the user is attempting to build. It may be because the user’s build is different from AOSP or because they are attempting to build an newly released version of the file.


Ensure that the build was started in the correct source directory for the specified Android version (--emake-android-version=[version]) or that the setting of --emake-android-root points to the correct source directory. Ensure that the version of Android is supported and update to the most recent Emake if possible.