Android Firebase RemoteConfig应用程序崩溃,信号为11(SIGSEGV)

Android Firebase RemoteConfig应用程序崩溃,信号为11(SIGSEGV),android,firebase,unity3d,segmentation-fault,firebase-remote-config,Android,Firebase,Unity3d,Segmentation Fault,Firebase Remote Config,我有一个Unity应用程序,我使用谷歌提供的一系列插件:Play Games Services、AdMob、Firebase Analytics。它们都工作得很好。现在我想添加Firebase RemoteConfig。但我不能,因为当我尝试使用RemoteConfig做任何事情时,我的应用程序(在android设备上)总是崩溃。我试着用谷歌搜索,但没有找到类似的东西。 我的代码如下所示: public class RemoteConfigManager { void Start()

我有一个Unity应用程序,我使用谷歌提供的一系列插件:Play Games Services、AdMob、Firebase Analytics。它们都工作得很好。现在我想添加Firebase RemoteConfig。但我不能,因为当我尝试使用RemoteConfig做任何事情时,我的应用程序(在android设备上)总是崩溃。我试着用谷歌搜索,但没有找到类似的东西。 我的代码如下所示:

public class RemoteConfigManager
{
    void Start()
    {
        Debug.Log("Start");
        var dependencyStatus = Firebase.FirebaseApp.CheckDependencies();
        if (dependencyStatus != Firebase.DependencyStatus.Available)
        {
            Debug.Log("Trying to fix dependencies");
            Firebase.FirebaseApp.FixDependenciesAsync().ContinueWith(task =>
            {
                dependencyStatus = Firebase.FirebaseApp.CheckDependencies();
                if (dependencyStatus == Firebase.DependencyStatus.Available)
                {
                    Debug.Log("Fixed dependencies");
                    SetDefaults();
                }
                else
                {
                    Debug.LogError("Could not resolve all Firebase dependencies: " + dependencyStatus);
                }
            });
        }
        else
        {
            Debug.Log("Dependencies ok");
            SetDefaults();
        }
    }

    void SetDefaults()
    {
        Debug.Log("Set defaults");
        var configuration = ConfigurationManager.Instance.Configuration;
        var defaults = new Dictionary<string, object>();
        defaults.Add("some_key", 1);
        FirebaseRemoteConfig.SetDefaults(defaults);
    }
}
06-20 17:10:38.929: I/DEBUG(30994): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
06-20 17:10:38.929: I/DEBUG(30994): Build fingerprint: 'htc/htc_europe/m7:5.0.2/LRX22G/482424.51:user/release-keys'
06-20 17:10:38.929: I/DEBUG(30994): Revision: '3'
06-20 17:10:38.929: I/DEBUG(30994): ABI: 'arm'
06-20 17:10:38.929: I/DEBUG(30994): pid: 29950, tid: 29973, name: UnityMain
06-20 17:10:38.929: I/DEBUG(30994): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
06-20 17:10:38.969: I/DEBUG(30994):     r0 00000000  r1 00000008  r2 affc42f0  r3 915dc8f8
06-20 17:10:38.969: I/DEBUG(30994):     r4 ba252920  r5 00000008  r6 ba252920  r7 00000008
06-20 17:10:38.969: I/DEBUG(30994):     r8 00000000  r9 9744f118  sl 00000000  fp affc4308
06-20 17:10:38.969: I/DEBUG(30994):     ip 00000001  sp affc42b8  lr 9158e7d1  pc 91598354  cpsr 600b0030
06-20 17:10:38.969: I/DEBUG(30994): backtrace:
06-20 17:10:38.969: I/DEBUG(30994):     #00 pc 00064354  /data/app/com.myapp-1/lib/arm/libApp.so (firebase::App::GetInstance(char const*)+3)
06-20 17:10:38.969: I/DEBUG(30994):     #01 pc 0005a7cd  /data/app/com.myapp-1/lib/arm/libApp.so (firebase::remote_config::SetDefaults(firebase::remote_config::ConfigKeyValue const*, unsigned int)+12)
06-20 17:10:38.969: I/DEBUG(30994):     #02 pc 00059357  /data/app/com.myapp-1/lib/arm/libApp.so (firebase::remote_config::SetDefaultsInternal(std::__1::map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::less<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::
06-20 17:10:38.969: I/DEBUG(30994):     #03 pc 00059821  /data/app/com.myapp-1/lib/arm/libApp.so (Firebase_RemoteConfig_CSharp_SetDefaultsInternal__SWIG_1+84)
06-20 17:10:38.969: I/DEBUG(30994):     #04 pc 0000516c  <unknown>

我尝试了不同的变体,但总是得到这个SIGSEGV。有什么想法吗?

我遇到了同样的问题。在安装RemoteConfig软件包时,似乎没有安装所有必需的Android库。使用PlayServicesResolver工具拉入所需的远程配置库,然后工作正常