-
Notifications
You must be signed in to change notification settings - Fork 26
Errors running and even the sample does not run #8
Comments
I believe it's due to com.microsoft.identity.client:msal upgrade, because after change the line below in build.gradle the example app works again. However i am not sure how to fix it in msal-flutter yet. But as a temporary solution, you can force the version number in android/build.gradle of your project. Example: allprojects { |
Sorry about that and the delay in replying had been a bit swamped, but I'll test it this week to see what the issue might be, and will attempt to specify the exact msal version to see if that helps. |
I guess it's because it's not compatible with msal 1.0.1. |
Sorry for the delay in replying, been a very busy winter period. Oh, just please make sure to use kotlin version 1.3.30 or later, especially if you get the error "java.lang.NoSuchFieldError: No static field msalApp of type Lcom/microsoft/identity/client/IMultipleAccountPublic" |
@mswehli i confirm that with 1.0.0+3 no need to enforce com.microsoft.identity.client:msal version in android/build.gradle any more. Many thanks! |
It is still not working for me..
I followed all the steps you say to do for android set up in the package readme. I use the latest version of the package : msal_flutter: ^1.0.0+3 And if I add in the appname > android>app>build.gradle the following as suggested above: `FAILURE: Build failed with an exception.
BUILD FAILED in 1m 15s |
I also tried to clone the project and run the example app, still gives the same error as explained above. |
Some update on this? |
We noticed our usage of msal_flutter started to fail. As we went back to figure out what was wrong, we simply ran your example app and it errors out in the same way which makes us think it is an environment error. Here is the error when it is run:
D/MsalFlutter( 4843): Got scopes: null
D/MsalFlutter( 4843): Got cleintId: removed by me
D/MsalFlutter( 4843): Got authority: https://owltechindustries.b2clogin.com/tfp/owltechindustries.onmicrosoft.com/B2C_1_signin_signup
D/MsalFlutter( 4843): Authority not null
D/MsalFlutter( 4843): Creating with: removed by me - https://owltechindustries.b2clogin.com/tfp/owltechindustries.onmicrosoft.com/B2C_1_signin_signup
D/MsalFlutter( 4843): Getting the created listener
E/AndroidRuntime( 4843): FATAL EXCEPTION: pool-4-thread-1
E/AndroidRuntime( 4843): Process: uk.co.moodio.msal_flutter_example, PID: 4843
E/AndroidRuntime( 4843): java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.hashCode()' on a null object reference
E/AndroidRuntime( 4843): at com.microsoft.identity.common.internal.request.OperationParameters.hashCode(OperationParameters.java:252)
E/AndroidRuntime( 4843): at com.microsoft.identity.common.internal.controllers.BaseCommand.hashCode(BaseCommand.java:123)
E/AndroidRuntime( 4843): at java.util.HashMap.hash(HashMap.java:338)
E/AndroidRuntime( 4843): at java.util.LinkedHashMap.get(LinkedHashMap.java:464)
E/AndroidRuntime( 4843): at android.util.LruCache.get(LruCache.java:117)
E/AndroidRuntime( 4843): at com.microsoft.identity.common.internal.controllers.CommandResultCache.get(CommandResultCache.java:48)
E/AndroidRuntime( 4843): at com.microsoft.identity.common.internal.controllers.CommandDispatcher$1.run(CommandDispatcher.java:90)
E/AndroidRuntime( 4843): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
E/AndroidRuntime( 4843): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
E/AndroidRuntime( 4843): at java.lang.Thread.run(Thread.java:764)
Environment looks like:
Flutter: Flutter (Channel stable, v1.9.1+hotfix.4, on Mac OS X 10.15.1 19B88, locale en-US)
Dart version 2.5.0
Android Studio 3.5.3
Flutter plugin version 42.1.1
Dart plugin version 191.8593
Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
ext.kotlin_version = '1.3.50' (in. build.gradle)
Any thoughts appreciated as we are a little surprise it suddenly stopped working
The text was updated successfully, but these errors were encountered: