Skip to content

A Bug? Failed to load logger-runtime.arr from assets #431

Backlog

Description

@NearOOM

[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:

  1. LogSender
  2. IDE Logs
  3. 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:

  1. Open Android Code Studio.
  2. Enable the "LogSender" setting.
  3. Enable the "IDE Logs" setting.
  4. Enable "Confirm before opening last opened project".
  5. Open an Android project.
  6. 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

  1. NearOOM commented on Dec 2, 2026

    @NearOOM
    Author

    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

  2. hislucas commented on Dec 3, 2026

    @hislucas

    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:

    03-12 14:02:30.513  INFO [main] GradleBuildService:  Showing notification to user...
    03-12 14:02:30.569  INFO [main] BaseEditorActivity:  Connected to Gradle build service
    03-12 14:02:30.572  INFO [main] BaseEditorActivity:  👋✨
    03-12 14:02:30.572  INFO [main] BaseEditorActivity:      _    ____ ____      
    03-12 14:02:30.572  INFO [main] BaseEditorActivity:     / \  / ___/ ___|   
    03-12 14:02:30.572  INFO [main] BaseEditorActivity:    / _ \| |   \___ \  
    03-12 14:02:30.573  INFO [main] BaseEditorActivity:   / ___ \ |___ ___) |   
    03-12 14:02:30.573  INFO [main] BaseEditorActivity:  /_/   \_\____|____/   
    03-12 14:02:30.573  INFO [main] BaseEditorActivity:                          
    03-12 14:02:30.573  INFO [main] BaseEditorActivity:  ACS Tooling API Revision 1.0            
    03-12 14:02:30.573  INFO [DefaultDispatcher-worker-19] ToolingServerRunner:  Starting tooling API server...
    03-12 14:02:30.578 DEBUG [DefaultDispatcher-worker-19] BaseEditorActivity:  Mapped process 8550 (IDE) to dataset index 0
    03-12 14:02:30.579 DEBUG [DefaultDispatcher-worker-19] BaseEditorActivity:  Mapped process 12169 (Gradle Tooling) to dataset index 1
    03-12 14:02:30.580  INFO [DefaultDispatcher-worker-19] BaseEditorActivity:  Memory usage chart initialized with 2 processes
    03-12 14:02:30.580 DEBUG [DefaultDispatcher-worker-19] BaseEditorActivity:  No variant selection information available. Default build variants will be selected.
    03-12 14:02:30.581 DEBUG [DefaultDispatcher-worker-19] BaseEditorActivity:  Is project initialized: false
    03-12 14:02:30.581 DEBUG [DefaultDispatcher-worker-19] BaseEditorActivity:  Sending init request to tooling server..
    03-12 14:02:30.676 DEBUG [main] BaseEditorActivity:  onBuildStatusChanged: isInitializing: true, isBuildInProgress: false
    03-12 14:02:31.639 DEBUG [main] BaseEditorActivity:  onBuildStatusChanged: isInitializing: true, isBuildInProgress: true
    03-12 14:02:31.685 ERROR [pool-20-thread-1] GradleBuildService:  Failed to extract logger-runtime.aar from assets
    03-12 14:02:37.271 ERROR [ForkJoinPool.commonPool-worker-6] BaseEditorActivity:  An error occurred initializing the project with Tooling API
    03-12 14:02:37.279 DEBUG [main] BaseEditorActivity:  onBuildStatusChanged: isInitializing: true, isBuildInProgress: false
    03-12 14:02:37.295 DEBUG [main] BaseEditorActivity:  onBuildStatusChanged: isInitializing: false, isBuildInProgress: false
    03-12 14:02:58.483 DEBUG [main] BaseEditorActivity:  [onPause] No opened files. Opened files cache reset to null.
    03-12 14:03:17.958 DEBUG [ForkJoinPool.commonPool-worker-6] BootClasspathProvider:  Indexing boot classpath: /data/user/0/com.tom.rv2ide/files/home/.androidide/android.jar
    03-12 14:03:17.961  INFO [main] BaseEditorActivity:  Gradle process monitoring disabled
    

    to:

    03-12 14:06:51.699  INFO [main] GradleBuildService:  Showing notification to user...
    03-12 14:06:51.851  INFO [main] BaseEditorActivity:  Connected to Gradle build service
    03-12 14:06:51.853  INFO [main] BaseEditorActivity:  👋✨
    03-12 14:06:51.853  INFO [main] BaseEditorActivity:      _    ____ ____      
    03-12 14:06:51.853  INFO [main] BaseEditorActivity:     / \  / ___/ ___|   
    03-12 14:06:51.853  INFO [main] BaseEditorActivity:    / _ \| |   \___ \  
    03-12 14:06:51.854  INFO [main] BaseEditorActivity:   / ___ \ |___ ___) |   
    03-12 14:06:51.854  INFO [main] BaseEditorActivity:  /_/   \_\____|____/   
    03-12 14:06:51.854  INFO [main] BaseEditorActivity:                          
    03-12 14:06:51.854  INFO [main] BaseEditorActivity:  ACS Tooling API Revision 1.0            
    03-12 14:06:51.855  INFO [DefaultDispatcher-worker-5] ToolingServerRunner:  Starting tooling API server...
    03-12 14:06:51.866 DEBUG [DefaultDispatcher-worker-5] BaseEditorActivity:  Mapped process 14319 (IDE) to dataset index 0
    03-12 14:06:51.866 DEBUG [DefaultDispatcher-worker-5] BaseEditorActivity:  Mapped process 14495 (Gradle Tooling) to dataset index 1
    03-12 14:06:51.867  INFO [DefaultDispatcher-worker-5] BaseEditorActivity:  Memory usage chart initialized with 2 processes
    03-12 14:06:51.869 DEBUG [DefaultDispatcher-worker-5] BaseEditorActivity:  No variant selection information available. Default build variants will be selected.
    03-12 14:06:51.869 DEBUG [DefaultDispatcher-worker-5] BaseEditorActivity:  Is project initialized: false
    03-12 14:06:51.870 DEBUG [DefaultDispatcher-worker-5] BaseEditorActivity:  Sending init request to tooling server..
    03-12 14:06:51.947 DEBUG [main] BaseEditorActivity:  onBuildStatusChanged: isInitializing: true, isBuildInProgress: false
    03-12 14:06:52.911 DEBUG [main] BaseEditorActivity:  onBuildStatusChanged: isInitializing: true, isBuildInProgress: true
    03-12 14:06:52.955 ERROR [pool-10-thread-1] GradleBuildService:  Failed to extract logger-runtime.aar from assets
    03-12 14:07:49.741 DEBUG [main] BaseEditorActivity:  [onPause] No opened files. Opened files cache reset to null.
    03-12 14:07:51.085  INFO [main] BaseEditorActivity:  Gradle process monitoring disabled
    03-12 14:07:51.088 DEBUG [ForkJoinPool.commonPool-worker-1] BootClasspathProvider:  Indexing boot classpath: /data/user/0/com.tom.rv2ide/files/home/.androidide/android.jar
    03-12 14:08:33.059 DEBUG [main] BaseEditorActivity:  [onPause] No opened files. Opened files cache reset to null.
    03-12 14:08:34.648 DEBUG [ForkJoinPool.commonPool-worker-1] BootClasspathProvider:  Indexing boot classpath: /data/user/0/com.tom.rv2ide/files/home/.androidide/android.jar
    03-12 14:08:34.652  INFO [main] BaseEditorActivity:  Gradle process monitoring disabled
    03-12 14:08:36.207 DEBUG [main] BaseEditorActivity:  [onPause] No opened files. Opened files cache reset to null.
    03-12 14:09:05.496 DEBUG [ForkJoinPool.commonPool-worker-1] BootClasspathProvider:  Indexing boot classpath: /data/user/0/com.tom.rv2ide/files/home/.androidide/android.jar
    03-12 14:09:05.497  INFO [main] BaseEditorActivity:  Gradle process monitoring disabled
    03-12 14:09:41.919 DEBUG [main] BaseEditorActivity:  [onPause] No opened files. Opened files cache reset to null.
    03-12 14:10:42.082 DEBUG [ForkJoinPool.commonPool-worker-4] BootClasspathProvider:  Indexing boot classpath: /data/user/0/com.tom.rv2ide/files/home/.androidide/android.jar
    03-12 14:10:42.213  INFO [main] BaseEditorActivity:  Gradle process monitoring disabled
    03-12 14:10:43.205 DEBUG [main] BaseEditorActivity:  [onPause] No opened files. Opened files cache reset to null.
    03-12 14:10:43.328  INFO [main] BaseEditorActivity:  Gradle process monitoring disabled
    03-12 14:10:43.332 DEBUG [ForkJoinPool.commonPool-worker-4] BootClasspathProvider:  Indexing boot classpath: /data/user/0/com.tom.rv2ide/files/home/.androidide/android.jar
    03-12 14:10:46.253 ERROR [ForkJoinPool.commonPool-worker-3] BaseEditorActivity:  An error occurred initializing the project with Tooling API
    03-12 14:10:46.263 DEBUG [main] BaseEditorActivity:  onBuildStatusChanged: isInitializing: true, isBuildInProgress: false
    03-12 14:10:46.293 DEBUG [main] BaseEditorActivity:  onBuildStatusChanged: isInitializing: false, isBuildInProgress: false
    

    im just starting in android studio, so i dont have a real knowledge about these problems.

    i hope it helps, xoxo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions