Can't build android game when selected IL2CPP and ARM64

I made an empty android project, went to project settings and switched to IL2CPP and choose ARM64, changed to App Bundle, then “build and run”. After a while i get four errors and a build result of fail. When i turn back to mono it works just fine. I have no idea how to fix this problem. Im using unity 2019.2.17f1.

The following is the most modern configuration that I have got to work for 64-bit Android development:

  1. Unity version == 2018.4.14f1 (LTS)
  2. Android NDK version == r16b
  3. In the Player settings, under Other settings, make sure that “Strip Engine Code” is UN-checked.

Let me know if that works for you!