stderr[
C:\New folder\PlatformVR2\Temp\gradleOut\build\intermediates\manifests\full\release\AndroidManifest.xml:17:24-40: AAPT: No resource found that matches the given name (at ‘label’ with value ’ @anon_76954444 /app_name’).
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ‘:processReleaseResources’.
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process ‘command ‘C:\New folder\sdk-tools-windows-3859397\build-tools\26.0.0\aapt.exe’’ finished with non-zero exit value 1
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
]
stdout[
Incremental java compilation is an incubating feature.
:preBuild UP-TO-DATE
:preReleaseBuild UP-TO-DATE
:checkReleaseManifest
:preDebugBuild UP-TO-DATE
:prepareOVRPluginLibrary UP-TO-DATE
:prepareReleaseDependencies
:compileReleaseAidl UP-TO-DATE
:compileReleaseRenderscript UP-TO-DATE
:generateReleaseBuildConfig UP-TO-DATE
:mergeReleaseShaders UP-TO-DATE
:compileReleaseShaders UP-TO-DATE
:generateReleaseAssets UP-TO-DATE
:mergeReleaseAssets
:generateReleaseResValues UP-TO-DATE
:generateReleaseResources UP-TO-DATE
:mergeReleaseResources UP-TO-DATE
:processReleaseManifest UP-TO-DATE
:processReleaseResources FAILED
I read that you need to set app_name in strings.xml under /res but I have no clue where /res/value is in the project(I added it to all /res/value files I could find), which here is that code.
<?xml version="1.0" encoding="utf-8"?>
PlatformVR
Sorry for any wrong formatting, I have never posted here in the forums.
I was having similar issues (on macOS rather than Windows however) today and what solved it for me was changing the JDK version in External Tools. It had automatically selected 1.7 despite me having 1.8 installed, so I set it to the most recent version and everything built fine.
I downloaded Google VR SDK and tried to build the demo scene named “hello vr”. I am using JDK 1.8 and Unity 2017.3.0f3, I am still getting this error. I tried with JDK 1.9 as well but there is no improvement. Please help.
I was able to fix the “Gradle build failed” error by installing older Java version - (Java SE Development Kit 8u161) and updating the pathway in Unity Preferneces>External tools> JDK to the older Java.
What went wrong:
A problem occurred configuring root project ‘gradleOut’.
The SDK Build Tools revision (23.0.3) is too low for project ‘gradleOut’. Minimum required is 25.0.0
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED in 5s
]
stdout[
NDK is missing a “platforms” directory.
If you are using NDK, verify the ndk.dir is set to a valid NDK directory. It is currently set to C:\Android\sdk\ndk-bundle.
If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.
@Alef_Ribeiro yeah, that works. but then you won’t be able to export project into android studio…
There should be a solution for this…
(Edit: it didn’t work that way for me either… “failed to assign APK”)