0 votes

I'm trying to create an android plugin in Godot 3.2.2(creating an .aar plugin) and need to read some config info from "project.godot" in init function of plugin.
I'm trying to get that info using GodotLib.getGlobal("category/key") but exported apk fails to start and causes App crash.
what is the best way to get info from "project.godot" in.aar plugin?

in Engine by (25 points)
edited by

1 Answer

0 votes
Best answer

I solved the problem that was an incompability between godot Kotlin version and some libs of my plugin. Just change kotlinVersion in
config.gradle file in android/build directory of my project from 1.3.* to 1.4.0 and now GodotLib.getGlobal("category/key") works pretty well.

by (25 points)
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.