Download

Android packaging error on com.google.vr.sdk.samples.permission and/or java

Hi guys,

I’m creating a thread here hoping I could get more help than on the answer hub.

I’m having a very annoying issue when I try to package an android build.
I get the following log:

[SPOILER]====06/02/2020 22:24:56====PERFORMING FINAL APK PACKAGE OPERATION================================================
UATHelper: Packaging (Android (ETC1)): Creating rungradle.bat to work around commandline length limit (using unused drive letter Z:)
UATHelper: Packaging (Android (ETC1)): Making .apk with Gradle…
UATHelper: Packaging (Android (ETC1)): To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: The Gradle Daemon - Gradle User Manual.
UATHelper: Packaging (Android (ETC1)): Daemon will be stopped at the end of the build stopping after processing
UATHelper: Packaging (Android (ETC1)): :app:checkDebugClasspath
UATHelper: Packaging (Android (ETC1)): :app:preBuild UP-TO-DATE
UATHelper: Packaging (Android (ETC1)): :downloader_library:preBuild UP-TO-DATE
UATHelper: Packaging (Android (ETC1)): :downloader_library:preDebugBuild UP-TO-DATE
UATHelper: Packaging (Android (ETC1)): :downloader_library:checkDebugManifest
UATHelper: Packaging (Android (ETC1)): :downloader_library:processDebugManifest
UATHelper: Packaging (Android (ETC1)): :app:preDebugBuild
UATHelper: Packaging (Android (ETC1)): :downloader_library:compileDebugAidl NO-SOURCE
UATHelper: Packaging (Android (ETC1)): :app:compileDebugAidl
UATHelper: Packaging (Android (ETC1)): :downloader_library:packageDebugRenderscript NO-SOURCE
UATHelper: Packaging (Android (ETC1)): :app:compileDebugRenderscript
UATHelper: Packaging (Android (ETC1)): :app:checkDebugManifest
UATHelper: Packaging (Android (ETC1)): :app:generateDebugBuildConfig
UATHelper: Packaging (Android (ETC1)): :app:prepareLintJar
UATHelper: Packaging (Android (ETC1)): :app:mainApkListPersistenceDebug
UATHelper: Packaging (Android (ETC1)): :app:generateDebugResValues
UATHelper: Packaging (Android (ETC1)): :app:generateDebugResources
UATHelper: Packaging (Android (ETC1)): :downloader_library:compileDebugRenderscript
UATHelper: Packaging (Android (ETC1)): :downloader_library:generateDebugResValues
UATHelper: Packaging (Android (ETC1)): :downloader_library:generateDebugResources
UATHelper: Packaging (Android (ETC1)): :downloader_library:packageDebugResources
UATHelper: Packaging (Android (ETC1)): :app:mergeDebugResources
UATHelper: Packaging (Android (ETC1)): :app:createDebugCompatibleScreenManifests
UATHelper: Packaging (Android (ETC1)): :app:processDebugManifest
UATHelper: Packaging (Android (ETC1)): :app:splitsDiscoveryTaskDebug
UATHelper: Packaging (Android (ETC1)): :downloader_library:generateDebugRFile
UATHelper: Packaging (Android (ETC1)): :app:processDebugResources
UATHelper: Packaging (Android (ETC1)): :app:generateDebugSources
UATHelper: Packaging (Android (ETC1)): :downloader_library:generateDebugBuildConfig
UATHelper: Packaging (Android (ETC1)): :downloader_library:prepareLintJar
UATHelper: Packaging (Android (ETC1)): :downloader_library:generateDebugSources
UATHelper: Packaging (Android (ETC1)): :downloader_library:javaPreCompileDebug
UATHelper: Packaging (Android (ETC1)): :downloader_library:compileDebugJavaWithJavac
UATHelper: Packaging (Android (ETC1)): :downloader_library:processDebugJavaRes NO-SOURCE
UATHelper: Packaging (Android (ETC1)): :downloader_library:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug
UATHelper: Packaging (Android (ETC1)): :app:javaPreCompileDebug
UATHelper: Packaging (Android (ETC1)): Z:\app\src\main\java\com\epicgames\ue4\GameActivity.java:157: error: package com.google.vr.sdk.samples.permission does not exist
UATHelper: Packaging (Android (ETC1)): import com.google.vr.sdk.samples.permission.PermissionHelper;
UATHelper: Packaging (Android (ETC1)): ^
UATHelper: Packaging (Android (ETC1)): 1 error
UATHelper: Packaging (Android (ETC1)): :app:compileDebugJavaWithJavac FAILED
UATHelper: Packaging (Android (ETC1)): FAILURE: Build failed with an exception.
UATHelper: Packaging (Android (ETC1)): * What went wrong:
UATHelper: Packaging (Android (ETC1)): Execution failed for task ‘:app:compileDebugJavaWithJavac’.
UATHelper: Packaging (Android (ETC1)): > Compilation failed; see the compiler error output for details.
UATHelper: Packaging (Android (ETC1)): * Try:
UATHelper: Packaging (Android (ETC1)): Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
UATHelper: Packaging (Android (ETC1)): 27 actionable tasks: 27 executed
UATHelper: Packaging (Android (ETC1)): * Get more help at https://help.gradle.org
UATHelper: Packaging (Android (ETC1)): BUILD FAILED in 28s
UATHelper: Packaging (Android (ETC1)): ERROR: cmd.exe failed with args /c “C:\Users\franc\Documents\Unreal Projects\Sheepdog\Intermediate\Android\APK\gradle\rungradle.bat” :app:assembleDebug
UATHelper: Packaging (Android (ETC1)): (see C:\Users\franc\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.23\Log.txt for full exception trace)
UATHelper: Packaging (Android (ETC1)): AutomationTool exiting with ExitCode=1 (Error_Unknown)
UATHelper: Packaging (Android (ETC1)): B[/SPOILER]

So there are several things. It talks about a app:compileDebugJavaWithJavac FAILED and just before, Z:\app\src\main\java\com\epicgames\ue4\GameActivity.java:157: error: package com.google.vr.sdk.samples.permission does not exist

I don’t understand why I would try to access a Google VR thing as I’ve disabled the Google VR plugin and I made sure nothing was linked to it.
Environement variables are properly set. Android sdk seems properly installed.

I’m having this issue for quite a while now and I still didn’t found any solutions :confused:

Help is more than welcome. Thx

did you got the solution?

Nope, I’ve been looking for several months and nobody has an answer.

Hi Devs,
I’m building a AR Core android build with 4.24 and created a template AR project from the start menu of Unreal Editor.

To build the sample application here are the settings I have:

  1. SDK and NDK Path

  2. SDK and NDK Environment Variables

  3. Android Settings

  4. Build Log


UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)):
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): ====6/20/2020 1:20:50 AM====PERFORMING FINAL APK PACKAGE OPERATION================================================
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)):
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): Creating rungradle.bat to work around commandline length limit (using unused drive letter Z:)
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): Making .apk with Gradle...
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): 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.
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): Daemon will be stopped at the end of the build stopping after processing
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :app:preBuild UP-TO-DATE
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :downloader_library:preBuild UP-TO-DATE
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :downloader_library:preDebugBuild UP-TO-DATE
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :downloader_library:checkDebugManifest
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :downloader_library:processDebugManifest
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :permission_library:preBuild UP-TO-DATE
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :permission_library:preDebugBuild UP-TO-DATE
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :permission_library:checkDebugManifest
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :permission_library:processDebugManifest
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :app:preDebugBuild
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :downloader_library:compileDebugAidl
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :permission_library:compileDebugAidl
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :app:compileDebugAidl
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :downloader_library:packageDebugRenderscript NO-SOURCE
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :permission_library:packageDebugRenderscript NO-SOURCE
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :app:compileDebugRenderscript
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :app:checkDebugManifest
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :app:generateDebugBuildConfig
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :app:prepareLintJar
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :app:generateDebugResValues
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :app:generateDebugResources
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :downloader_library:compileDebugRenderscript
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :downloader_library:generateDebugResValues
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :downloader_library:generateDebugResources
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :downloader_library:packageDebugResources
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :permission_library:compileDebugRenderscript
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :permission_library:generateDebugResValues
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :permission_library:generateDebugResources
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :permission_library:packageDebugResources
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :app:mergeDebugResources
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :app:createDebugCompatibleScreenManifests
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :app:processDebugManifest
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :app:splitsDiscoveryTaskDebug
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :downloader_library:platformAttrExtractor
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :permission_library:platformAttrExtractor
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :downloader_library:generateDebugBuildConfig
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :downloader_library:prepareLintJar
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :downloader_library:javaPreCompileDebug
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :downloader_library:processDebugJavaRes NO-SOURCE
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :permission_library:generateDebugBuildConfig
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :permission_library:prepareLintJar
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :permission_library:javaPreCompileDebug
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :permission_library:processDebugJavaRes NO-SOURCE
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :app:compileDebugNdk NO-SOURCE
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :app:mergeDebugShaders
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :app:compileDebugShaders
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :app:generateDebugAssets
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :downloader_library:mergeDebugShaders
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :downloader_library:compileDebugShaders
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :downloader_library:generateDebugAssets
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :downloader_library:mergeDebugAssets
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :permission_library:mergeDebugShaders
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :permission_library:compileDebugShaders
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :permission_library:generateDebugAssets
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :permission_library:mergeDebugAssets
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :app:mergeDebugAssets
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :app:mergeDebugJniLibFolders
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :downloader_library:compileDebugNdk NO-SOURCE
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :downloader_library:mergeDebugJniLibFolders
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :downloader_library:transformNativeLibsWithMergeJniLibsForDebug
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :downloader_library:transformNativeLibsWithStripDebugSymbolForDebug
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :downloader_library:transformNativeLibsWithIntermediateJniLibsForDebug
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :permission_library:compileDebugNdk NO-SOURCE
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :permission_library:mergeDebugJniLibFolders
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :permission_library:transformNativeLibsWithMergeJniLibsForDebug
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :permission_library:transformNativeLibsWithStripDebugSymbolForDebug
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :permission_library:transformNativeLibsWithIntermediateJniLibsForDebug
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :app:processDebugJavaRes NO-SOURCE
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :app:validateSigningDebug
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :downloader_library:processDebugResources
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :downloader_library:generateDebugSources
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :downloader_library:compileDebugJavaWithJavac
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :downloader_library:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :permission_library:processDebugResources
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :app:processDebugResources
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :app:generateDebugSources
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :permission_library:generateDebugSources
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): Note: Z:\permission_library\src\main\java\com\google\vr\sdk\samples\permission\PermissionFragment.java uses or overrides a deprecated API.
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): Note: Recompile with -Xlint:deprecation for details.
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :permission_library:compileDebugJavaWithJavac
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :permission_library:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :app:javaPreCompileDebug
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): Z:\app\src\main\java\com\epicgames\ue4\GameApplication.java:7: error: cannot find symbol
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): import android.arch.lifecycle.ProcessLifecycleOwner;
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): ^
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): symbol: class ProcessLifecycleOwner
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): location: package android.arch.lifecycle
PackagingResults: Error: cannot find symbol
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): Z:\app\src\main\java\com\epicgames\ue4\GameApplication.java:22: error: cannot find symbol
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): ProcessLifecycleOwner.get().getLifecycle().addObserver(this);
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): ^
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): symbol: variable ProcessLifecycleOwner
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): location: class GameApplication
PackagingResults: Error: cannot find symbol
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): Note: Some input files use or override a deprecated API.
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): Note: Recompile with -Xlint:deprecation for details.
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): 2 errors
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): :app:compileDebugJavaWithJavac FAILED
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)):
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): FAILURE: Build failed with an exception.
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)):
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): * What went wrong:
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): Execution failed for task ':app:compileDebugJavaWithJavac'.
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): > Compilation failed; see the compiler error output for details.
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)):
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): * Try:
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)):
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): * Get more help at https://help.gradle.org
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)):
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): BUILD FAILED in 1m 2s
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): 59 actionable tasks: 59 executed
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): ERROR: cmd.exe failed with args /c "E:\UEProjects\ARProjects\HelloARUnreal\Intermediate\Android\APK\gradle\rungradle.bat" :app:assembleDebug
PackagingResults: Error: cmd.exe failed with args /c "E:\UEProjects\ARProjects\HelloARUnreal\Intermediate\Android\APK\gradle\rungradle.bat" :app:assembleDebug
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): Took 2597.5403353s to run UnrealBuildTool.exe, ExitCode=5
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): UnrealBuildTool failed. See log for more details. (C:\UE4SourceCode\Engine\Programs\AutomationTool\Saved\Logs\UBT-HelloARUnreal-Android-Test_2.txt)
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): AutomationTool exiting with ExitCode=5 (5)
UATHelper: Packaging (Android (Multi:ASTC,PVRTC,DXT,ATC,ETC2,ETC1a,ETC1)): BUILD FAILED
PackagingResults: Error: Unknown Error

The whole process crashes when the gradle starts and gives the error intending to somewhere


:app:compileDebugJavaWithJavac FAILED

This error is very persistent and annoying, I’m clue less what to do ?

This is what i found when i separately run


> Task :app:compileDebugJavaWithJavac
Putting task artifact state for task ':app:compileDebugJavaWithJavac' into context took 0.001 secs.
file or directory 'Z:\app\libs', not found
file or directory 'Z:\app\src\main\libs', not found
file or directory 'Z:\app\src\debug\java', not found
Executing task ':app:compileDebugJavaWithJavac' (up-to-date check took 0.095 secs) due to:
Task has failed previously.
All input files are considered out-of-date for incremental task ':app:compileDebugJavaWithJavac'.
Compiling with source level 1.7 and target level 1.7.
file or directory 'Z:\app\libs', not found
file or directory 'Z:\app\src\main\libs', not found
Creating new cache for classAnalysis, path Z:\.gradle\4.1\javaCompile\classAnalysis.bin, access org.gradle.cache.internal.DefaultCacheAccess@7dbe2fdc
Creating new cache for jarAnalysis, path Z:\.gradle\4.1\javaCompile\jarAnalysis.bin, access org.gradle.cache.internal.DefaultCacheAccess@7dbe2fdc
Creating new cache for taskJars, path Z:\.gradle\4.1\javaCompile	askJars.bin, access org.gradle.cache.internal.DefaultCacheAccess@7dbe2fdc
Creating new cache for taskHistory, path Z:\.gradle\4.1\javaCompile	askHistory.bin, access org.gradle.cache.internal.DefaultCacheAccess@7dbe2fdc
:app:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
file or directory 'Z:\app\src\debug\java', not found
Compiling with JDK Java compiler API.
Z:\app\src\main\java\com\epicgames\ue4\GameApplication.java:7: error: cannot find symbol
import android.arch.lifecycle.ProcessLifecycleOwner;

Seems like the Z directory is not there ! I’m sure I’m near to the solution now, but what is it ?

A wild guess… Did you disable any plugins? It happened to me when I randomly disable all the plugins I thought I don’t need. Maybe you should check the plugins to see if there’s anything related with vr but disabled.

I started hitting this error (error: package com.google.vr.sdk.samples.permission does not exist) when I disabled the plugin “Android Runtime Permission”.
After re-enabling it, I was able to package successfully again.

1 Like