Get nil when calling library function (SOVLED)

I want to use share library to share data and try it on Android phone. I can’t call its function because share is nil

Could it be that you added the defold-sharing library but didn’t chose Project->Fetch Libraries before bundling for Android?

1 Like

@britzl I didn’t bundle for Android. I connected my phone to PC

So you were using the dmengine.apk from the download page? This doesn’t work for projects containing native extensions. Read more here:

1 Like

Thank you, @britzl. I didn’t notice it