Error on android build

I am making a small test android project, for google cardboard.

Error:

  • What went wrong:
    Execution failed for task ‘:unityLibrary:extractReleaseAnnotations’.

Error while evaluating property ‘hasAndroidAnnotations’ of task ‘:unityLibrary:extractReleaseAnnotations’
Could not resolve all artifacts for configuration ‘:unityLibrary:releaseCompileClasspath’.
Failed to transform appcompat-.aar (:appcompat:) to match attributes {artifactType=android-classes-jar, org.gradle.status=integration, org.gradle.usage=java-api}.
Execution failed for AarToClassTransform: C:\Users\MyUserName\googlevrtest\Library\Bee\Android\Prj\Mono2x\Gradle\unityLibrary\libs\appcompat.aar.
entry

  • Try:
    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.

  • Get more help at https://help.gradle.org

BUILD FAILED in 3s

UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)