admin管理员组

文章数量:1399927

I am working with the stashenergy/ react-native-msal library to implement the msal login within my company's apps. They are running on a relatively old react-native version (63.5) and I got it to work fine with the iOS apps, however, the android version always crashes with this error above.

It seems to be unable to instantiate the PublicClientApplication whereas it has no such issues on iOS.

The only idea I have would be that I had to make the following change:

```
implementation('com.microsoft.identity.client:msal:2.2.+') {
        exclude group: 'com.microsoft.device.display'
    }
```

to the build.gradle in the react-native-msal library to avoid another error:

```
Could not find com.microsoft.device.display:display-mask:0.3.0.
     Required by:
         project :reactnativemsal > com.microsoft.identity.client:msal:2.2.3 >         com.microsoft.identity:common:3.6.7
```

Maybe excluding this group causes the device context to be null and the init to fail? Without the exclude, however, I am also unable to fix the other bug and the app won't even build.

I'd appreciate any help or tips!

本文标签: