Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all 204402 articles
Browse latest View live

CoreCLR Debug Component Missing?

$
0
0

When attempting to debug a Xamarin cross-platform UWP application on the Local Machine, I am encountering a popup error message box that states "Unable to attach to CoreCLR. A debug component is not installed."

I can not find any reports of a similar nature.

This is on VS17 v 15.5.7. Any ideas where and how I get this component installed?


Expandable ListView with Master Detail Page

$
0
0

Hi
How can I apply expandable listview for master detail page?
Sub list inside main list which show or hide when click.
Like picture

Background task even when the app is closed

$
0
0

Hi All,

i am building an Xamarin Forms App which retrieves location data from the device when its running as background service and when its connected to the server it would send the gps data to the server. The functionality of the app must not stop when the app is closed. Can you guys guide me through the process, or provide me some reference or sample code to do this. I am really struggling to make the app run in the background when its closed.

Regards,
Zak

Application could not be uploaded to the device.

$
0
0

Hi

I am seeing this error when I am trying to run my App on a device (iPhone 6s 11.2.6) (I dont see any issues when I am running the App on Simulator)

The IDE am using is Visual Studio 7.3.3 (Build 5) & Xcode 9.3 Beta Version.

error HE0003: Could not load the framework 'DADocSetAccess' (path: /Applications/Xcode-beta.app/Contents/SharedFrameworks/DADocSetAccess.framework/DADocSetAccess): not found.

Please help me to fix this error.

Thank you,

Cannot set shadow direction in Android version of Xamarin.Forms app

$
0
0

I have a custom Frame element with a HasShadow set to true and ShadowRadius to 1.

Under Android this correctly renders a Shadow under the frame.
I'm also seeing a shadow under the element in iOS (it's using a custom renderer for iOS specifically to alter the shadow, but it's not using any custom renderers with Android). This custom iOS renderer has allowed me to set the shadow direction as desired.

Now I would like to have that shadow under Android (or both OS) only be to the right side of the frame and not in the other directions (the shadow is heaviest under the element right now). How do I do this Android? Can I do it without implementing a custom renderer?

I have tried to find some sort of ShadowDirection property. I have also tried using a custom renderer for Android but so far it doesn't render the shadows correctly at all.

Unable to Load SDK Information Android SDK Manager in Visual Studio 2017

$
0
0

I am running Visual Studio Enterprise 2017 (Version 15.5.7). I am coming from a corporate network and when I try to open the Android SDK Manager, I see the error - "Loading SDK component information failed. Please retry". (Sorry, I can't insert photos yet.)

When I connect my machine to a connection outside of our corporate network (on LTE hotspot), I am able to load and view that screen without problem.

I suspect our corporate firewall is blocking something. We tried tracing connections coming out of my machine while trying to open that screen and hitting retry. We were unable to see anything.

Does anyone know where I can find more detailed logs on this error on my side? Or what URL specifically it may be trying to reach out to? I need to know specifically which URL it's trying to access to get the networking folks to create the exception.

I did find this:
<Unfortunately, I'm not able to post links yet, but it's to a Microsoft URL that describes whitelist of URLs for Visual Studio/Azure>

We confirmed that everything under the "Install Visual Studio" section are whitelisted (both Microsoft and non-Microsoft domains).

Thanks!

I can't generate an android apk for distributed my application, error at "Archive..."

$
0
0

Error:

Build started: Project: AppNivel.Droid, Configuration: Release Any CPU ------
Consider app.config remapping of assembly "System.Runtime, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" from Version "4.0.0.0" [] to Version "4.1.0.0" [C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\System.Runtime.dll] to solve conflict and get rid of warning.
Consider app.config remapping of assembly "System.Net.Http, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" from Version "1.5.0.0" [] to Version "4.0.0.0" [C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Net.Http.dll] to solve conflict and get rid of warning.
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2052,5): warning MSB3247: Found conflicts between different versions of the same dependent assembly. In Visual Studio, double-click this warning (or select it and press Enter) to fix the conflicts; otherwise, add the following binding redirects to the "runtime" node in the application configuration file:
AppNivel.Droid -> D : \Desenvolvimento\Projetos\NívelApp\AppNivel\AppNivel.Droid\bin\Release\AppNivel.Droid.dll
No way to resolve conflict between "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" and "mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e". Choosing "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" arbitrarily.
No way to resolve conflict between "System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" and "System.Net.Http, Version=1.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". Choosing "System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" arbitrarily.
Consider app.config remapping of assembly "System.Net.Http, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" from Version "1.5.0.0" [] to Version "4.0.0.0" [C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Net.Http.dll] to solve conflict and get rid of warning.
Consider app.config remapping of assembly "Newtonsoft.Json, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed" from Version "8.0.0.0" [] to Version "9.0.0.0" [D:\Desenvolvimento\Projetos\NívelApp\packages\Newtonsoft.Json.9.0.1\lib\portable-net45+wp80+win8+wpa81\Newtonsoft.Json.dll] to solve conflict and get rid of warning.
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(2245,3): warning MSB3247: Found conflicts between different versions of the same dependent assembly. In Visual Studio, double-click this warning (or select it and press Enter) to fix the conflicts; otherwise, add the following binding redirects to the "runtime" node in the application configuration file:
========== Build: 1 succeeded, 0 failed, 1 up-to-date, 0 skipped ==========
Build started.
Consider app.config remapping of assembly "System.Runtime, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" from Version "4.0.0.0" [] to Version "4.1.0.0" [C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\System.Runtime.dll] to solve conflict and get rid of warning.
Consider app.config remapping of assembly "System.Net.Http, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" from Version "1.5.0.0" [] to Version "4.0.0.0" [C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Net.Http.dll] to solve conflict and get rid of warning.
Found conflicts between different versions of the same dependent assembly. In Visual Studio, double-click this warning (or select it and press Enter) to fix the conflicts; otherwise, add the following binding redirects to the "runtime" node in the application configuration file:

Retrieve image to imageview from json

$
0
0

Hi evrybody,
Please Help me to show my Image in imageview from Json.
Thank you


"your solution is currently using Xamarin components, which is no longer supported"

$
0
0

After updating to VS for Mac 7.4 this morning, I now see this popup message when I load my solution.
Following this document, I don't have any visible "Component" folders in any of the projects in the solution.
How would I find said Xamarin components? Is this a VS for Mac bug?

Sqlite incompatibility or missing configuration?

$
0
0

This app works just fine on android, but when I try to use Xamarin Live Player, it gives me this message :

Start (Mobile.Android, LGE LG-H422 Player, ).
Attempting connection to debug address: 10.2.1.78:37847.
Connected to: 10.2.1.78:37847.
Deploying C:\Projetos\ECS_APP\Mobile\Mobile.Android\Mobile.Android.csproj...
Got device info: LGE LG-H422 Player (Android) @ 10.2.1.78:37847
Synchronizing files...
Building and running...
Built with 2 messages.
(1,1): error: Failed to load assembly from stream: System.AggregateException: One or more errors occurred. ---> System.AggregateException: One or more errors occurred. ---> System.IO.DirectoryNotFoundException: Could not find a part of the path "/data/data/com.xamarin.live/files/.nuget/packages/sqlitepclraw.lib.e_sqlite3.android/1.1.5/lib/MonoAndroid/SQLitePCLRaw.lib.e_sqlite3.dll".
at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0017d] in <896ad1d315ca4ba7b117efb8dacaedcf>:0
at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share) [0x00000] in <896ad1d315ca4ba7b117efb8dacaedcf>:0
at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
at System.IO.File.OpenRead (System.String path) [0x00000] in <896ad1d315ca4ba7b117efb8dacaedcf>:0
at <StartupCode$Continuous-Core-Droid>.$LocalFileSystem+Upsight-IFileSystem-OpenReadAsync@49-1.Invoke () [0x00012] in <5a25f3b111b47c3aa7450383b1f3255a>:0
at System.Threading.Tasks.Task`1[TResult].InnerInvoke () [0x0000f] in <896ad1d315ca4ba7b117efb8dacaedcf>:0
at System.Threading.Tasks.Task.Execute () [0x00010] in <896ad1d315ca4ba7b117efb8dacaedcf>:0

am I missing some configuration or its just incompatibility with SQLite .net?

Visual Studio 15.6 Causes iOS Deployments to Hang VS IDE

$
0
0

Just upgraded to VS Pro 15.6. Previously no complaints from iOS connection.

Now I get a complaint in the Xamarin console when I load a project / reconnect to the Mac - "Could not install Xcode tool package 'MobileDevice.pkg'
" and the Connection dialog displays the following.

Opening XCode on the Mac does not solve the issue.

Compiles / deploys work fine once, then VS hangs with a 'Not responding' white bar in the IDE.

Update: Got VS Connection dialog to quit complaining by opening up Xcode.app, Navigating to the /Packages directory and manually installing MobileDevice.pkg. Still hangs after 2nd deployment.

Why do I get a prompt for "Credentials required for the repository" while checking out from GIT?

$
0
0

I have a SSH Key configured. Pull requests from GIT Bash work perfectly fine using SSH, but when I try to add the repository to Xamarin studio and checkout, I get a prompt saying "Credentials required for the repository" it has just a cancel and and OK button, on clicking OK I get an error prompt saying "Version control operation failed: UsernamePasswordCredentials contains a null username or password."

However if I use a simple http URL to add the repository to checkout using Xamarin things work perfectly fine. Although its very slow since its on http.

Can someone please guide me through configuring GIT repository using SSH for Xamarin Studio and get rid of this error?

I can't open my Media Asset Catalog in Visual Studio 2017. Why?

$
0
0

I've been dealing with a problem for a little over a week now and have finally narrowed it down to images within my application. I'm currently unable to deploy my application in an Ad-Hoc manner.

After some sequence of events, unfortunately I can't remember said sequence, I became unable to open my Media asset catalog in Visual Studio. I previously had done this multiple times to add various, bundled images to use with different screen resolutions. I wrote it off as unimportant because I could deploy to the device in debug mode and see all of my images, whether chosen via UIImage.FromFile("") or UIImage.FromBundle("").

I've recently discovered that either because of this bug, or in relation to this bug, when I build and deploy the application in Ad-Hoc mode (build -> upload IPA -> answer compliance questions -> download for internal testing) I have no pictures and, subsequently, trying to access an image via the FromFile() or FromBundle() methods does not work and crashes the device.

Does anyone have any idea why this is the case? The physical files that were referred to in my Media asset catalog are still alive and well, I just can't see them in the asset catalog editor. It will not even open.

Any idea or guidance is much appreciated. Thanks.

Where can I get the .msi file for Xamarin 4.5.0.476

$
0
0

I currently need to build against 4.5.0.476 and unfortunately I upgraded VS2015 which took me to 4.9, which doesn't support Xamarin Components. So, I need to reinstall the previous version. Where can I obtain the 4.5.0.476 installer? The default for VS2015 is 4.2.

Thanks in advance for the assistance!

Xav.

Show List in ListView

$
0
0

`using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;

namespace App1
{
public partial class MainPage : ContentPage
{
ObservableCollection Items;
bool isLoading;
Page page;
public MainPage()
{
InitializeComponent();
Items = new ObservableCollection();
var listview = new ListView();

        listview.ItemsSource = Items;
        listview.ItemAppearing += (sender, e) =>
        {
            if (isLoading || Items.Count == 0)
                return;

            //hit bottom!
            if (e.Item.ToString() == Items[Items.Count - 1])
            {
                LoadItems();
            }
        };

        // The root page of your application
        page = new ContentPage
        {
            Content = new StackLayout
            {
                VerticalOptions = LayoutOptions.Center,
                Children = {
                    listview
                }
            }
        };




        ///////////////// Here I must implement List in ListView





        LoadItems();
    }
    async Task LoadItems()
    {
        isLoading = true;
        page.Title = "Loading";

        //simulator delayed load

        for (int i = 0; i < 20; i++)
        {
            Items.Add(string.Format("Item {0}", Items.Count));
        }
        page.Title = "Done";
        isLoading = false;
    }
}

}
`


Where to find 'Missing Marketing Icon'

$
0
0

hi
I published an application to apple app store and I got a message which says that I'm missing marketing icon as I'm using iOS 11.
where can I add this 1024X1024 png marketing icon in xamarin studio?
I'm using xamarin studio 6.3

Why is Visual Studio Emulator for Android not receiving updates?

$
0
0

Why is Visual Studio Emulator for Android not receiving new Android images?

This is the only emulator that works with hyper-v? I need hyper-v for the VMs that I run. Disabling hyper-v is not an acceptable solution.

Jeff

File Transfer over USB

$
0
0

I have an android device with a USB cradle. When the device connects in the cradle I want to transfer files to the computer the USB/cradle is connected to. Any thoughts?

Xamarin Forms w/ .NET 2.0 Standard - Play Background Audio?

$
0
0

Is there a way to play Audio (and background playing) Files in Xamarin Forms with code in the .NET 2.0 standard project? Without coding each iOS or Android platform specific?

Thank you.

FirebaseApp is not initialized on real devices

$
0
0

Hello! I'm trying to add push notifications in Xamarin.Forms.
On Genymotion it's work fine but on real devices i have an error:
Default FirebaseApp is not initialized.Make shure to call FirebaseApp.initializeApp(Context)

google-services.json is present in Android project with GoogleServicesJson BuildAction

My MainActivity:

     public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity
        {
            internal static MainActivity Instance { get; private set; }
            internal static FirebaseInstanceId FirebaseInstance { get; private set; }

            public static int CurrentUserId { get; set; }
            protected override async void OnCreate(Bundle bundle)
            {
                base.OnCreate(bundle);           

                TabLayoutResource = Resource.Layout.Tabbar;
                ToolbarResource = Resource.Layout.Toolbar;

                VideoViewRenderer.Init();
                global::Xamarin.Forms.Forms.Init(this, bundle);
                string dbPath = FileAccessHelper.GetLocalFilePath("LocalDataBase.db");

                LoadApplication(new App());

                Xamarin.Forms.Application.Current.On<Xamarin.Forms.PlatformConfiguration.Android>().UseWindowSoftInputModeAdjust(WindowSoftInputModeAdjust.Resize);
                UserDialogs.Init(this);
                CachedImageRenderer.Init();           

            //on real devices it return  null
                var app = Firebase.FirebaseApp.InitializeApp(this.ApplicationContext);

                Instance = this;
            }
Viewing all 204402 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>