Hello Team,
I am facing this The "XamlCTask" task failed unexpectedly. problem after adding the xamarin.forms.maps package to my application.
Waiting for your response.
Hello Team,
I am facing this The "XamlCTask" task failed unexpectedly. problem after adding the xamarin.forms.maps package to my application.
Waiting for your response.
Hi,
I am using the Xamarin Test Recorder for mac.
Steps I followed:
I connect a device and selected the .ipa file (I am doing this to generate .ipa with calabash injected in it ).
In the recorder log, I see the error: Exception thrown trying to kill existing calabash server. Please see below log.
Log:
] Injecting calabash into iOS app: /var/folders/js/ryfrsn_122s7czbb4cvhzhlr0000gp/T/tmp18ec56c6.tmp/Payload/HelloWorld.app
[04:27:14] Installing /var/folders/js/ryfrsn_122s7czbb4cvhzhlr0000gp/T/test-recorder/ios-injection/calabash.dylib
[04:27:15] Linking calabash.dylib
[04:27:22] Process: '/var/folders/js/ryfrsn_122s7czbb4cvhzhlr0000gp/T/test-recorder/idm/bin/iOSDeviceManager is-installed io.cordova.HelloWorld -d 957fc544450dfbf21160e7f135cd9019295b915f' exited with code: 2
[04:27:36] Exception thrown trying to kill existing calabash server
[04:27:36] An error occurred while sending the request
[04:27:36] at System.Net.Http.HttpClientHandler+d__63.MoveNext () [0x004ab] in :0
Any advise ?
Hi,
I am using the Xamarin Test Recorder for mac.
Steps I followed:
I connect a device and selected the .ipa file (I am doing this to generate .ipa with calabash injected in it ).
In the recorder log, I see the error: Exception thrown trying to kill existing calabash server. Please see below log.
Log:
] Injecting calabash into iOS app: /var/folders/js/ryfrsn_122s7czbb4cvhzhlr0000gp/T/tmp18ec56c6.tmp/Payload/HelloWorld.app
[04:27:14] Installing /var/folders/js/ryfrsn_122s7czbb4cvhzhlr0000gp/T/test-recorder/ios-injection/calabash.dylib
[04:27:15] Linking calabash.dylib
[04:27:22] Process: '/var/folders/js/ryfrsn_122s7czbb4cvhzhlr0000gp/T/test-recorder/idm/bin/iOSDeviceManager is-installed io.cordova.HelloWorld -d 957fc544450dfbf21160e7f135cd9019295b915f' exited with code: 2
[04:27:36] Exception thrown trying to kill existing calabash server
[04:27:36] An error occurred while sending the request
[04:27:36] at System.Net.Http.HttpClientHandler+d__63.MoveNext () [0x004ab] in :0
Any advise ?
hi,
my concern is that i want to share the data from android app to the web page without using json .
actually my issues is that i am opening a app with the link and sending the data from web page to app using intent. intent is recieving the data from web links and i want to send that data again to the same link that display on the web page.
suppost i want to send a+b data from web to app and will get the result back from that app c=a+b;
Please help
My application brings up a modal custom picker page, which when the user selects an item, I'd like to remove the current page from the stack and pop up a new page.
This doesn't work (my first custom picker page is dismissed, but the second page never appears)
async void Thing_ItemSelected(object sender, SelectedItemChangedEventArgs e)
{
var selectedThing = ((Thing)e.SelectedItem);
await Navigation.PopModalAsync();
await Navigation.PushModalAsync(new NavigationPage(new SecondPage(selectedThing)));
}
It turns out I can fix this by eliminating the first await, it suddenly works.
async void Thing_ItemSelected(object sender, SelectedItemChangedEventArgs e)
{
var selectedThing = ((Thing)e.SelectedItem);
Navigation.PopModalAsync();
await Navigation.PushModalAsync(new NavigationPage(new SecondPage(selectedThing)));
}
Is this a bug, expected, or is there a better way to accomplish what I'm trying to do? I worried at first the page I'm on is being destructed, but the destructor isn't called (and I save the page just to be sure of that).
I have create a blank app with Visual Studio 2017 Community ( and personnal).
When i want to open this file, I have the error :
System.ArgumentNullException: La valeur ne peut pas être null.
Nom du paramètre : o
à System.Runtime.InteropServices.Marshal.GetIUnknownForObjectNative(Object o, Boolean onlyInContext)
à Xamarin.AndroidDesigner.Windows.WindowsAndroidSurfaceRenderer.UpdateD3DImageFromSharedSurface() dans E:\A_work\12\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner.Windows\WindowsAndroidSurfaceRenderer.cs:ligne 140
à Xamarin.AndroidDesigner.Windows.WindowsAndroidSurfaceRenderer.RenderDesignerItemVisual(DesignerItem item) dans E:\A_work\12\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner.Windows\WindowsAndroidSurfaceRenderer.cs:ligne 131
à Xamarin.Designer.Windows.WpfSurfaceRenderer.QueueRender(DesignerItem item) dans E:\A_work\12\s\Xamarin.Designer\Xamarin.Designer.Windows\WpfSurfaceRenderer.cs:ligne 361
à Xamarin.AndroidDesigner.AndroidDesignerSurface.HandleSessionImageChanged(Object sender, EventArgs e) dans E:\A_work\12\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner\AndroidDesignerSurface.cs:ligne 229
à Xamarin.AndroidDesigner.AndroidDesignerSession.OnImageChanged() dans E:\A_work\12\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner\AndroidDesignerSession.cs:ligne 2321
à Xamarin.AndroidDesigner.AndroidDesignerSession.HandleRendered(Object sender, EventArgs e) dans E:\A_work\12\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner\AndroidDesignerSession.cs:ligne 1381
Thank you for you help
I'm doing a Xamarin Cross Platform App. I add the nuget package "OneSignal" to get Push Notification.
I follow all the steps on the next tutorial:
I cannot post links...
And when I try to compile the project, I have this exception:
java.lang.IllegalArgumentException: already added : Lcom/google/android/gms/iid/MessengerCompat;
If I go to the exception, it gives me to the "Xamarin.Android.Common.targets" file, to this line:
<!-- Compile java code to dalvik -->
<CompileToDalvik
DxJarPath="$(DxJarPath)"
DxExtraArguments="$(DxExtraArguments)"
JavaToolPath="$(JavaToolPath)"
JavaMaximumHeapSize="$(JavaMaximumHeapSize)"
JavaOptions="$(JavaOptions)"
ClassesOutputDirectory="$(IntermediateOutputPath)android\bin\classes"
ToolPath="$(DxToolPath)"
ToolExe="$(DxToolExe)"
UseDx="$(UseDx)"
MultiDexEnabled="$(AndroidEnableMultiDex)"
MultiDexMainDexListFile="$(_AndroidMainDexListFile)"
JavaLibrariesToCompile="@(_JavaLibrariesToCompileForAppDx)"
OptionalObfuscatedJarFile="$(IntermediateOutputPath)proguard\__proguard_output__.jar"
/>
I try this solution, but it doesn't work for me:
I cannot post links...
Can anyone help me? I don't know how to fix it.
I am using autocomplete entry field in (Xamarin.Forms) from
github.com/XLabs/Xamarin-Forms-Labs/blob/master/src/Forms/XLabs.Forms/Controls/AutoCompleteView.cs
The searchable functionality is working fine for me. However, when the list pops up for suggestions and closes on selection, other controls behind the listview gets disabled after the suggestions close (not able to select them after list closed).
Am i missing any property to be set? Any kind suggestions please?
I just got latest stable 2.5.0.77107 and I can't compile anymore
[myUser]\packages\xamarin.forms\2.5.0.77107\build\netstandard1.0\Xamarin.Forms.targets(55,3): error MSB4062: The "Xamarin.Forms.Build.Tasks.GetTasksAbi" task could not be loaded from the assembly [myUser]\.nuget\packages\xamarin.forms\2.5.0.77107\build\netstandard1.0\Xamarin.Forms.Build.Tasks.dll. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.
I replaced my user path with [myUser]
it looks like this bug exists since October in the pre-release:
I have a forms solution, it runs fine in debug but crashes immediately in release mode, it doesn’t even get to my MainPage constructor:
Unhandled exception at 0x54D62408 (Windows.UI.Xaml.dll) in SmartCart.UWP.exe: 0xC000027B: An application-internal exception has occurred (parameters: 0x0D6594E8, 0x00000003).
Unhandled exception at 0x76341104 (combase.dll) in SmartCart.UWP.exe: 0xC0000602: A fail fast exception occurred. Exception handlers will not be invoked and the process will be terminated immediately.
STATUS_STACK_BUFFER_OVERRUN encountered
The program '[11592] SmartCart.UWP.exe' has exited with code -1073740791 (0xc0000409).
When I build everything in release except for my UWP project the project will run.
Is this an issue with forms? Has anyone build and run UWP Forms in release mode?
Hi,
1.I built a static library in Xcode. In build settings of Xcode project, I set architectures as ARMV7 + ARM64 for Release device build.I added a simple echo function in objective c class as explained in xamarin bindings sample project. I didn’t add any new target to project .
But I edited existing scheme and chose ‘Release’ as build configuration in ‘Run’.Then built using option Build for Run .That produced .a library file.
2.Then I created bindings library project .The .a file I dragged inside Xamarin bindings library project. As written in documentation ,it automatically created a c# file.
3.I didn’t use existing ApiDefinition.cs . Instead added a new file with interface definition inside it and kept the build Action of that file same as ApiDefinition.cs i.e., ObjcBindingApiDefinition.
I built that binding library. That produced .dll
4.I referenced that dll in my xamarin project . On a button click I , created an instance of the interface defined in binding library. Also , wrote a static function call of echo function.
Since I build my xamarin project with link all setting , I added Touch argument —linkskip=MyBindinglibrarydllname
This compiles well.
But I am getting following linker error in my build output.
MTOUCH : error : Invalid bitcode signature
clang : error : linker command failed with exit code 1 (use -v to see invocation)
error MT5209 : Native linking error : error: Invalid bitcode signature
MTOUCH : error MT5202: Native linking failed. Please review the build log.
In which of the above steps , I need to make change.
i am a beginner, and trying to learn C#, XAML, VS2017, xamarin.forms, SQLite, all at the same time from scratch.
(not in college, just on my own)
on each navigation page, i can see some of the labels displayed.
but when i try to have more than 4 labels, new labels bump off an older one.
i know i'm not getting lost in the weeds of fancy layouts and formatting.
just trying to simply display the data collected so far.
is this some limitation built into XAML?
or am i missing something else entirely?
<StackLayout>
<Label x:Name="name"
FontSize="Medium"/>
<Label x:Name="displaySoulNumber"
FontSize="Medium"/>
<Label x:Name="displayPersonalityNumber"
FontSize="Medium"/>
<Label x:Name="displayPowerNameNumber"
FontSize="Medium"/>
<Label x:Name="displayBirthDayNumber"
FontSize="Medium"/>
<Label x:Name="displayAttitudeNumber"
FontSize="Medium"/>
<Label x:Name="displayLifePathNumber"
FontSize="Medium"/>
<Label x:Name="displayDestinyNumber"
FontSize="Medium"/>
</StackLayout>
//pull from db
name.Text = ConnectionClass.stock.Symbol;
displaySoulNumber.Text = ConnectionClass.stock.DisplaySoulNumber;
displayPersonalityNumber.Text = ConnectionClass.stock.DisplayPersonalityNumber;
displayPowerNameNumber.Text = ConnectionClass.stock.DisplayPowerNameNumber;
displayBirthDayNumber.Text = ConnectionClass.stock.DisplayBirthDayNumber;
displayAttitudeNumber.Text = ConnectionClass.stock.DisplayAttitudeNumber;
displayLifePathNumber.Text = ConnectionClass.stock.DisplayLifePathNumber;
displayDestinyNumber.Text = ConnectionClass.stock.DisplayDestinyNumber;
How to do FAB Android Add/Edit/Delete in 2018?
Hello.
I study a little visual studio for mac. I try to fill the PopUp button with values from the database, but I get an error 42P01: "relation "Data_Base_Name" does not exist". Can someone explain what I'm doing wrong?
conn = new SQLConnector();
var Students = conn.Get_Student();
using (NpgsqlDataReader reader = Students.ExecuteReader()) //error string
{
while (reader.Read())
{
string Student = (string)reader["Name"];
PopUpOutlet.AddItem(Student);
}
}
SQLConnector code:
namespace SQL_project
{
public class SQLConnector
{
NpgsqlConnection connect;
public SQLConnector()
{
NpgsqlConnectionStringBuilder Data = new NpgsqlConnectionStringBuilder();
Data.Host = "localhost";
Data.Port = 5432;
Data.Username = "postgres";
Data.Password="`";
connect = new NpgsqlConnection(Data.ConnectionString);
}
public NpgsqlCommand Get_Student(){
connect.Open();
NpgsqlCommand sCommand = new NpgsqlCommand();
sCommand.Connection = connect;
sCommand.CommandText = @"select * from " + '\u0022' + "Students" + '\u0022';
return sCommand;
}
public void connClose()
{
connect.Close();
}
}
}
Hi guys,
We need to create a Dynamic Object which can use for two-way data-binding,
We found this Git github.com/r-aghaei/DynamicObjectTwoWayDataBinding but for Windows Forms.
Any idea/suggestion for Xamarin.Forms?
We did this pastebin.com/MwxfZ4Gw but we can't make that the binding subscribe to an event propertychanged.
I'm using an api that brings back a photo on Android as Drawable. I'm wanting to know how I convert it ImageSource?
I have problem with FreshMvvm navigation.
I want navigate from page to tabbedPage as hierarchical(save upper title).
await this.CoreMethods.PushNewNavigationServiceModal(tabbedContainer);
it removes title like a modal
await this.CurrentPage.Navigation.PushAsync(tabbedContainer);
it add title one level highter than I want
var tabbedContainer = new FreshTabbedNavigationContainer("activityEditNavigationStack");
Hi,
Is there anyone who used Admob as Portable Class.
I have found a lot of solutions for IOS or Android, but I am junior and I coudnt use in my project. I need portable code.
Please help me.
Hi there.
How do I know that the user pressed the button, "ok", "cancel"? And using this , how can a make a if?
Is it possible (easy?) to change the background color on a Xamarin.Forms Android Date Picker? Right now it is hot pink. Ugh.