extender icon indicating copy to clipboard operation
extender copied to clipboard

how to load android native extensions by using local path on defold engine

Open marx0910 opened this issue 1 year ago • 3 comments

hello , i just want to implement android native extension , writing android code and build to native extension. i follow this link: https://github.com/defold/extender, but it`s to complex , i just want to write a android native extension used local path , how can i get a android native extension fast and write native code , thanks.

marx0910 avatar Feb 25 '25 03:02 marx0910

Hello! First of all I recommend to go through that manual https://defold.com/manuals/extensions/.

No need to setup Extender build server locally, you can use one of public build servers (https://build.defold.com or https://build-stage.defold.com).

ekharkunov avatar Mar 13 '25 17:03 ekharkunov

Hello! First of all I recommend to go through that manual https://defold.com/manuals/extensions/.

No need to setup Extender build server locally, you can use one of public build servers (https://build.defold.com or https://build-stage.defold.com).

thanks for reply , I had been writed native extensions and import to my project. the project structure like this pic. the problem was occured started in main.script(lua code) . it is ok to lua call native extension code. but when i run c++ code, the project was crashed, and error message tell me window_object is null. I'm a bit puzzled.

Image

marx0910 avatar Jun 13 '25 08:06 marx0910

but when i run c++ code, the project was crashed, and error message tell me window_object is null. I'm a bit puzzled.

You need to share some of your extension code so that we can try to figure out what goes wrong.

britzl avatar Jun 20 '25 05:06 britzl