Android Build Error 4.24 app:compileDebugJavaWithJavac FAILED

Hi guy’s I’m trying to build a apk from UE4 Template AR Project. But I’m getting this error again, its so frustrating. Need help here.
Here is the log details:

LogPlayLevel: ********** BUILD COMMAND STARTED **********
LogPlayLevel: Completed Launch On Stage: Build Task, Time: 11.542588
LogPlayLevel: Running: C:\UE4SourceCode\Engine\Binaries\DotNET\UnrealBuildTool.exe UnrealPak Win64 Development -Project=E:\UEProjects\ARProjects\HelloARUnreal\HelloARUnreal.uproject  E:\UEProjects\ARProjects\HelloARUnreal\HelloARUnreal.uproject -NoUBTMakefiles  -Manifest=C:\UE4SourceCode\Engine\Intermediate\Build\Manifest.xml -NoHotReload -log="C:\UE4SourceC
ode\Engine\Programs\AutomationTool\Saved\Logs\UBT-UnrealPak-Win64-Development.txt"
LogPlayLevel:   Using 'git status' to determine working set for adaptive non-unity build (C:\UE4SourceCode).
LogPlayLevel:   Writing manifest to C:\UE4SourceCode\Engine\Intermediate\Build\Manifest.xml
LogPlayLevel:   Target is up to date
LogPlayLevel:   Total execution time: 7.02 seconds
LogPlayLevel: Took 7.2083346s to run UnrealBuildTool.exe, ExitCode=0
LogPlayLevel: Running: C:\UE4SourceCode\Engine\Binaries\DotNET\UnrealBuildTool.exe HelloARUnreal Android Development -Project=E:\UEProjects\ARProjects\HelloARUnreal\HelloARUnreal.uproject  E:\UEProjects\ARProjects\HelloARUnreal\HelloARUnreal.uproject -NoUBTMakefiles  -remoteini="E:\UEProjects\ARProjects\HelloARUnreal" -skipdeploy -ini:Game:[/Script/UnrealEd.
ProjectPackagingSettings]:BlueprintNativizationMethod=Disabled -Manifest=C:\UE4SourceCode\Engine\Intermediate\Build\Manifest.xml -NoHotReload -log="C:\UE4SourceCode\Engine\Programs\AutomationTool\Saved\Logs\UBT-HelloARUnreal-Android-Development.txt"
LogPlayLevel:   Using 'git status' to determine working set for adaptive non-unity build (C:\UE4SourceCode).
LogPlayLevel:   PLATFORM_ANDROID_NDK_VERSION = 140200
LogPlayLevel:   NDK toolchain: r14b, NDK version: 24, GccVersion: 4.9, ClangVersion: 3.8.275480
LogPlayLevel:   Waiting for 'git status' command to complete
LogPlayLevel:   Parsing headers for HelloARUnreal
LogPlayLevel:     Running UnrealHeaderTool "E:\UEProjects\ARProjects\HelloARUnreal\HelloARUnreal.uproject" "E:\UEProjects\ARProjects\HelloARUnreal\Intermediate\Build\Android\HelloARUnreal\Development\HelloARUnreal.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors
LogPlayLevel:   Reflection code generated for HelloARUnreal in 14.7887113 seconds
LogPlayLevel:   Compiling Native code with NDK API 'android-24'
LogPlayLevel:   Writing manifest to C:\UE4SourceCode\Engine\Intermediate\Build\Manifest.xml
LogPlayLevel:   Target is up to date
LogPlayLevel:   Deploying HelloARUnreal Android Development...
LogPlayLevel:   AndroidPlugin: Plugins\Runtime\AR\Google\GoogleARCore\Source\GoogleARCoreBase\GoogleARCoreBase_APL.xml
LogPlayLevel:   AndroidPlugin: Plugins\Runtime\AndroidPermission\Source\AndroidPermission\AndroidPermission_APL.xml
LogPlayLevel:   AndroidPlugin: Plugins\Runtime\AR\Google\GoogleARCoreServices\Source\GoogleARCoreServices\GoogleARCoreServices_APL.xml
LogPlayLevel:   AndroidPlugin: Plugins\Runtime\GoogleCloudMessaging\Source\GoogleCloudMessaging\GoogleCloudMessaging_UPL.xml
LogPlayLevel:   UPL: ..\Plugins/Runtime/AR/Google/GoogleARCore/Source/GoogleARCoreBase/GoogleARCoreBase_APL.xml
LogPlayLevel:   UPL: ..\Plugins/Runtime/AndroidPermission/Source/AndroidPermission/AndroidPermission_APL.xml
LogPlayLevel:   UPL: ..\Plugins/Runtime/AR/Google/GoogleARCoreServices/Source/GoogleARCoreServices/GoogleARCoreServices_APL.xml
LogPlayLevel:   UPL: ..\Plugins/Runtime/GoogleCloudMessaging/Source/GoogleCloudMessaging/GoogleCloudMessaging_UPL.xml
LogPlayLevel:   Using package name: 'com.google.mediamonkar'
LogPlayLevel:   GotStoreVersion found v1. (bUseChangeListAsStoreVersion=False IsBuildMachine=False EngineChangeList=0)
LogPlayLevel:   Writing packageInfo pkgName:com.google.mediamonkar storeVersion:1 versionDisplayName:1.0 to E:\UEProjects\ARProjects\HelloARUnreal\Binaries\Android\packageInfo.txt
LogPlayLevel:   ====6/19/2020 2:17:08 PM====PREPARING TO MAKE APK=================================================================
LogPlayLevel:   bBuildForES2: true
LogPlayLevel:   bBuildForES31: true
LogPlayLevel:   bSupportsVulkan: false
LogPlayLevel:   Requires at least SDK API level 28, currently set to 'android-24'
LogPlayLevel:   Building Java with SDK API level 'android-28'
LogPlayLevel:   Building with Build Tools version '26.0.1'
LogPlayLevel: \ARProjects\HelloARUnreal\Build\Android\src\com\google\mediamonkar\OBBData.java ====
LogPlayLevel:   ==== Writing to OBB data file E:\UEProjects\ARProjects\HelloARUnreal\Build\Android\src\com\google\mediamonkar\OBBData.java ====
LogPlayLevel:   ==== OBB data file up to date so not writing. ====
LogPlayLevel:   ==== Writing to shim file E:\UEProjects\ARProjects\HelloARUnreal\Build\Android\src\com\epicgames\ue4\DownloadShim.java ====
LogPlayLevel:   ==== Shim data file up to date so not writing. ====
LogPlayLevel:   ==== Writing to template target file E:\UEProjects\ARProjects\HelloARUnreal\Build\Android\src\com\google\mediamonkar\AlarmReceiver.java ====
LogPlayLevel:   ==== Writing to template target file E:\UEProjects\ARProjects\HelloARUnreal\Build\Android\src\com\google\mediamonkar\DownloaderActivity.java ====
LogPlayLevel:   ==== Template target file up to date so not writing. ====
LogPlayLevel:   ==== Writing to template target file E:\UEProjects\ARProjects\HelloARUnreal\Build\Android\src\com\google\mediamonkar\OBBDownloaderService.java ====
LogPlayLevel:   ==== Template target file up to date so not writing. ====
LogPlayLevel:   Cleaning up files based on template dir E:\UEProjects\ARProjects\HelloARUnreal\Build\Android\src\com\google\mediamonkar
LogPlayLevel:   E:\UEProjects\ARProjects\HelloARUnreal\Binaries\Android\HelloARUnreal-armv7-es2.apk is out of date due to newer input file E:\UEProjects\ARProjects\HelloARUnreal\Binaries\Android\HelloARUnreal-armv7-es2.so
LogPlayLevel:   UPL Init: armeabi-v7a
LogPlayLevel:   GoogleARCorePlugin APL init
LogPlayLevel:   Android Permission Plugin Init
LogPlayLevel:   GoogleARServices APL init
LogPlayLevel:   Google Cloud Messaging init
LogPlayLevel:   GCMClientSenderID set: false
LogPlayLevel:   On build machine.
LogPlayLevel:   bPackageDataInsideApk = True
LogPlayLevel:   Obb location E:\UEProjects\ARProjects\HelloARUnreal/Saved/StagedBuilds/Android.obb
LogPlayLevel:   Obb destination location E:\UEProjects\ARProjects\HelloARUnreal\Intermediate\Android\APK/assets
LogPlayLevel:   Added repository: C:\NVPACK\android-sdk-windows\extras\android\m2repository
LogPlayLevel:   Added repository: ..\Source\ThirdParty\Android\extras\google\m2repository
LogPlayLevel:   Added repository: ..\Source\ThirdParty\Android\extras\android\m2repository
LogPlayLevel:   AARImports: com.google.android.gms, play-services-auth, 11.8.0
LogPlayLevel:   AARImports: com.google.android.gms, play-services-games, 11.8.0
LogPlayLevel:   AARImports: com.google.android.gms, play-services-nearby, 11.8.0
LogPlayLevel:   AARImports: com.google.android.gms, play-services-plus, 11.8.0
LogPlayLevel:   ====6/19/2020 2:17:10 PM====PREPARING NATIVE CODE=================================================================
LogPlayLevel:   On build machine.
LogPlayLevel:   Copying permission_library directory to staging before build
LogPlayLevel:   Directory ..//Source/ThirdParty/AndroidPermission/permission_library copied to E:/UEProjects/ARProjects/HelloARUnreal/Intermediate/Android/APK/JavaLibs/permission_library
LogPlayLevel:   ==== Writing to OBB data file E:\UEProjects\ARProjects\HelloARUnreal\Build\Android\src\com\google\mediamonkar\OBBData.java ====
LogPlayLevel:   ==== OBB data file up to date so not writing. ====
LogPlayLevel:   Copying GoogleARCore plugin files to staging
LogPlayLevel:   Directory ../Plugins/Runtime/AR/Google/GoogleARCore/Source/GoogleARCoreBase/Java copied to E:/UEProjects/ARProjects/HelloARUnreal/Intermediate/Android/APK/src/com/google/arcore/unreal
LogPlayLevel:   ====6/19/2020 2:17:10 PM====PERFORMING FINAL APK PACKAGE OPERATION================================================
LogPlayLevel:   Creating rungradle.bat to work around commandline length limit (using unused drive letter Z:)
LogPlayLevel:   Making .apk with Gradle...
LogPlayLevel:   To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/4.1/userguide/gradle_daemon.html.
LogPlayLevel:   To suppress this, remove "buildToolsVersion '26.0.1'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.
LogPlayLevel: dle file, as each version of the Android Gradle Plugin now has a default version of the build tools.
LogPlayLevel:   Android SDK Build Tools 26.0.2 will be used.
LogPlayLevel:   To suppress this, remove "buildToolsVersion '26.0.1'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.
LogPlayLevel:   To suppress this warning, remove "buildToolsVersion '26.0.1'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.
LogPlayLevel:   Checking the license for package Android SDK Build-Tools 26.0.2 in C:\NVPACK\android-sdk-windows\licenses
LogPlayLevel:   License for package Android SDK Build-Tools 26.0.2 accepted.
LogPlayLevel:   Preparing "Install Android SDK Build-Tools 26.0.2 (revision: 26.0.2)".
LogPlayLevel:   "Install Android SDK Build-Tools 26.0.2 (revision: 26.0.2)" ready.
LogPlayLevel:   Installing Android SDK Build-Tools 26.0.2 in C:\NVPACK\android-sdk-windows\build-tools\26.0.2
LogPlayLevel:   "Install Android SDK Build-Tools 26.0.2 (revision: 26.0.2)" complete.
LogPlayLevel:   "Install Android SDK Build-Tools 26.0.2 (revision: 26.0.2)" finished.
LogPlayLevel:   :app:preBuild UP-TO-DATE
LogPlayLevel:   :downloader_library:preBuild UP-TO-DATE
LogPlayLevel:   :downloader_library:preDebugBuild UP-TO-DATE
LogPlayLevel:   :downloader_library:checkDebugManifest UP-TO-DATE
LogPlayLevel:   :downloader_library:processDebugManifest UP-TO-DATE
LogPlayLevel:   :permission_library:preBuild UP-TO-DATE
LogPlayLevel:   :permission_library:preDebugBuild UP-TO-DATE
LogPlayLevel:   :permission_library:checkDebugManifest UP-TO-DATE
LogPlayLevel:   :permission_library:processDebugManifest UP-TO-DATE
LogPlayLevel:   :app:preDebugBuild UP-TO-DATE
LogPlayLevel:   :downloader_library:compileDebugAidl UP-TO-DATE
LogPlayLevel:   :permission_library:compileDebugAidl UP-TO-DATE
LogPlayLevel:   :app:compileDebugAidl UP-TO-DATE
LogPlayLevel:   :downloader_library:packageDebugRenderscript NO-SOURCE
LogPlayLevel:   :permission_library:packageDebugRenderscript NO-SOURCE
LogPlayLevel:   :app:compileDebugRenderscript UP-TO-DATE
LogPlayLevel:   :app:checkDebugManifest UP-TO-DATE
LogPlayLevel:   :app:generateDebugBuildConfig UP-TO-DATE
LogPlayLevel:   :app:prepareLintJar UP-TO-DATE
LogPlayLevel:   :app:generateDebugResValues UP-TO-DATE
LogPlayLevel:   :app:generateDebugResources UP-TO-DATE
LogPlayLevel:   :downloader_library:compileDebugRenderscript UP-TO-DATE
LogPlayLevel:   :downloader_library:generateDebugResValues UP-TO-DATE
LogPlayLevel:   :downloader_library:generateDebugResources UP-TO-DATE
LogPlayLevel:   :downloader_library:packageDebugResources UP-TO-DATE
LogPlayLevel:   :permission_library:compileDebugRenderscript UP-TO-DATE
LogPlayLevel:   :permission_library:generateDebugResValues UP-TO-DATE
LogPlayLevel:   :permission_library:generateDebugResources UP-TO-DATE
LogPlayLevel:   :permission_library:packageDebugResources UP-TO-DATE
LogPlayLevel:   :app:mergeDebugResources UP-TO-DATE
LogPlayLevel:   :app:createDebugCompatibleScreenManifests UP-TO-DATE
LogPlayLevel:   :app:processDebugManifest UP-TO-DATE
LogPlayLevel:   :app:splitsDiscoveryTaskDebug UP-TO-DATE
LogPlayLevel:   :downloader_library:platformAttrExtractor UP-TO-DATE
LogPlayLevel:   :downloader_library:processDebugResources UP-TO-DATE
LogPlayLevel:   :permission_library:platformAttrExtractor UP-TO-DATE
LogPlayLevel:   :permission_library:processDebugResources UP-TO-DATE
LogPlayLevel:   :app:processDebugResources UP-TO-DATE
LogPlayLevel:   :app:generateDebugSources UP-TO-DATE
LogPlayLevel:   :downloader_library:generateDebugBuildConfig UP-TO-DATE
LogPlayLevel:   :downloader_library:prepareLintJar UP-TO-DATE
LogPlayLevel:   :downloader_library:generateDebugSources UP-TO-DATE
LogPlayLevel:   :downloader_library:javaPreCompileDebug UP-TO-DATE
LogPlayLevel:   :downloader_library:compileDebugJavaWithJavac UP-TO-DATE
LogPlayLevel:   :downloader_library:processDebugJavaRes NO-SOURCE
LogPlayLevel:   :downloader_library:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug UP-TO-DATE
LogPlayLevel:   :permission_library:generateDebugBuildConfig UP-TO-DATE
LogPlayLevel:   :permission_library:prepareLintJar UP-TO-DATE
LogPlayLevel:   :permission_library:generateDebugSources UP-TO-DATE
LogPlayLevel:   :permission_library:javaPreCompileDebug UP-TO-DATE
LogPlayLevel:   :permission_library:compileDebugJavaWithJavac UP-TO-DATE
LogPlayLevel:   :permission_library:processDebugJavaRes NO-SOURCE
LogPlayLevel:   :permission_library:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug UP-TO-DATE
LogPlayLevel:   Z:\app\src\main\java\com\epicgames\ue4\GameApplication.java:7: error: cannot find symbol
LogPlayLevel: Error:   Z:\app\src\main\java\com\epicgames\ue4\GameApplication.java:7: error: cannot find symbol
LogPlayLevel:   import android.arch.lifecycle.ProcessLifecycleOwner;
LogPlayLevel:                                ^
LogPlayLevel:     symbol:   class ProcessLifecycleOwner
LogPlayLevel:     location: package android.arch.lifecycle
LogPlayLevel: Error:   Z:\app\src\main\java\com\epicgames\ue4\GameApplication.java:22: error: cannot find symbol
LogPlayLevel:         ProcessLifecycleOwner.get().getLifecycle().addObserver(this);
LogPlayLevel:         ^
LogPlayLevel:     symbol:   variable ProcessLifecycleOwner
LogPlayLevel:     location: class GameApplication
LogPlayLevel:   Note: Some input files use or override a deprecated API.
LogPlayLevel:   Note: Recompile with -Xlint:deprecation for details.
LogPlayLevel:   2 errors
LogPlayLevel:   :app:compileDebugJavaWithJavac FAILED
LogPlayLevel:   FAILURE: Build failed with an exception.
LogPlayLevel:   * What went wrong:
LogPlayLevel:   Execution failed for task ':app:compileDebugJavaWithJavac'.
LogPlayLevel:   > Compilation failed; see the compiler error output for details.
LogPlayLevel:   * Try:
LogPlayLevel:   Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
LogPlayLevel:   * Get more help at https://help.gradle.org
LogPlayLevel:   BUILD FAILED in 1m 0s
LogPlayLevel:   40 actionable tasks: 1 executed, 39 up-to-date
LogPlayLevel: Error:   ERROR: cmd.exe failed with args /c "E:\UEProjects\ARProjects\HelloARUnreal\Intermediate\Android\APK\gradle\rungradle.bat" :app:assembleDebug
LogPlayLevel: Took 86.3203132s to run UnrealBuildTool.exe, ExitCode=5
LogPlayLevel: UnrealBuildTool failed. See log for more details. (C:\UE4SourceCode\Engine\Programs\AutomationTool\Saved\Logs\UBT-HelloARUnreal-Android-Development.txt)
LogPlayLevel: AutomationTool exiting with ExitCode=5 (5)
LogPlayLevel: Completed Launch On Stage: Build Task, Time: 93.218825
LogPlayLevel: BUILD FAILED