Building Android plugin to use in Godot Game

Godot Version

4.5

Question

I am trying to build an Android plugin to use with a Godot game.
I am familiar with Android Studio and building libraries.

So I follow the guide and build my library(plugin) as an aar file.

My manifest file is included in the aar file and it contains:


<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

    <application>
        <meta-data
            android:name="org.godotengine.plugin.v2.FirebasePlugin"
            android:value="com.test.godotplugin.FirebasePlugin" />
    </application>

</manifest>

com.test.godotplugin is my package name and FirebasePlugin is my class name (FirebasePlugin.java)

I build the aar and then place it to the folder “android\plugins\FirebasePlugin” under root folder of my Godot project:

plugin.cfg is :

[plugin]
name=“FirebasePlugin”
binary_type=“local”
description=“Firebase plugin for Godot”
platforms=Android

Then I install the apk on my phone and check logcat.
What I see is:

2025-10-25 12:50:58.184 17769-17852 godot com.test.game E ERROR: Failed to retrieve non-existent singleton ‘FirebasePlugin’.
2025-10-25 12:50:58.184 17769-17852 godot com.test.game E at: get_singleton_object (core/config/engine.cpp:308)

what may be the issue here ?

It took several days to get this post approved.
During that time I found the solution.

Hey! Welcome to the forums.

Two things, first, if you found a solution, it’s generally a nice gesture to post it then mark it as a solution so others in the future can find it!

Second, you put your post in the incorrect category! If you need help with something, you should use the Help category. Resources is used to post things you made and things that others can use.

well, sorry for my mistake. I was in a hurry and there are really a lot of categories here.

solution is specific to me and atually it is not a solution. I found the correct method, I was doing wrong. So this question/thread/post is useless. It will not help anyone.

Btw, my post needed approval which came several days after I posted. This causes loss of time. On no other forum , I needed approval before post became visible.
I think I’m not gonna use this forum much.

have a nice day.