Unity 2017.4.34f1 Cant Build Apk Using Il2cpp
Solution 1:
This failure occurs because the code in the project has extern methods in C#. Methods marked as extern with a the [Dllimport("__Internal")]
attribute must be present in a native library that is linked with the Unity player when building with the IL2CPP scripting backend.
For example, this in this project one function which causes this issue is named: activateApp
You have two options:
Build a native library with all of the methods marked as extern with the [Dllimport("__Internal")] attribute for the target platform and architecture of the player. See this documentation for details about native plugins: https://docs.unity3d.com/Manual/NativePlugins.html
Remove the C# code which defines this extern method. You can do that with platform dependent compilation: https://docs.unity3d.com/Manual/PlatformDependentCompilation.html
In this case specifically, it looks like the error comes from the Facebook SDK. See if there is a newer Facebook SDK available - I believe this may have been corrected.
Post a Comment for "Unity 2017.4.34f1 Cant Build Apk Using Il2cpp"