Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android linker strips out essential stuff #9

Open
digitaldjango opened this issue Apr 10, 2017 · 1 comment
Open

Android linker strips out essential stuff #9

digitaldjango opened this issue Apr 10, 2017 · 1 comment

Comments

@digitaldjango
Copy link

digitaldjango commented Apr 10, 2017

The android linker strips a bunch of stuff from Ninject in my release build.
The log tells me ModuleLoader can not be loaded becasue it is missing a constructor if I enable the linker.

Maybe you can add the [Android.Runtime.Preserve] to the components that get loaded with reflection for the Android version?

In case someone else has this: Adding Ninject in the Ignore assemblies field under the linker setting seems to remedy the situation.

@felipeslongo
Copy link

I have the same issue,but adding Ninject to the ignore assmeblies was not enough.
I had to change from "Sdk and User Assemblies" to "Sdk Assemblies Only".

Did you do anything more than just adding Ninject ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants