f111fei / react-native-unity-demo

104 stars 80 forks source link

Fails to register native method for 'isAutoRotationOn' #1

Open fat0wl opened 6 years ago

fat0wl commented 6 years ago

On a Samsung Galaxy S7 Edge I'm receiving the following error:

03-23 10:30:12.444 20044-20044/? E/art: Failed to register native method com.unity3d.player.UnityPlayer.nativeIsAutorotationOn()Z in /data/app/com.rnunitydemo-1/split_lib_dependencies_apk.apk:classes33.dex
03-23 10:30:12.445 20044-20044/? E/art: ----- class 'Lcom/unity3d/player/UnityPlayer;' cl=0x12caba90 -----

Will let you know if I figure anything out but perhaps you have some better intution about this?

(I'm using Unity 2017.3.1p2 to compile, fyi)

f111fei commented 6 years ago

Please tell me your unity version. I run the project in Unity 2017.2.0f3 without test in other versions. Suggest install Unity 2017.2.0f3 run the demo.

fat0wl commented 6 years ago

Sorry, had updated comment to include version but I guess after you saw it... will try with a match and let you know! Thanks.