Hi,
I am not yet so familiar with gradle. And this is my first question.
i use androidstudio 4.1.0
the project use gradle build 4.4 and plugin 3.1.2
when i set those depedencies i can syncronize
dependencies {
// *********** idispensable pour la VR *********************
implementation fileTree(include: ['*.aar'], dir: 'C:/gvr-android-sdk-test/libraries1.190.0')
implementation 'com.google.protobuf.nano:protobuf-javanano:3.1.0'
// *************************************************************
implementation 'com.google.android.exoplayer:exoplayer:2.15.1'
}
but at run time i get this error
:samples:sdk-videoplayer:processDebugResourcesAGPBI: {"kind":"error","text":"error: unknown element \u003cqueries\u003e found.","sources":[{"file":"C:\\gvr-android-sdk-test\\samples\\sdk-videoplayer\\build\\intermediates\\manifests\\full\\debug\\AndroidManifest.xml","position":{"startLine":45}}],"original":"","tool":"AAPT"}
FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':samples:sdk-videoplayer:processDebugResources'.
> Failed to process resources, see aapt output above for details.
and the terminal output for gradle command
C:\gvr-android-sdk-test>gradlew samples:sdk-videoplayer:AndroidDependencies
> Task :samples:sdk-videoplayer:androidDependencies
debug
debugCompileClasspath - Dependencies for compilation
+--- C:\Users\user\.gradle\caches\transforms-1\files-1.1\sdk-audio-1.190.0.aar\a41487f01e520fef9921d68fffa8ec43\jars\classes.jar
+--- C:\Users\user\.gradle\caches\transforms-1\files-1.1\sdk-base-1.190.0.aar\4b1aeb9572cdba07dc51f9d1c391a05f
+--- com.google.protobuf.nano:protobuf-javanano:3.1.0@jar
+--- com.google.android.exoplayer:exoplayer:2.15.1@aar
+--- com.google.android.exoplayer:exoplayer-dash:2.15.1@aar
+--- com.google.android.exoplayer:exoplayer-hls:2.15.1@aar
+--- com.google.android.exoplayer:exoplayer-rtsp:2.15.1@aar
+--- com.google.android.exoplayer:exoplayer-smoothstreaming:2.15.1@aar
+--- com.google.android.exoplayer:exoplayer-transformer:2.15.1@aar
+--- com.google.android.exoplayer:exoplayer-ui:2.15.1@aar
+--- com.google.android.exoplayer:exoplayer-core:2.15.1@aar
+--- com.google.android.exoplayer:exoplayer-extractor:2.15.1@aar
+--- com.google.android.exoplayer:exoplayer-common:2.15.1@aar
+--- androidx.recyclerview:recyclerview:1.2.1@aar
+--- androidx.customview:customview:1.0.0@aar
+--- androidx.media:media:1.3.1@aar
+--- androidx.core:core:1.3.2@aar
+--- androidx.lifecycle:lifecycle-runtime:2.0.0@aar
+--- androidx.versionedparcelable:versionedparcelable:1.1.0@aar
+--- androidx.lifecycle:lifecycle-common:2.0.0@jar
+--- androidx.arch.core:core-common:2.0.0@jar
+--- androidx.collection:collection:1.1.0@jar
+--- androidx.annotation:annotation:1.2.0@jar
+--- com.google.guava:guava:27.1-android@jar
+--- com.google.guava:failureaccess:1.0.1@jar
\--- com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava@jar
now if a change the depedencie to this (i added one depedencie extension-gvr)
dependencies {
// *********** idispensable pour la VR *********************
implementation fileTree(include: ['*.aar'], dir: 'C:/gvr-android-sdk-test/libraries1.190.0')
implementation 'com.google.protobuf.nano:protobuf-javanano:3.1.0'
// *************************************************************
implementation 'com.google.android.exoplayer:exoplayer:2.15.1'
implementation 'com.google.android.exoplayer:extension-gvr:2.15.1'
}
i got another error in the build panel and terminal panel
Could not resolve all files for configuration ':samples:sdk-videoplayer:debugCompileClasspath'.
> Could not find com.google.vr:sdk-base:1.190.0.
Searched in the following locations:
file:/C:/AndroidSDK/extras/m2repository/com/google/vr/sdk-base/1.190.0/sdk-base-1.190.0.pom
file:/C:/AndroidSDK/extras/m2repository/com/google/vr/sdk-base/1.190.0/sdk-base-1.190.0.jar
file:/C:/AndroidSDK/extras/google/m2repository/com/google/vr/sdk-base/1.190.0/sdk-base-1.190.0.pom
file:/C:/AndroidSDK/extras/google/m2repository/com/google/vr/sdk-base/1.190.0/sdk-base-1.190.0.jar
file:/C:/AndroidSDK/extras/android/m2repository/com/google/vr/sdk-base/1.190.0/sdk-base-1.190.0.pom
file:/C:/AndroidSDK/extras/android/m2repository/com/google/vr/sdk-base/1.190.0/sdk-base-1.190.0.jar
https://dl.google.com/dl/android/maven2/com/google/vr/sdk-base/1.190.0/sdk-base-1.190.0.pom
https://dl.google.com/dl/android/maven2/com/google/vr/sdk-base/1.190.0/sdk-base-1.190.0.jar
https://jcenter.bintray.com/com/google/vr/sdk-base/1.190.0/sdk-base-1.190.0.pom
https://jcenter.bintray.com/com/google/vr/sdk-base/1.190.0/sdk-base-1.190.0.jar
file:/C:/Users/user/.m2/repository/com/google/vr/sdk-base/1.190.0/sdk-base-1.190.0.pom
file:/C:/Users/user/.m2/repository/com/google/vr/sdk-base/1.190.0/sdk-base-1.190.0.jar
Required by:
project :samples:sdk-videoplayer > com.google.android.exoplayer:extension-gvr:2.15.1
All the depedencie are located on my local machine and i am connected to the network.
But i do not anderstant that in the first example i can see the âcom/google/vr/sdk-base/1.190.0â found in âC:\Users\user.gradle\caches\transforms-1\files-1.1\sdk-base-1.190.0â but when i add the âcom.google.android.exoplayer:extension-gvr:2.15.1â in the second example the âsdk-base-1.190.0â cannot be found.
I do not anderstand what is appending ?
I can add the pom file i found in C:\Users\xxxx.gradle\caches\modules-2\files-2.1\com.google.android.exoplayer\extension-gvr\2.15.1\7ff1cc7b288e41fe4a479a76bdf4066866fbf4bd
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<!-- This module was also published with a richer model, Gradle metadata, -->
<!-- which should be used instead. Do not delete the following line which -->
<!-- is to indicate to Gradle or any Gradle module metadata file consumer -->
<!-- that they should prefer consuming it instead. -->
<!-- do_not_remove: published-with-gradle-metadata -->
<modelVersion>4.0.0</modelVersion>
<groupId>com.google.android.exoplayer</groupId>
<artifactId>extension-gvr</artifactId>
<version>2.15.1</version>
<packaging>aar</packaging>
<name>extension-gvr</name>
<description>Google VR extension for ExoPlayer.</description>
<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<developers>
<developer>
<name>The Android Open Source Project</name>
</developer>
</developers>
<scm>
<connection>scm:git:https://github.com/google/ExoPlayer.git</connection>
<url>https://github.com/google/ExoPlayer</url>
</scm>
<dependencies>
<dependency>
<groupId>com.google.vr</groupId>
<artifactId>sdk-base</artifactId>
<version>1.190.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.google.android.exoplayer</groupId>
<artifactId>exoplayer-core</artifactId>
<version>2.15.1</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>androidx.annotation</groupId>
<artifactId>annotation</artifactId>
<version>1.2.0</version>
<scope>runtime</scope>
</dependency>
</dependencies>
</project>
i found that the depedencie use <scope>compile</scope>
and that gradle build 4.4 use implementation rather than compile. It may be this ? may be <scope>
?
i am not good enough on production process new génération :))