Repository navigation
Description
[Bug] Gradle build fails because "logger-runtime.aar" cannot be loaded
Description
I'm experiencing a build configuration failure in Android Code Studio when trying to build an Android project.
The build process fails while Gradle is fetching the "VariantDependencies" model for the ":bridge" module. The error specifically points to a missing or incorrectly resolved local AAR dependency named "logger-runtime.aar".
Error Log
Starting build...
Warning: Unable to set daemon's environment variables to match the client because:
There is no native integration with this operating environment.
If the daemon was started with a significantly different environment from the client, and your build
relies on environment variables, you may experience unexpected behavior.
Fetch 'IdeaProject' model completed in 40645ms
Fetch 'BasicAndroidProject' model completed in 2146ms
Fetch 'AndroidProject' model completed in 353ms
Fetch 'AndroidDsl' model completed in 56ms
2 build variants found for project ':bridge': [debug, release]
Selected build variant 'debug' for project ':bridge'
Forcing dependency resolution for Android module: :bridge
Forced resolution of 0 dependencies for module: :bridge
FAILURE: Build failed with an exception.
- What went wrong:
Failed to fetch model for type 'com.android.builder.model.v2.models.VariantDependencies'. Unexpected error: Null extracted folder for artifact: ResolvedArtifact(componentIdentifier=logger-runtime.aar, variant=local file, variantName=null, artifactFile=/data/user/0/com.tom.rv2ide/files/home/plugins/logger/logger-runtime.aar, isTestFixturesArtifact=false, extractedFolder=null, publishedLintJar=null, dependencyType=ANDROID, isWrappedModule=false)
Failed to fetch model for type 'com.android.builder.model.v2.models.VariantDependencies'. Unexpected error: Null extracted folder for artifact: ResolvedArtifact(componentIdentifier=logger-runtime.aar, variant=local file, variantName=null, artifactFile=/data/user/0/com.tom.rv2ide/files/home/plugins/logger/logger-runtime.aar, isTestFixturesArtifact=false, extractedFolder=null, publishedLintJar=null, dependencyType=ANDROID, isWrappedModule=false)
- 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 from Build Scan.
Get more help at https://help.gradle.org.
CONFIGURE FAILED in 1m 7s
Additional Investigation
After encountering this error, I checked the following directory:
~/plugins/logger/
The directory is completely empty.
However, Gradle is attempting to resolve the following artifact:
/data/user/0/com.tom.rv2ide/files/home/plugins/logger/logger-runtime.aar
This makes me suspect that Android Code Studio is attempting to load a local logging-related dependency that is either missing, was not extracted correctly, or was not properly initialized.
I haven't been able to determine why the AAR is missing.
Possible Trigger
I noticed this issue after enabling the following options in Android Code Studio's settings:
- LogSender
- IDE Logs
- Confirm before opening last opened project
I'm not entirely sure which option is responsible, or whether these settings are related to the problem at all.
The third option is particularly suspicious only because I enabled it around the same time, although I don't see an obvious connection between it and the missing logging dependency.
Steps to Reproduce
Unfortunately, I haven't found a reliable way to reproduce this issue yet.
What I can currently report is:
- Open Android Code Studio.
- Enable the "LogSender" setting.
- Enable the "IDE Logs" setting.
- Enable "Confirm before opening last opened project".
- Open an Android project.
- Attempt to build the project.
The build configuration fails with the error described above.
Note: These are the settings changes that preceded the issue, not a confirmed reproduction procedure. I cannot guarantee that following these steps will reproduce the problem.
Expected Behavior
Android Code Studio should initialize its logging-related components and resolve the required dependencies correctly.
Enabling logging-related settings should not cause Gradle project synchronization or build configuration to fail.
Actual Behavior
Gradle fails to fetch the "VariantDependencies" model because it cannot properly process the local "logger-runtime.aar" artifact.
The expected AAR file also appears to be missing from the "plugins/logger/" directory.
Additional Information
- The failure occurs during Gradle project configuration/model fetching, before the actual compilation stage.
- The error explicitly identifies "logger-runtime.aar" as a local-file dependency.
- The "plugins/logger/" directory is empty when inspected.
- The exact cause and reliable reproduction steps are currently unknown.
Could someone investigate whether the logging plugin initialization, particularly "LogSender" or "IDE Logs", can result in "logger-runtime.aar" not being extracted, installed, or made available?
Thanks!
this issue was fully writed by ChatGPT since i've never used github and is very bad at english
Activity
NearOOM commentedon Dec 2, 2026
Okay, i might have found the cause for this error. when i turned on the Logsender or LogWire and open a project the init will fail but after i turned it off the Logsender/wire the project init works and successfully initialized
hislucas commentedon Dec 3, 2026
for me there was a problem with logwire, then i've activated storage permission in my phone's configs, so it worked. but the problem still persisted. i didnt go to laptop for checking logs yet, but activated usb debugging and the problem turned on from:
to:
im just starting in android studio, so i dont have a real knowledge about these problems.
i hope it helps, xoxo