We have now opened GitHub Issues and ask that any new proposals and discussions be opened there.
Existing conversations may remain here, though you are free to migrate them as you see fit to GitHub.
We have now opened GitHub Issues and ask that any new proposals and discussions be opened there.
Existing conversations may remain here, though you are free to migrate them as you see fit to GitHub.
Currently getting this error trying to run my Xamarin app to my iPhone live player.
"AppDelegate.cs(1,1): error: The type or namespace name 'App' could not be found (are you missing a using directive or an assembly reference?)"
My solution builds without errors, so slightly stuck. These errors did not occur until after I updated to the most recent update. Any help is greatly appreciated.
App.xaml.cs:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using COCApp;
using Xamarin.Forms;
namespace COCApp
{
public partial class App : Application
{
public App()
{
InitializeComponent();
MainPage = new NavigationPage(new MainPage());
}
protected override void OnStart()
{
// Handle when your app starts
}
protected override void OnSleep()
{
// Handle when your app sleeps
}
protected override void OnResume()
{
// Handle when your app resumes
}
}
}
AppDelegate.cs
using System;
using System.Collections.Generic;
using System.Linq;
using COCApp;
using Foundation;
using UIKit;
namespace COCApp.iOS
{
// The UIApplicationDelegate for the application. This class is responsible for launching the
// User Interface of the application, as well as listening (and optionally responding) to
// application events from iOS.
[Register("AppDelegate")]
public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate
{
//
// This method is invoked when the application has loaded and is ready to run. In this
// method you should instantiate the window, load the UI into it and then make the window
// visible.
//
// You have 17 seconds to return from this method, or iOS will terminate your application.
//
public override bool FinishedLaunching(UIApplication app, NSDictionary options)
{
global::Xamarin.Forms.Forms.Init();
LoadApplication(new App());
return base.FinishedLaunching(app, options);
}
}
}
I need to access a list of categories and posts in a WordPress page, and I'm using this code,
var result = await client.GetAsync(new Uri(url));
or this code, just for debugging:
webView.Source = any_url;
and I get this error:
12-19 21:54:08.131 I/MonoDroid(26537): UNHANDLED EXCEPTION:
12-19 21:54:08.251 I/MonoDroid(26537): System.ArgumentNullException: Value cannot be null.
12-19 21:54:08.251 I/MonoDroid(26537): Parameter name: key
This only happens with new views. I copied the same code on existing views and the code works. Any suggestion?
Regards.
how can I build with xamarin app that will be exactly that same code to windows 7 (desktop) and android ?
I understand that Xamarin.Form is for android/Ios/WindowsPhone but not for Windows app(win7 that what I need)
thanks!
Hi all
I am just rebuild and getting some error regarding resource file and i have check this location "\AppData\Local\Xamarin\zips" but there is "Zips" does not exists.
May i know how to i get "Zips" file?
Hello Folks,
today i tried the new layout compression feature, the results are quite disappointing.
In my last project, i have some complex view (lots of labels, stacklayout, grids, ecc...). They are working fine in IOS but i wanted to see if i can get more improvements. So i decided to add the magic CompressedLayout.IsHeadless=”true” to every layout without gestures, backgrounds etc...
Long story short: Now the pages are appearing waaay slower than before.
Before the change, when i navigated to a page, the content was immediately visible on screen. After enabling CompressedLayout, when i navigate to a page i see the background for like 2-3 seconds, then the content became visible.
The difference is very noticeable whitout measuring things in code or using inspectors.
Anyone noticed something similar? Its seem very odds to me... Any suggestion?
If you guys wants to try out this feature, use complex views, with lots of layouts to compress.
For now i switched back to my normal development without using CompressedLayout, maybe in future i'll do more tests.
Hi all
I am just rebuild and getting some error regarding resource file and i have check this location "\AppData\Local\Xamarin\zips" but there is "Zips" does not exists.
May i know how to i get "Zips" file?
Hi,
I'm using the the 1.0.507 test build of Xamarin Live Player, and Visual Studio 15.4.1. My problem is I can't run my apps on live player, because it gives me "The type or namespace name xxx could not be found" where xxx is some nuget package name, or in some cases it's purely a referenced library in the project. Any idea what can be done? Is this something that will be fixed?
Emre
I had been working without issue until the latest update for VS 2017 came out, 15.5.2. I chose to perform the update and since have been receiving the following error (Android project):
Severity Code Description Project File Line Suppression State
Error The "ResolveLibraryProjectImports" task failed unexpectedly.
System.IO.FileNotFoundException: Could not load assembly 'Windows.Foundation.UniversalApiContract.winmd, Version=0.0.0.0, Culture=neutral, PublicKeyToken='. Perhaps it doesn't exist in the Mono for Android profile?
File name: 'Windows.Foundation.UniversalApiContract.winmd.dll'
at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve(AssemblyNameReference reference, ReaderParameters parameters) in /Users/builder/data/lanes/5147/c2a33d8e/source/xamarin-android/external/Java.Interop/src/Java.Interop.Tools.Cecil/Java.Interop.Tools.Cecil/DirectoryAssemblyResolver.cs:line 220
at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve(String fullName) in /Users/builder/data/lanes/5147/c2a33d8e/source/xamarin-android/external/Java.Interop/src/Java.Interop.Tools.Cecil/Java.Interop.Tools.Cecil/DirectoryAssemblyResolver.cs:line 160
at Xamarin.Android.Tasks.ResolveLibraryProjectImports.Extract(DirectoryAssemblyResolver res, ICollection1 jars, ICollection
1 resolvedResourceDirectories, ICollection1 resolvedAssetDirectories, ICollection
1 resolvedEnvironments)
at Xamarin.Android.Tasks.ResolveLibraryProjectImports.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext() CoDev.PowerFleetApp.Android
Thinking it may have been an issue with the update, I rolled it back to version 15.4.5, ensuring I did a clean install. No luck.
Anyone else having this issue? Any thoughts as to what I need to do to move on?
p.s. I also attempted a few Nuget updated however latest versions of some of the Android packages will not install because of the version of forms I am on now. Example:
Severity Code Description Project File Line Suppression State
Error Unable to resolve dependencies. 'Xamarin.Android.Support.v4 26.1.0.1' is not compatible with 'Xamarin.Forms 2.5.0.121934 constraint: Xamarin.Android.Support.v4 (= 23.3.0)'. 0
Good day i have a scenrio where my WCF service calls contain too much data for a UWP app to consume. I assume that the problem is not on the service config since i can get the result in android just fine and it only bombs out in the UWP version. Can someone perhaps point me in the right direction here with regards to setting WCF client side settings in Xamarin Forms? I am using the ChannelFactory Class to make the service call
Regards
Hi,
I'm new to Xamarin.
I want to build a simple page that has a button can navigate to another page.
But when i was creating a "Content Page using XAML" (Right click --> Add new items...) for the navigation page.
There was a WARNING message box show up: Exception of type "System.Exception"
And then another warning message show up said something like page1 should be page type, page1 should belong to the project, ... something like that. I don't remember well. Sorry i didn't capture that screen. But i am able to add a Content Page normally.
After i added the Content Page, when starting debugging, there was an error message in the error list told me that "InitializeComponent" does not exist.
If i deleted that Content Page, everything would work normally.
I started to screwing around a bit and found out that if i just add a Content Page using C#, it works well. I know that i can design a content page by coding in c# but since i'm new to this i think maybe write the content in XAML would be better for me.
My question is why my Visual Studio can't compile the "InitializeComponent" in a Content Page using XAML i add, but it can compile "InitializeComponent" in the default MainPage using XAML? And how can i solve this?
Here is the log file i got.!
Changing the iOS Application Name in the Info.plist
file doesn't work. How do I do that?
I do think that, as in Xamarin.Forms.Android, changing the Application Name changes the display name in the Application List. But it doesn't change the name you see from the Launcher.
A very weird scenario... Maybe someone can help. Breaking my head over this.
private BindableProperty IsSearchingProperty =
BindableProperty.Create("IsSearching", typeof(string), typeof(MainPage), "Hello");
public string IsSearching
{
get { return (string)GetValue(IsSearchingProperty); }
set { SetValue(IsSearchingProperty, value); }
}
I binded my IsSearching to a Label in XAML Xamarin view to debug what is going on when I run this method.
private void Button_OnClicked(object sender, EventArgs e)
{
IsSearching = "Method Start Edit";
Task.Run(async () =>
{
await Task.Delay(3000);
IsSearching = "Yeeeeehuuuuuuu!";
});
}
So when the button is clicked the text gets updated, amazing but it only gets updated the second time in like 10-15 seconds when it is supposed to get updated in 3! I have no idea why, I have tried so many options on how to run this but I guess it is something to do with the thread. Tried to execute this code in a simple console app it works perfectly however the problem exists if implemented in a new Xamarin Forms app. No idea what to do.
Hi developers,
I have updated my App from Xamarin-Forms 2.3.4.224 to version 2.5.0.91635 and since then the Android App Buttons, Entries and List Views are not reacting anymore to clicks or swipes or any other Events ... Only the hamburger button works as usual.
My installed Xamarin Version is 4.7.10.38 and I have updated all Android SDKs and Tools.
Has anyone made the same experiences or have an idea what could be wrong?
Generally in Android we can have different folders for layouts depending on the form factor of the device.
So the different versions of a layout file goes into:
layout
layout-hdpi
layout-xhdpi
There can be different layouts for landscape and portrait orientation as well.
What are the options on xamarin forms to handle these kind of situations? How can we render different layout files at the runtime dynamically on xamarin forms project.
Hi List,
i just try to get Prism-Droid + UWP to work.
Update NuGet packages is done.
The build result is:
This project references NuGet package(s) that are missing on this computer.
Use NuGet Package Restore to download them.
For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is ....\packages\Xamarin.Forms.2.3.2.127\build\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+MonoTouch10+Xamarin.iOS10\Xamarin.Forms.targets.
Prism.Forms C:\Users\peter\Documents\Visual Studio 2015\Prism-master\Source\Xamarin\Prism.Forms\Prism.Forms.csproj
In the Project Prism.Forms(Portable) i see missing References
-Xamarin.Forms.Core
-Xamarin.Forms.Platform
-Xamarin.Forms.Xaml
What can i do to fix this error
Thanks in advance
Peter
Hi all,
I am trying to implement Bluetooth functionality into my Xamarin forms project. But I could not crack it out. Can I achieve this by using Dependency Service? Or with the help of any plugin?
Main goals:
1) Search for buletooth connections nearby.
2) Establishing connection or pairing with other Bluetooth device from my mobile.
Thanks in advance.
How to hide date picker cancel button?
Hi,
I have an Android and iOS app built with Xamarin that use async await.
When I debug the Android app using my local IIS as a webserver I get a lot of Task canceled exceptions. Once there's one, every webservice call fails.
If I run the same Android app against the live webserver (hosted on Azure) there is no issue whatsoever.
If I run the iOS app, based on the same code (using XForms), I have no issue at all, even running against the local webserver.
I really need to figure out if this is caused by using local IIS or that something else is going wrong.
Does anyone else have any experience with issues like this? Believe me, I have read everything about async/await and checked the code numerous times to make sure there are no deadlocks etc.
I find it very strange that it is only the combo of Android and local IIS (Windows 10 btw).
Cheers,
Rob