I need help with this error? IL2CPP Error.

Assembly-CSharp10.cpp:40948: error: undefined reference to ‘_MNP_ShowRateUsPopUp’
Assembly-CSharp10.cpp:40994: error: undefined reference to ‘_MNP_ShowDialog’
Assembly-CSharp10.cpp:41032: error: undefined reference to ‘_MNP_ShowMessage’
Assembly-CSharp10.cpp:41054: error: undefined reference to ‘_MNP_DismissCurrentAlert’
Assembly-CSharp10.cpp:41068: error: undefined reference to’_MNP_RedirectToAppStoreRatingPage
Assembly-CSharp10.cpp:41082: error: undefined reference to ‘_MNP_ShowPreloader’
Assembly-CSharp10.cpp:41092: error: undefined reference to ‘_MNP_HidePreloader’
Assembly-CSharp10.cpp:41054: error: undefined reference to ‘_MNP_DismissCurrentAlert’
Assembly-CSharp10.cpp:41068: error: undefined reference to ‘_MNP_RedirectToAppStoreRatingPage’
Assembly-CSharp10.cpp:41082: error: undefined reference to ‘_MNP_ShowPreloader’
Assembly-CSharp10.cpp:41092: error: undefined reference to ‘_MNP_HidePreloader’

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: _MNP_ShowRateUsPopUp

You have two options:

  1. 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: Unity - Manual: Native plug-ins

  2. Remove the C# code which defines this extern method. You can do that with platform dependent compilation: Unity - Manual: Conditional compilation

I Commented out the dynamically linked library reference and I made the native plugin and platform-dependent compilation files also for the project. Now there’s this error

6196747--679783--Er.PNG


It looks like this is something that happened during the gradle build process for Android, after IL2CPP runs. I can’t help much with this issue, but you may want to post it to our Android forums section.