Android Build failed : illegal unicode escape at 5.4

SDK settings

Output Log(error at ASTC, but same as Multi build) :
UATHelper: Packaging (Android (ASTC)): Z:\app\build\generated\aidl_source_output_dir\debug\out\com\android\vending\licensing\ILicenseResultListener.java:3: error: illegal unicode escape
UATHelper: Packaging (Android (ASTC)): * Using: C:\Users\user\AppData\Local\Android\Sdk\build-tools\35.0.0\aidl.exe -pC:\Users\user\AppData\Local\Android\Sdk\platforms\android-33\framework.aidl -oZ:\app\build\generated\aidl_source_output_dir\debug\out -IZ:\app\src\main\java -IZ:\app\src\debug\aidl -IC:\Users\user.gradle\caches\transforms-3\abedd8388bdbd55803e370bace33339f\transformed\media-1.0.0\aidl -IC:\Users\user.gradle\caches\transforms-3\87c712ceb280b89563e287f590257de7\transformed\core-1.3.0\aidl -IC:\Users\user.gradle\caches\transforms-3\7a1ff5a23d45e8270cb10429ea4d29f7\transformed
versionedparcelable-1.1.0\aidl -IZ:\downloader_library\build\intermediates\aidl_parcelable\debug\out -IZ:\permission_library\build\intermediates\aidl_parcelable\debug\out -dC:\Users\user\AppData\Local\Temp\aidl17996705228382876203.d Z:\app\src\main\java\com\android\vending\licensing\ILicenseResultListener.aidl
UATHelper: Packaging (Android (ASTC)): ^
UATHelper: Packaging (Android (ASTC)): Z:\app\build\generated\aidl_source_output_dir\debug\out\com\android\vending\licensing\ILicenseResultListener.java:3: error: illegal unicode escape
UATHelper: Packaging (Android (ASTC)): * Using: C:\Users\user\AppData\Local\Android\Sdk\build-tools\35.0.0\aidl.exe -pC:\Users\user\AppData\Local\Android\Sdk\platforms\android-33\framework.aidl -oZ:\app\build\generated\aidl_source_output_dir\debug\out -IZ:\app\src\main\java -IZ:\app\src\debug\aidl -IC:\Users\user.gradle\caches\transforms-3\abedd8388bdbd55803e370bace33339f\transformed\media-1.0.0\aidl -IC:\Users\user.gradle\caches\transforms-3\87c712ceb280b89563e287f590257de7\transformed\core-1.3.0\aidl -IC:\Users\user.gradle\caches\transforms-3\7a1ff5a23d45e8270cb10429ea4d29f7\transformed
versionedparcelable-1.1.0\aidl -IZ:\downloader_library\build\intermediates\aidl_parcelable\debug\out -IZ:\permission_library\build\intermediates\aidl_parcelable\debug\out -dC:\Users\user\AppData\Local\Temp\aidl17996705228382876203.d Z:\app\src\main\java\com\android\vending\licensing\ILicenseResultListener.aidl
UATHelper: Packaging (Android (ASTC)): ^
UATHelper: Packaging (Android (ASTC)): Z:\app\build\generated\aidl_source_output_dir\debug\out\com\android\vending\licensing\ILicenseResultListener.java:3: error: illegal unicode escape
UATHelper: Packaging (Android (ASTC)): * Using: C:\Users\user\AppData\Local\Android\Sdk\build-tools\35.0.0\aidl.exe -pC:\Users\user\AppData\Local\Android\Sdk\platforms\android-33\framework.aidl -oZ:\app\build\generated\aidl_source_output_dir\debug\out -IZ:\app\src\main\java -IZ:\app\src\debug\aidl -IC:\Users\user.gradle\caches\transforms-3\abedd8388bdbd55803e370bace33339f\transformed\media-1.0.0\aidl -IC:\Users\user.gradle\caches\transforms-3\87c712ceb280b89563e287f590257de7\transformed\core-1.3.0\aidl -IC:\Users\user.gradle\caches\transforms-3\7a1ff5a23d45e8270cb10429ea4d29f7\transformed
versionedparcelable-1.1.0\aidl -IZ:\downloader_library\build\intermediates\aidl_parcelable\debug\out -IZ:\permission_library\build\intermediates\aidl_parcelable\debug\out -dC:\Users\user\AppData\Local\Temp\aidl17996705228382876203.d Z:\app\src\main\java\com\android\vending\licensing\ILicenseResultListener.aidl
UATHelper: Packaging (Android (ASTC)): ^
UATHelper: Packaging (Android (ASTC)): Z:\app\build\generated\aidl_source_output_dir\debug\out\com\android\vending\licensing\ILicenseResultListener.java:3: error: illegal unicode escape
UATHelper: Packaging (Android (ASTC)): * Using: C:\Users\user\AppData\Local\Android\Sdk\build-tools\35.0.0\aidl.exe -pC:\Users\user\AppData\Local\Android\Sdk\platforms\android-33\framework.aidl -oZ:\app\build\generated\aidl_source_output_dir\debug\out -IZ:\app\src\main\java -IZ:\app\src\debug\aidl -IC:\Users\user.gradle\caches\transforms-3\abedd8388bdbd55803e370bace33339f\transformed\media-1.0.0\aidl -IC:\Users\user.gradle\caches\transforms-3\87c712ceb280b89563e287f590257de7\transformed\core-1.3.0\aidl -IC:\Users\user.gradle\caches\transforms-3\7a1ff5a23d45e8270cb10429ea4d29f7\transformed
versionedparcelable-1.1.0\aidl -IZ:\downloader_library\build\intermediates\aidl_parcelable\debug\out -IZ:\permission_library\build\intermediates\aidl_parcelable\debug\out -dC:\Users\user\AppData\Local\Temp\aidl17996705228382876203.d Z:\app\src\main\java\com\android\vending\licensing\ILicenseResultListener.aidl
UATHelper: Packaging (Android (ASTC)): ^
UATHelper: Packaging (Android (ASTC)): Z:\app\build\generated\aidl_source_output_dir\debug\out\com\android\vending\licensing\ILicenseResultListener.java:3: error: illegal unicode escape
UATHelper: Packaging (Android (ASTC)): * Using: C:\Users\user\AppData\Local\Android\Sdk\build-tools\35.0.0\aidl.exe -pC:\Users\user\AppData\Local\Android\Sdk\platforms\android-33\framework.aidl -oZ:\app\build\generated\aidl_source_output_dir\debug\out -IZ:\app\src\main\java -IZ:\app\src\debug\aidl -IC:\Users\user.gradle\caches\transforms-3\abedd8388bdbd55803e370bace33339f\transformed\media-1.0.0\aidl -IC:\Users\user.gradle\caches\transforms-3\87c712ceb280b89563e287f590257de7\transformed\core-1.3.0\aidl -IC:\Users\user.gradle\caches\transforms-3\7a1ff5a23d45e8270cb10429ea4d29f7\transformed
versionedparcelable-1.1.0\aidl -IZ:\downloader_library\build\intermediates\aidl_parcelable\debug\out -IZ:\permission_library\build\intermediates\aidl_parcelable\debug\out -dC:\Users\user\AppData\Local\Temp\aidl17996705228382876203.d Z:\app\src\main\java\com\android\vending\licensing\ILicenseResultListener.aidl
UATHelper: Packaging (Android (ASTC)): ^
UATHelper: Packaging (Android (ASTC)): Z:\app\build\generated\aidl_source_output_dir\debug\out\com\android\vending\licensing\ILicenseResultListener.java:3: error: illegal unicode escape
UATHelper: Packaging (Android (ASTC)): * Using: C:\Users\user\AppData\Local\Android\Sdk\build-tools\35.0.0\aidl.exe -pC:\Users\user\AppData\Local\Android\Sdk\platforms\android-33\framework.aidl -oZ:\app\build\generated\aidl_source_output_dir\debug\out -IZ:\app\src\main\java -IZ:\app\src\debug\aidl -IC:\Users\user.gradle\caches\transforms-3\abedd8388bdbd55803e370bace33339f\transformed\media-1.0.0\aidl -IC:\Users\user.gradle\caches\transforms-3\87c712ceb280b89563e287f590257de7\transformed\core-1.3.0\aidl -IC:\Users\user.gradle\caches\transforms-3\7a1ff5a23d45e8270cb10429ea4d29f7\transformed
versionedparcelable-1.1.0\aidl -IZ:\downloader_library\build\intermediates\aidl_parcelable\debug\out -IZ:\permission_library\build\intermediates\aidl_parcelable\debug\out -dC:\Users\user\AppData\Local\Temp\aidl17996705228382876203.d Z:\app\src\main\java\com\android\vending\licensing\ILicenseResultListener.aidl
UATHelper: Packaging (Android (ASTC)):
^
UATHelper: Packaging (Android (ASTC)): Z:\app\build\generated\aidl_source_output_dir\debug\out\com\android\vending\licensing\ILicensingService.java:3: error: illegal unicode escape
UATHelper: Packaging (Android (ASTC)): * Using: C:\Users\user\AppData\Local\Android\Sdk\build-tools\35.0.0\aidl.exe -pC:\Users\user\AppData\Local\Android\Sdk\platforms\android-33\framework.aidl -oZ:\app\build\generated\aidl_source_output_dir\debug\out -IZ:\app\src\main\java -IZ:\app\src\debug\aidl -IC:\Users\user.gradle\caches\transforms-3\abedd8388bdbd55803e370bace33339f\transformed\media-1.0.0\aidl -IC:\Users\user.gradle\caches\transforms-3\87c712ceb280b89563e287f590257de7\transformed\core-1.3.0\aidl -IC:\Users\user.gradle\caches\transforms-3\7a1ff5a23d45e8270cb10429ea4d29f7\transformed
versionedparcelable-1.1.0\aidl -IZ:\downloader_library\build\intermediates\aidl_parcelable\debug\out -IZ:\permission_library\build\intermediates\aidl_parcelable\debug\out -dC:\Users\user\AppData\Local\Temp\aidl18205828097503871282.d Z:\app\src\main\java\com\android\vending\licensing\ILicensingService.aidl
UATHelper: Packaging (Android (ASTC)): ^
UATHelper: Packaging (Android (ASTC)): Z:\app\build\generated\aidl_source_output_dir\debug\out\com\android\vending\licensing\ILicensingService.java:3: error: illegal unicode escape
UATHelper: Packaging (Android (ASTC)): * Using: C:\Users\user\AppData\Local\Android\Sdk\build-tools\35.0.0\aidl.exe -pC:\Users\user\AppData\Local\Android\Sdk\platforms\android-33\framework.aidl -oZ:\app\build\generated\aidl_source_output_dir\debug\out -IZ:\app\src\main\java -IZ:\app\src\debug\aidl -IC:\Users\user.gradle\caches\transforms-3\abedd8388bdbd55803e370bace33339f\transformed\media-1.0.0\aidl -IC:\Users\user.gradle\caches\transforms-3\87c712ceb280b89563e287f590257de7\transformed\core-1.3.0\aidl -IC:\Users\user.gradle\caches\transforms-3\7a1ff5a23d45e8270cb10429ea4d29f7\transformed
versionedparcelable-1.1.0\aidl -IZ:\downloader_library\build\intermediates\aidl_parcelable\debug\out -IZ:\permission_library\build\intermediates\aidl_parcelable\debug\out -dC:\Users\user\AppData\Local\Temp\aidl18205828097503871282.d Z:\app\src\main\java\com\android\vending\licensing\ILicensingService.aidl
UATHelper: Packaging (Android (ASTC)): ^
UATHelper: Packaging (Android (ASTC)): Z:\app\build\generated\aidl_source_output_dir\debug\out\com\android\vending\licensing\ILicensingService.java:3: error: illegal unicode escape
UATHelper: Packaging (Android (ASTC)): * Using: C:\Users\user\AppData\Local\Android\Sdk\build-tools\35.0.0\aidl.exe -pC:\Users\user\AppData\Local\Android\Sdk\platforms\android-33\framework.aidl -oZ:\app\build\generated\aidl_source_output_dir\debug\out -IZ:\app\src\main\java -IZ:\app\src\debug\aidl -IC:\Users\user.gradle\caches\transforms-3\abedd8388bdbd55803e370bace33339f\transformed\media-1.0.0\aidl -IC:\Users\user.gradle\caches\transforms-3\87c712ceb280b89563e287f590257de7\transformed\core-1.3.0\aidl -IC:\Users\user.gradle\caches\transforms-3\7a1ff5a23d45e8270cb10429ea4d29f7\transformed
versionedparcelable-1.1.0\aidl -IZ:\downloader_library\build\intermediates\aidl_parcelable\debug\out -IZ:\permission_library\build\intermediates\aidl_parcelable\debug\out -dC:\Users\user\AppData\Local\Temp\aidl18205828097503871282.d Z:\app\src\main\java\com\android\vending\licensing\ILicensingService.aidl
UATHelper: Packaging (Android (ASTC)): ^
UATHelper: Packaging (Android (ASTC)): Z:\app\build\generated\aidl_source_output_dir\debug\out\com\android\vending\licensing\ILicensingService.java:3: error: illegal unicode escape
UATHelper: Packaging (Android (ASTC)): * Using: C:\Users\user\AppData\Local\Android\Sdk\build-tools\35.0.0\aidl.exe -pC:\Users\user\AppData\Local\Android\Sdk\platforms\android-33\framework.aidl -oZ:\app\build\generated\aidl_source_output_dir\debug\out -IZ:\app\src\main\java -IZ:\app\src\debug\aidl -IC:\Users\user.gradle\caches\transforms-3\abedd8388bdbd55803e370bace33339f\transformed\media-1.0.0\aidl -IC:\Users\user.gradle\caches\transforms-3\87c712ceb280b89563e287f590257de7\transformed\core-1.3.0\aidl -IC:\Users\user.gradle\caches\transforms-3\7a1ff5a23d45e8270cb10429ea4d29f7\transformed
versionedparcelable-1.1.0\aidl -IZ:\downloader_library\build\intermediates\aidl_parcelable\debug\out -IZ:\permission_library\build\intermediates\aidl_parcelable\debug\out -dC:\Users\user\AppData\Local\Temp\aidl18205828097503871282.d Z:\app\src\main\java\com\android\vending\licensing\ILicensingService.aidl
UATHelper: Packaging (Android (ASTC)): 39 actionable tasks: 1 executed, 38 up-to-date
UATHelper: Packaging (Android (ASTC)): ^
UATHelper: Packaging (Android (ASTC)): Z:\app\build\generated\aidl_source_output_dir\debug\out\com\android\vending\licensing\ILicensingService.java:3: error: illegal unicode escape
UATHelper: Packaging (Android (ASTC)): * Using: C:\Users\user\AppData\Local\Android\Sdk\build-tools\35.0.0\aidl.exe -pC:\Users\user\AppData\Local\Android\Sdk\platforms\android-33\framework.aidl -oZ:\app\build\generated\aidl_source_output_dir\debug\out -IZ:\app\src\main\java -IZ:\app\src\debug\aidl -IC:\Users\user.gradle\caches\transforms-3\abedd8388bdbd55803e370bace33339f\transformed\media-1.0.0\aidl -IC:\Users\user.gradle\caches\transforms-3\87c712ceb280b89563e287f590257de7\transformed\core-1.3.0\aidl -IC:\Users\user.gradle\caches\transforms-3\7a1ff5a23d45e8270cb10429ea4d29f7\transformed
versionedparcelable-1.1.0\aidl -IZ:\downloader_library\build\intermediates\aidl_parcelable\debug\out -IZ:\permission_library\build\intermediates\aidl_parcelable\debug\out -dC:\Users\user\AppData\Local\Temp\aidl18205828097503871282.d Z:\app\src\main\java\com\android\vending\licensing\ILicensingService.aidl
UATHelper: Packaging (Android (ASTC)): ^
UATHelper: Packaging (Android (ASTC)): Z:\app\build\generated\aidl_source_output_dir\debug\out\com\android\vending\licensing\ILicensingService.java:3: error: illegal unicode escape
UATHelper: Packaging (Android (ASTC)): * Using: C:\Users\user\AppData\Local\Android\Sdk\build-tools\35.0.0\aidl.exe -pC:\Users\user\AppData\Local\Android\Sdk\platforms\android-33\framework.aidl -oZ:\app\build\generated\aidl_source_output_dir\debug\out -IZ:\app\src\main\java -IZ:\app\src\debug\aidl -IC:\Users\user.gradle\caches\transforms-3\abedd8388bdbd55803e370bace33339f\transformed\media-1.0.0\aidl -IC:\Users\user.gradle\caches\transforms-3\87c712ceb280b89563e287f590257de7\transformed\core-1.3.0\aidl -IC:\Users\user.gradle\caches\transforms-3\7a1ff5a23d45e8270cb10429ea4d29f7\transformed
versionedparcelable-1.1.0\aidl -IZ:\downloader_library\build\intermediates\aidl_parcelable\debug\out -IZ:\permission_library\build\intermediates\aidl_parcelable\debug\out -dC:\Users\user\AppData\Local\Temp\aidl18205828097503871282.d Z:\app\src\main\java\com\android\vending\licensing\ILicensingService.aidl
UATHelper: Packaging (Android (ASTC)):
^
UATHelper: Packaging (Android (ASTC)): 12 errors
UATHelper: Packaging (Android (ASTC)): FAILURE: Build failed with an exception.
UATHelper: Packaging (Android (ASTC)): * What went wrong:
UATHelper: Packaging (Android (ASTC)): Execution failed for task ‘:app:compileDebugJavaWithJavac’.
UATHelper: Packaging (Android (ASTC)): > Compilation failed; see the compiler error output for details.
UATHelper: Packaging (Android (ASTC)): * Try:
UATHelper: Packaging (Android (ASTC)): > Run with --stacktrace option to get the stack trace.
UATHelper: Packaging (Android (ASTC)): > Run with --info or --debug option to get more log output.
UATHelper: Packaging (Android (ASTC)): > Run with --scan to get full insights.
UATHelper: Packaging (Android (ASTC)): * Get more help at https://help.gradle.org
UATHelper: Packaging (Android (ASTC)): BUILD FAILED in 13s
UATHelper: Packaging (Android (ASTC)): cmd.exe failed with args /c “D:\Unreal-PassthroughSample-main\Intermediate\Android\arm64\gradle\rungradle.bat” :app:assembleDebug
UATHelper: Packaging (Android (ASTC)): (see C:\Users\user\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_5.4\Log.txt for full exception trace)
UATHelper: Packaging (Android (ASTC)): AutomationTool executed for 0h 0m 53s
UATHelper: Packaging (Android (ASTC)): AutomationTool exiting with ExitCode=1 (Error_Unknown)
UATHelper: Packaging (Android (ASTC)): BUILD FAILED
PackagingResults: Error: Unknown Error
LogDerivedDataCache: C:/Users/user/AppData/Local/UnrealEngine/Common/DerivedDataCache: Maintenance finished in +00:00:00.000 and deleted 0 files with total size 0 MiB and 0 empty folders. Scanned 0 files in 1 folders with total size 0 MiB.

1 Like

Check your [Android SDK Tools] configuration, don’t select version 35.0.0, select version 34.0.0. It works for me.

1 Like

I had both version 34 and 35 installed, and uninstalling 35 fixed it

Not worked at 34.0.0, same errors


I found AutoSDK not installed, should be install it?