TitleDuring Unity build, a build error occurs due to the inability to reference UnityPlayerActivity.2024-04-04 17:49:13
Writer

In certain versions of Unity (confirmed version: 2022.3.16f1 and above), UnityPlayerActivity is not properly referenced.
Users of Hive SDK v4 23.2.0 or lower can resolve the build error with the following modification 

  • Assets/Hive_SDK_v4/Editor/Android/DefaultAndroidManifest.xml
    • (Line: 5) Please modify the code from com.hive.UnityPlayerActivity to com.hive.HiveUnityPlayerActivity.
  • Assets/Hive_SDK_v4/Editor/Android/HiveManifestMod.cs
    • (Line: 27) Please modify the code from com.hive.UnityPlayerActivity to com.hive.HiveUnityPlayerActivity.
  • Assets/Plugins/Android/AndroidManifest.xml
    • (Line: 5) Please modify the code from com.hive.UnityPlayerActivity to com.hive.HiveUnityPlayerActivity.
  • Assets/HiveSDK/Plugins/Android/UnityPlayerActivity.java
    • Change the file name from UnityPlayerActivity.java to HiveUnityPlayerActivity.java.
    • (Line: 19) Modify the class UnityPlayerActivity code to class HiveUnityPlayerActivity.