Jump to content

Trouble building apk on Unreal 4.26


KnowledgeCenter

Recommended Posts

Hi there !

We have great troubles building our apk on Unreal 4.26 for Vive Focus 3, here is the unsolvable problem :

Execution failed for task ':app:compileDebugAidl'.
UATHelper: Packaging (Android (ASTC)):   > Could not resolve all files for configuration ':app:debugCompileClasspath'.
UATHelper: Packaging (Android (ASTC)):      > Could not find any matches for com.htc.vr:wvr_client:+ as no versions of com.htc.vr:wvr_client are available.
UATHelper: Packaging (Android (ASTC)):        Required by:
UATHelper: Packaging (Android (ASTC)):            project :app
UATHelper: Packaging (Android (ASTC)):      > Could not find any matches for com.htc.vr:wvr_permission_client:+ as no versions of com.htc.vr:wvr_permission_client are available.
UATHelper: Packaging (Android (ASTC)):        Required by:
UATHelper: Packaging (Android (ASTC)):            project :app
UATHelper: Packaging (Android (ASTC)):      > Could not find any matches for com.htc.vr:wvr_resource:+ as no versions of com.htc.vr:wvr_resource are available.
UATHelper: Packaging (Android (ASTC)):        Required by:
UATHelper: Packaging (Android (ASTC)):            project :app

If someone can help us troubleshooting this.

We don't know what to do, documentation seems incomplete & outdated and the plugin not stable (we have a new bug everyday).

  • Like 1
Link to comment
Share on other sites

If we put the plugin in Engine folder we have the following error : ERROR: Missing precompiled manifest for 'WaveVR'. This module was most likely not flagged for being included in a precompiled build - set 'PrecompileForTargets = PrecompileTargetsType.Any;' in WaveVR.build.cs to override.

Link to comment
Share on other sites

  • 1 month later...

Hi I am running into the same issue above. Has anyone been able to resolve this?

 

UATHelper: Packaging (Android (ASTC)):   Creating rungradle.bat to work around commandline length limit (using unused drive letter Z:)
UATHelper: Packaging (Android (ASTC)):   Making .apk with Gradle...
UATHelper: Packaging (Android (ASTC)):   To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/6.1.1/userguide/gradle_daemon.html.
UATHelper: Packaging (Android (ASTC)):   Daemon will be stopped at the end of the build stopping after processing
UATHelper: Packaging (Android (ASTC)):   > Task :app:preBuild UP-TO-DATE
UATHelper: Packaging (Android (ASTC)):   > Task :app:preDebugBuild UP-TO-DATE
UATHelper: Packaging (Android (ASTC)):   > Task :downloader_library:preBuild UP-TO-DATE
UATHelper: Packaging (Android (ASTC)):   > Task :downloader_library:preDebugBuild UP-TO-DATE
UATHelper: Packaging (Android (ASTC)):   > Task :downloader_library:compileDebugAidl NO-SOURCE
UATHelper: Packaging (Android (ASTC)):   > Task :permission_library:preBuild UP-TO-DATE
UATHelper: Packaging (Android (ASTC)):   > Task :permission_library:preDebugBuild UP-TO-DATE
UATHelper: Packaging (Android (ASTC)):   > Task :permission_library:compileDebugAidl NO-SOURCE
UATHelper: Packaging (Android (ASTC)):   > Task :app:compileDebugAidl FAILED
UATHelper: Packaging (Android (ASTC)):   
UATHelper: Packaging (Android (ASTC)):   FAILURE: Build failed with an exception.
UATHelper: Packaging (Android (ASTC)):   
UATHelper: Packaging (Android (ASTC)):   * What went wrong:
UATHelper: Packaging (Android (ASTC)):   Execution failed for task ':app:compileDebugAidl'.
UATHelper: Packaging (Android (ASTC)):   > Could not resolve all files for configuration ':app:debugCompileClasspath'.
UATHelper: Packaging (Android (ASTC)):      > Could not find any matches for com.htc.vr:wvr_client:+ as no versions of com.htc.vr:wvr_client are available.
UATHelper: Packaging (Android (ASTC)):        Required by:
UATHelper: Packaging (Android (ASTC)):            project :app
UATHelper: Packaging (Android (ASTC)):      > Could not find any matches for com.htc.vr:wvr_permission_client:+ as no versions of com.htc.vr:wvr_permission_client are available.
UATHelper: Packaging (Android (ASTC)):        Required by:
UATHelper: Packaging (Android (ASTC)):            project :app
UATHelper: Packaging (Android (ASTC)):      > Could not find any matches for com.htc.vr:wvr_resource:+ as no versions of com.htc.vr:wvr_resource are available.
UATHelper: Packaging (Android (ASTC)):        Required by:
UATHelper: Packaging (Android (ASTC)):            project :app

Link to comment
Share on other sites

  • 3 months later...

If you put the plugin into your engine folder instead of yourProject/plugins it won't work. Look at the bottom of this file WaveVR/Source/WaveVR/WaveVR_UPL.xml:

    <buildGradleAdditions>
        <insert>
            repositories {
                maven {
                    url "${OUTPUT_PATH}/../../Plugins/WaveVR/Source/WVR/lib/android/repository"
                }
            }
            dependencies {
                implementation 'com.htc.vr:wvr_client:+'
                implementation 'com.htc.vr:wvr_permission_client:+'
                implementation 'com.htc.vr:wvr_resource:+'
            }
        </insert>
    </buildGradleAdditions>

It's hardcoded to only work if it's in your project's plugin path. OUTPUT_PATH is set when you build to yourProject/Binaries/Android. If you want to place it in yourUe4Install/engine/plugins you can change it to the following:

    <gradleProperties>
        <insert>ENGINE_DIR=</insert><insertValue value="$S(EngineDir)"/>
    </gradleProperties>
    <buildGradleAdditions>
        <insert>
            repositories {
            maven {
            url "${ENGINE_DIR}/Plugins/WaveVR/Source/WVR/lib/android/repository"
            }
            }
            dependencies {
            implementation 'com.htc.vr:wvr_client:+'
            implementation 'com.htc.vr:wvr_permission_client:+'
            implementation 'com.htc.vr:wvr_resource:+'
            }
        </insert>
    </buildGradleAdditions>


 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...