Skip to content

Gradle config does not exist after Android Studio update. Project fails to build. #8927

@apptrash

Description

@apptrash

After updating android studio, when building, the following message is shown:

Build file '/home/alex/Разработка/src/android-git/exoplayer/extensions/av1/build.gradle' line: 14

A problem occurred evaluating project ':exoplayer-extension-av1'.
> Could not read script '/home/alex/.gradle/daemon/exoplayer/common_library_config.gradle' as it does not exist.

I'm using ExoPlayer r2.12.1

Here is a project structure (among others):

cgc.launcher/settings.gradle
exoplayer/

Here is cgc.launcher/settings.gradle content:

include ':app'

gradle.ext.exoplayerRoot = '../exoplayer'
gradle.ext.exoplayerModulePrefix = 'exoplayer-'
apply from: new File(gradle.ext.exoplayerRoot, 'core_settings.gradle')

Also, from cgc.launcher/app/build.gradle:

...
implementation project(':exoplayer-library')
implementation project(':exoplayer-extension-ffmpeg')
implementation project(':exoplayer-extension-rtmp')
implementation project(':exoplayer-extension-okhttp')
...

Here is information about Android Studio:

Android Studio 4.2
Build #AI-202.7660.26.42.7322048, built on April 29, 2021
Runtime version: 11.0.8+0-b944-P17168821 amd64
VM: OpenJDK 64-Bit Server VM by N/A
Linux 5.11.0-16-generic
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 4
Registry: external.system.auto.import.disabled=true
Non-Bundled Plugins: org.jetbrains.kotlin
Current Desktop: ubuntu:GNOME

I will provide more information if required. What can I do to fix the problem?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions