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

[Question] Attempt to load writable dex file: /data/user/0/package-name/cache/firestore_resources_lib.jar #1214

Open
Lesmannn opened this issue Mar 11, 2025 · 5 comments
Labels
api: firestore needs-info Need information for the developer stale Don't have recent activity

Comments

@Lesmannn
Copy link

What is your question?

When launching an app that runs Firebase Firestore. The logs show the message :

Attempt to load writable dex file: /data/user/0/package-name/cache/firestore_resources_lib.jar

Attempt to load writable dex file: /data/user/0/package-name/cache/auth_resources_lib.jar

Attempt to load writable dex file: /data/user/0/package-name/cache/google_api_resources_lib.jar

Error GoogleApiManager java.lang.SecurityException: Unknown calling package name 'com.google.android.gms'.

Image

Image

Firebase Unity SDK Version

9.6.0

Unity editor version

2021.3.17f

Installation Method

.unitypackage

Problematic Firebase Component(s)

Firestore

Other Firebase Component(s) in use

Analytics, Storage

Additional SDKs you are using

Photon PUN

Targeted Platform(s)

Android

Unity editor platform

Windows

Scripting Runtime

IL2CPP

Release Distribution Type

Pre-built SDK from https://firebase.google.com/download/unity

@argzdev
Copy link

argzdev commented Mar 14, 2025

Hey @Lesmannn, thanks for reaching out. It looks like you're using an old version (September 27, 2022) of our Firebase SDK. That said, I'd recommend updating to the latest Firebase Unity SDK version 12.7.0. Please note that this also requires using Unity 2021.3.43f1 or later.

This is for us to avoid issues that might've been fixed in the most recent versions.
Let me know if it helps. Thanks!

@argzdev argzdev added the needs-info Need information for the developer label Mar 14, 2025
@google-oss-bot
Copy link

Hey @Lesmannn. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

@google-oss-bot google-oss-bot added the stale Don't have recent activity label Mar 21, 2025
@Lesmannn
Copy link
Author

Hey @argzdev thank you for your reply, i already upgrade the firebase version to 12.7.0 and also upgrade my unity version to 2022.3.60f LTS. That error is solve, but it show new error like this :

2025/03/21 08:18:30.636 15756 15805 Error Unity DllNotFoundException: Unable to load DLL 'FirebaseCppApp-12_7_0'. Tried the load the following dynamic libraries: Unable to load dynamic library 'FirebaseCppApp-12_7_0' because of 'Failed to open the requested dynamic library (0x06000000) dlerror() = dlopen failed: library "FirebaseCppApp-12_7_0" not found

I already try to solve this with different way but all of my way seem fail and still show this error. Im already try :

  1. Force Resolve on Android Resolver
  2. Uninstall Firebase & External Depedency Manager and Install it again with latest version
  3. Delete unity library and re-open unity
  4. Using BoM on mainTemplate.gradle
  5. Tried enabling 'any platform' for all FirebaseCppApp-12_7_0 files
  6. Change higher min sdk version (23 > 24)

any help about this ?

@google-oss-bot google-oss-bot added needs-attention Need Googler's attention and removed stale Don't have recent activity needs-info Need information for the developer labels Mar 21, 2025
@argzdev
Copy link

argzdev commented Mar 25, 2025

Using BoM on mainTemplate.gradle

AFAIK, you don't need to do this. Importing the dependencies as usual should work as is. But it does looks like the imports somehow weren't added properly. Could you try Assets > Reimport all and see if that changes anything? I tried our Firebase Firestore testapp but so far haven't encountered any issues. You can also check that out for reference.

That said, if the issue is still persistent, could you provide an MCVE so we can investigate this further?

@argzdev argzdev added needs-info Need information for the developer and removed needs-attention Need Googler's attention labels Mar 25, 2025
@google-oss-bot google-oss-bot added the stale Don't have recent activity label Apr 1, 2025
@google-oss-bot
Copy link

Hey @Lesmannn. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: firestore needs-info Need information for the developer stale Don't have recent activity
Projects
None yet
Development

No branches or pull requests

3 participants