0 votes

i tried to make a own plugin and i made all what here was written

**https://docs.godotengine.org/en/stable/tutorials/plugins/android/android_plugin.html#android-plugin**

but if i run the game on android, the label say: "Plugin not found"

and i dont understand all. And if i implement the firstplugin.release.aar and firstplugin.gdap, then i ask in the normal gdscript:

extends Node2D

func _ready ():

if Engine.has_singleton ("FirstPlugin"):
var singleton = Engine.get_singleton ("FirstPlugin")
print (singleton.myFirstFunction (5,9))
$ Label.text = "Plugin found"
else:
print ("Plugin not found")
$ Label.text = "Plugin not found"

and in android studio my scripts:

part of gradle.build (app):

dependencies {

    implementation 'androidx.appcompat: appcompat: 1.2.0'
    implementation 'com.google.android.material: material: 1.3.0'
    implementation 'androidx.constraintlayout: constraintlayout: 2.0.4'
    testImplementation 'junit: junit: 4. +'
    androidTestImplementation 'androidx.test.ext: junit: 1.1.2'
    androidTestImplementation 'androidx.test.espresso: espresso-core: 3.3.0'
}

and gradle.settings:

include ': FirstPlugin'
include ': godot-lib.3.2.3.stable.release'
include ': app'
rootProject.name = "FirstPlugin"

what i do wrong? Who can help me?

Or can anyone tell me how i can create my own android Plugin step by step? I don´t understand anything in the godot docs!

Thanks :)

Godot version 3.2.3
in Engine by (86 points)
edited by

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.