I noticed ModernHttp is not being updated long time,
After search some, I noticed there is Xamarin updated version.
here.
https://github.com/xamarin/ModernHttpClient
I want to try this.
But I couldn't find it on nuGet Gallery nor build library to my own.
It gives error "obsolete api" when I try build android library.
Can't understand because I set API level as library use.
Android/OkHttpNetworkHandler.cs(273,48): error CS0619:
System.Net.ServicePointManager.ClientCipherSuitesCallback' is
obsolete:This API is no longer supported.'
Task "Csc" execution -- FAILED
Done building target "CoreCompile" in project "/Users/bright/Devlibs/project/untitled folder/ModernHttpClient2 copy
3/src/ModernHttpClient/ModernHttpClient.Android.csproj".-- FAILED
Done building project "/Users/bright/Devlibs/project/untitled folder/ModernHttpClient2 copy
3/src/ModernHttpClient/ModernHttpClient.Android.csproj".-- FAILED
Build FAILED. Errors:
Any tip please?
Try using this link :
https://components.xamarin.com/view/modernhttpclient
Visual studies and Xamarin studios should have an easy way to add in components.
This link can help with learning about there usage :
https://developer.xamarin.com/guides/cross-platform/xamarin-studio/components_walkthrough/
Related
I'm getting this error trying to build a Xamarin.iOS project referencing a .NET Standard 2.0 library.
None of the MT2001 issues online seem to have this specific "Error while processing references" reason, so I'm at a loss as to how to diagnose this. I've tweaked and fiddled about as much as any one person can and stay sane, but I'm really in the dark.
Can anyone out there point me in a direction?
Adding -v -v -v -v to "Additional mtouch arguments" in the project iOS Build settings will help diagnose the issue. After that, you can search the build output for MT2001 and view the inner exceptions. Obviously, each project may differ as to what assembly causes the linker to fail. You may need to add, remove or fix your references based on the output.
For example, I was trying to use SignalR from AspNetCore 2.1, which has a dependency on System.Threading.Tasks.Extensions 4.5.1 in my project, which it seems Mono does not yet support. Mono does not provide its own version of the assembly yet, so when mtouch goes to link the assembly, it's unable to do so and throws an exception:
Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: 'System.Threading.Tasks.Extensions, Version=4.2.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
Removing all references to this assembly (and therefore the whole feauture in my case) allowed the build and linking to succeed.
I've found that I get this when using a Xamarin library that is dependent on System.Reactive 4.1.0. There's a bug in there associated with System.Threading.Tasks.Extensions, and since it is a library I'm writing, I had to roll back to System.Reactive 4.0.0.
For me the error is as follows.
one of the package is mentioned in package.config file but it was not available in packages. So i added the missing package from nuget and the app works fine
I have been trying to bind an AAR library in Xamarin and I was able to build it with few warnings.
But as soon as I try to use an activity from the resulted DLL, I get this error:
Failed resolution of: Lcom/spectratech/lib/R$layout;
I have checked the library and it has all the resources present in res folder and working in Android Studio.
I have tried every solution available on the internet like Clean and Build and enabling Multidex but could not make it work.
Resources are not being loaded from the library.
Any suggestions?
Using the google play games services and Admob plugin I cannot seem to get my back to build into an APK and I am receiving the following error message. Any help would be appreciated as I have removed some duplicate files but I am still failing to find why I cannot build my app.
I am using Unity Unity 5.6.1f1 (64-bit).
game services: https://github.com/playgameservices/play-games-plugin-for-unity Ads: https://github.com/unity-plugins/Firebase-Admob-Unity
CommandInvokationFailure: Unable to convert classes into dex format.
C:/Program Files/Java/jdk1.8.0_121\bin\java.exe -Xmx2048M -Dcom.android.sdkmanager.toolsdir="C:/Users/Jack/AppData/Local/Android/sdk\tools" -Dfile.encoding=UTF8 -jar "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar" -
stderr[
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/internal/zzbyb;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/internal/zzbyc;
2 errors; aborting
]
Some Background
When Unity builds your project for Android, it invokes several tools from the Android SDK. As part of that process, it converts all of your native (Java) code for Android into a file format called DEX (Dalvik executable).
All of your Android plugins get built up into a single package using that tool. The problems start when a few plugins have the same compiled Java code (classes) in them. This will cause the DEX tool to fail with an error like the one you're seeing:
Uncaught translation error: java.lang.IllegalArgumentException:
already added: Lcom/google/android/gms/internal/zzbyb;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/internal/zzbyc;
This means that classes with those names were already included in another library, and so they cannot be added again.
Possible Causes
As explained above, this error occurs when you have duplicate plugins in your project; this can happen in different scenarios, here are some examples:
The same plugin is included more than once, under different folders of the project.
The same plugin is included more than once with different versions.
A plugin contains other dependencies "embedded" inside it, but these dependencies are already included in the project in some form.
How To Fix
You should look up duplicate Android plugins in your project and eliminate them (keep only 1 copy). From the error message you posted, the issue here is related to Google play services libraries. You should look into that (libraries named play-services-xxxx.aar).
Paid Help (Shameless Plug)
I provide a professional service for fixing this exact kind of issue. In case you (or anyone else) are not able to resolve such an issue themselves, feel free to contact me and get it solved.
I was facing the same problem after add admob in my project, here are 2 possible solutions:
Go to the file >> build settings and change the option internal to gradle
Open libs folders separately of both Facebook SDK and Google Play services and delete the matching files
It would be something like (support v4)
Google ads 11.2 has errors. It reuses certain jar classes .
On its own, it isnot an issue
Once you add in another google class, ie firebase, your done for.
There is a fix though. Google put out firebase 4.2 and ads 11.4
I have been following the ReadMe from the Venmo iOS SDK but am having issues even importing the pod. When I try importing the SDK and running the application, I receive the following error:
The SDK mentions that there can be issues with a project that uses Parse (mine does), so I added these other linker flags. Upon doing so, I receive this error:
Anyone else run into similar issues with this SDK or have any idea how to at least allow my project to import the SDK? Thanks in advance!
Download VenmoAppSwitch.framework at https://github.com/venmo/app-switch-ios-framework or from a similar developer website from venmo.com
Follow the set up steps and if there are any follow up questions, please let me know.
This is how it was done for our Payments App at https://itunes.apple.com/us/app/paynet/id797415713?mt=8
I had that and other problems with Venmo IOS SDK, i think you´re duplicating Flags and there´s other you don´t have, try to go to your project -> your target -> Build Settings -> Linking -> Other Linker Flags. And be sure youre not dupicating, in the image show you the linker flags i use for my project.
*Sorry for my english hope you understand
Other Linker Flags
I set up the environment according to this tutorial:
http://opencv.willowgarage.com/wiki/VisualC%2B%2B_VS2010
However the picture they want you to use is no longer there, so I just saved the supplied screen shot with the same name as the original file.
Builds fine, Begins to run but then I get a runtime error
Here is the runtime error:
OpenCV_HelloWorld.exe - Application Error : The application was unable to start correctly (0xc0150002). Click OK to close the application.
I looked in Event Viewer and found that it also set off a another error but did not announce
Here is the unannounced error:
Activation context generation failed for "C:\OpenCV2.1\bin\cxcore210d.dll". Dependent Assembly Microsoft.VC90.DebugCRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8" could not be found. Please use sxstrace.exe for detailed diagnosis.
As you can see it says to use sxstrace.exe however I don't appear to have that program. After a quick Google I read that the program was included in the Microsoft Windows Platform SDK, so I'm downloading the most relevant version (windows 7 version for c# and .net) and installing that to follow up on that, I'll post what I find as it comes.
Any help is very much appreciated
Unexpectedly the project builds and runs now. The only modifications made were removing spaces in the c++ directory and linker options from the tutorial. External changes were the completed installation of the windows platform SDK, however OpenCV has no dependencies with windows platform sdk. I am unsure how it was resolved, but it's no longer a problem.