The name 'AuthenticationAgentContinuationHelper' does not exist in the current context - android

Hi,I tired to develop Azure Active Directory, But I am facing some issue, I installed Microsoft.Identity.Client NuGet package, but it shows like**"The name 'AuthenticationAgentContinuationHelper' does not exist in the current context**" AuthenticationAgentContinuationHelper.SetAuthenticationAgentContinuationEventArgs(); Please Help me to find the Solution.

I'm not able to find AuthenticationAgentContinuationHelper class in Microsoft.Identity.Client github repo.
By checking the Configuration requirements and troubleshooting tips for Xamarin Android with MSAL.NET, which should be the latest, it's using
AuthenticationContinuationHelper.SetAuthenticationContinuationEventArgs()
You're probably referring an old doc, please check the latest document and update your code accordingly.

Related

Xamarin Android error on DeviceInfo.Model

I have a Xamarin for Android app that has been working until today. I needed to make a change but before I did, I ran a test to ensure no VS or Nuget package updates caused an issue. I have Xamarin.Essentials in my app and this line worked before, not sure what is happening now.
if(DeviceInfo.Model == "TC72"){scannerIndex = 1;}
Exception Unhandled:
Xamarin.Essentials.NotImplementedInReferenceAssemblyException: 'This
functionality is not implemented in the portable version of this
assembly. You should reference the NuGet package from your main
application project in order to reference the platform-specific
implementation.'
Any insight would be helpful. TIA
I changed the DeviceInfo.Model to Build.Model and get the same info I was expecting. That fixed my issue. If anyone has a different suggestion, happy to entertain them.
Added 8/11/21 3:25pm CT
I also found that changing my Compile Target to 10.0 fixed the Xamarin.Essentials issues. So far the application is working on 8.1 on the device (Zebra MC3300).

Unable to resolve “expo-app-loading” from “App.js”

I am getting this error:
Failed building JavaScript bundle. Unable to resolve
“expo-app-loading” from “App.js”
when I ran my project after a couple of months. Earlier it was working fine but not now.
Can someone please help me out?
If you recently updated SDK versions (expo upgrade), please be sure to review the breaking changes carefully as is advised when you complete the install.
For instance, SDK-40 which was released in December has breaking changes notes about expo-app-loading that probably addresses what you're seeing perfectly.
Read this page : https://blog.expo.io/expo-sdk-40-is-now-available-d4d73e67da33
Look for section title: AppLoading has been extracted from the expo package
There were two problems:
expo-app-loading was not in my package.json, so I just installed it again and boom, it was in my packege.json then.
I was importing 'AppLoading' the wrong way. I wrote
import {AppLoading} from "expo-app-loading"; //wrong way
Which was breaking. Then I corrected it to
import AppLoading from "expo-app-loading"; //correct way
Which solved the issue.

Have a trouble with developing an app for smarteyeglass

Recently,i need to build an app for smart eyeglass. with official instruction,i have to import three library project,including SmartExtensionAPI,SmartExtensionUtils SmartEyeglassAPI.and i have develop dependencies for my project when i run this app, there a lot of error information.
such as Error:(44, 57)
com.sonyericsson.extras.liveware.aef.notification is not
existing;Error:(45, 57)
com.sonyericsson.extras.liveware.aef.registration is not
existiong!Error:(49, 52)com.sonyericsson.extras.liveware.aef.control
is not existing,Error:(198, 40)Registration.Intents is not existing
and so on.
what's wrong? search for help.
thanks
It seems like you are missing registration for your extension in your application.
Please take a look at sample projects for details. You can also start developing directly using sample projects in the SDK.

How to use EasyMock in android

I use easymock-3.2.jar in my android test project.
I find it in its Home:
2013-07-11: EasyMock 3.2 is available. Add #Mock annotations and Android support.
However , I got exception when I use it.
java.lang.NoClassDefFoundError: org.easymock.EasyMock
I googled a lot , and add
dexmaker-1.0.jar
objenesis-1.2.jar
cglib-nodep-2.2.2.jar or cglib-2.2.jar
But the exception still be there.Who can help me?
Thanks a lot.
Put the library
easymock-3.2.jar
dexmaker-1.0.jar
dexmaker-mockito-1.0.jar
in tests/libs. And it will work.
Be careful , it's in tests/libs , not in tests/lib.
It will throw
java.lang.NoClassDefFoundError: org.easymock.EasyMock
if you position them in tests/lib.
The first step is to get EasyMock. You can get the latest version from Easymock’s download page. Choose the latest version and you will get a zip file. You only need easymock-3.2.jar (3.2 will change depending on the version you choose). You will also need dexmaker for Easymock to work on Android. You can get the jar from Dexmaker’s website. Once you have both jar files put them in /tests/libs. Now you have EasyMock available in your tests.
for more detail follow below link
http://ncona.com/2013/11/writing-unit-test-for-android-with-easymock/

App Engine Connected Android Project - Could not find ...RequestFactorySource

I'm unable to run even the default App Engine connected Android app, since updating my SDK. I've gone as far as deleting eclipse and all of my libraries and reinstalling them with no success. I've followed Google's tutorial to the letter and verified the validation tool is in my build path. This is the error I'm getting (and yes requestfactory-client.jar is in my library).
dalvikvm(375): Could not find method com.google.web.bindery.requestfactory.vm.RequestFactorySource.create, referenced from method com.Util.getRequestFactory
dalvikvm(375): VFY: unable to resolve static method 84: Lcom/google/web/bindery/requestfactory/vm/RequestFactorySource;.create (Ljava/lang/Class;)Lcom/google/web/bindery/requestfactory/shared/RequestFactory;
I'm completely lost at this point and about to pull some hair out, please help. Thanks
In my case it's an issue with the new ADT 17 and how it handles library projects. This post is a good explanation on how to fix it:
http://android.foxykeep.com/dev/how-to-fix-the-classdefnotfounderror-with-adt-17
I, too, was going crazy on this. Hope this helps.
The validation step can be important too (like you did):
http://code.google.com/p/google-web-toolkit/wiki/RequestFactoryInterfaceValidation

Categories

Resources