Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uses gradle v 6.8, causes issues on first compile #78

Open
Meerkov opened this issue Mar 5, 2022 · 1 comment
Open

Uses gradle v 6.8, causes issues on first compile #78

Meerkov opened this issue Mar 5, 2022 · 1 comment

Comments

@Meerkov
Copy link

Meerkov commented Mar 5, 2022

The error message tells you how to fix it (adding a file called gradle-wrapper.properties) but it would be nice if this project could compile out of the box. I couldn't go through the tutorial because there were numerous discrepancies.

@paynerb
Copy link

paynerb commented Mar 10, 2022

I was able to complete the codelab with the following adjustments.

1. Create a gradle-wrapper.properties file

First create a /gradle/wrapper directory in the root of the project. Then add a gradle-wrapper.properties file with the following contents.

distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-all.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME

2. Use ExoPlayer version 2.13.3

The guide says to use 2.12.0. Don’t do that. Use version 2.13.3.

implementation 'com.google.android.exoplayer:exoplayer-core:2.13.3'
implementation 'com.google.android.exoplayer:exoplayer-dash:2.13.3'
implementation 'com.google.android.exoplayer:exoplayer-ui:2.13.3'

3. Fix the multidex issue

Fix the multidex issue by following https://stackoverflow.com/a/49645970/11809808.

Hopefully that helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants