Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all 91519 articles
Browse latest View live

Getting Mono.AndroidTools.RequiresUninstallException on Android

$
0
0

Today I started getting this deployment error on android:

Severity Code Description Project File Line Suppression State
Error ADB0030: Mono.AndroidTools.RequiresUninstallException: The installed package is incompatible. Please manually uninstall and try again.
at Mono.AndroidTools.Internal.AdbOutputParsing.CheckInstallSuccess(String output, String packageName) in E:\A_work\267\s\External\androidtools\Mono.AndroidTools\Internal\AdbOutputParsing.cs:line 339
at Mono.AndroidTools.AndroidDevice.<>c__DisplayClass95_0.b__0(Task1 t) in E:\A\_work\267\s\External\androidtools\Mono.AndroidTools\AndroidDevice.cs:line 753 at System.Threading.Tasks.ContinuationTaskFromResultTask1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at AndroidDeviceExtensions.d__11.MoveNext() in E:\A_work\267\s\External\androidtools\Xamarin.AndroidTools\Devices\AndroidDeviceExtensions.cs:line 187
--- End of stack trace from previous location where exception was thrown ---
at AndroidDeviceExtensions.d__11.MoveNext() in E:\A_work\267\s\External\androidtools\Xamarin.AndroidTools\Devices\AndroidDeviceExtensions.cs:line 194
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at AndroidDeviceExtensions.d__11.MoveNext() in E:\A_work\267\s\External\androidtools\Xamarin.AndroidTools\Devices\AndroidDeviceExtensions.cs:line 203
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Xamarin.AndroidTools.AndroidDeploySession.d__112.MoveNext() in E:\A_work\267\s\External\androidtools\Xamarin.AndroidTools\Sessions\AndroidDeploySession.cs:line 414
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Xamarin.AndroidTools.AndroidDeploySession.d__106.MoveNext() in E:\A_work\267\s\External\androidtools\Xamarin.AndroidTools\Sessions\AndroidDeploySession.cs:line 217
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Xamarin.AndroidTools.AndroidDeploySession.d__104.MoveNext() in E:\A_work\267\s\External\androidtools\Xamarin.AndroidTools\Sessions\AndroidDeploySession.cs:line 119 0

It only happens in Debug, but in Release i can deploy and run the app just fine.
Why is this happening?

This morning i installed the Android SDK 10.0 and I suspect it started after that, so now I uninstalled it, but I still can't deploy because of the same error.
Other apps from the same PC can be deployed just fine, so I don't get it...

I did check this out
https://docs.microsoft.com/en-us/xamarin/android/errors-and-warnings/adb0030

but I don't even have my app installed on the device...

Thanks


Parameter error

$
0
0

Hello,

i have an error .

What does this mean and what to do about it ?

If file excist else open other one

$
0
0

I am using this to open a file in google docs in a webview

Webview.Source = "https://docs.google.com/document/d/1R_veGr31e39d4gJa0CtAdzU5BxDl5ZV-2bssofU8wSU/edit?usp=sharing";

But when it is not there i want to open another one as backup.
When removing the first from google docs it is not opening the second one

Trying to make a if statement , no luck

` if (File.Exists("https://docs.google.com/document/d/1R_veGr31e39d4gJa0CtAdzU5BxDl5ZV-2bssofU8wSU/edit?usp=sharing"))
{
Webview.Source = "https://docs.google.com/document/d/1R_veGr31e39d4gJa0CtAdzU5BxDl5ZV-2bssofU8wSU/edit?usp=sharing";

            }
          else
            Webview.Source = "https://docs.google.com/document/d/1JtPBbacWjjE1RnqT7MlliexLFk618iNS5yUBBCkh1bs/edit?usp=sharing";
        {

            }
    }`

How to get instance of bound object?

$
0
0

I have a ContentPage defined in .xaml that contains a ListView.

<ListView ItemsSource="{Binding Groups}" 
        IsGroupingEnabled="true" 
        GroupDisplayBinding="{Binding Title}"
        HasUnevenRows="true">
            <ListView.ItemTemplate>
                <DataTemplate>
                    <ViewCell>
                        <yds:ZonesPagesItem/>
                    </ViewCell>
                </DataTemplate>
            </ListView.ItemTemplate>
</ListView>

This ListView contains items that are ContentViews (see above : yds.ZonesPagesItem), defined in another xaml :

<ContentView (...)>
    <StackLayout Orientation="Horizontal" > 
        <Image Source="{Binding ImageUrl}" />
        <Label Text="{Binding Title}"></Label>
    </StackLayout>
</ContentView>

In my Xaml ContentView, I can "bind" to bound object properties succesfully.
But I also need to manipulate programatically the bound object in c# code behind code. My problem is that I don't know how to get instance of bound object in C# side.

public partial class ZonesPagesItem : ContentView
{
    public ZonesPagesItem()
    {
        InitializeComponent();

        var boundObject = this.GetBoundObject();
        // Do some business logic job wih boundObject...
        // It does not compile! GetBoundObject() does not exist.
    }
}

See upper, I wish GetBoundObject() method exists!
This is what I'm looking for.
Any idea?

I am getting warning from main thread.

$
0
0

I have many apis calls in a single page. The approach i am currently using is start a await Task.Run(() thread, do fetch operation, start Main Thread and do UI operations. The app works smooth but after few navigation, it stops responding. With some research it found thus can be due to main thread. Is this the correct way implementation, that i am using?

 await Task.Run(() =>
                {
fetchdata();
fetchData2();
fetchData3();

MainThread.BeginInvokeOnMainThread(() =>
                    {

//UI changes
}:

});

How do you set STYLE property for a control in codebehind

$
0
0

How do I set a style in codebehind?

IE. if I want to set a Label Style in XAML I would use:

and my resource dictionary would have:

...

I have tried
var x = new Label()
{
Text = "Some Text",
Style = "tealSearchBarStyle" / Style = tealSearchBarStyle / Style = new Style("tealSearchBarStyle")
}

and none of those seem to work.

美国内布拉斯加大学文凭毕业.证/成绩单#薇信6956.40122办理美国UNL毕业.证成绩单;文,凭/留信网认.证/使馆认证公.证

$
0
0

美国内布拉斯加大学文凭毕业.证/成绩单#薇信6956.40122办理美国UNL毕业.证成绩单;文,凭/留信网认.证/使馆认证公.证

美国伦斯勒理工学院文凭毕业.证/成绩单#薇信6956.40122办理美国RPI毕业.证成绩单;文,凭/留信网认.证/使馆认证公.证

$
0
0

美国伦斯勒理工学院文凭毕业.证/成绩单#薇信6956.40122办理美国RPI毕业.证成绩单;文,凭/留信网认.证/使馆认证公.证


Issue setting colors in XF

$
0
0

I am having some issues with setting the status bar color and the selected tab underline color in xamarin forms, especially android.

Status Bar
I thought that setting the colorPrimaryDark would set the status bar background color:
<item name="colorPrimaryDark">@color/primaryDark</item>

Which i set to yellow as a test, but instead it look black, with no text. If I swipe down from the top of the screen then somehow the text (time, battery, carrier etc show).

Tab Underline
I do this but the tab underline is still white:

  <!--Selected tab underline-->
  <style name="AppCompatDialogStyle" parent="Theme.AppCompat.Light.Dialog">
    <item name="colorAccent">@color/accent</item>
  </style>

How can I fix this? How do I set the tab underline color and the status bar color in android and iOS?
Thanks

美国华盛顿大学文凭毕业.证/成绩单#薇信6956.40122办理美国UW毕业.证成绩单;文,凭/留信网认.证/使馆认证公.证

$
0
0

美国华盛顿大学文凭毕业.证/成绩单#薇信6956.40122办理美国UW毕业.证成绩单;文,凭/留信网认.证/使馆认证公.证

美国加州大学戴维斯分校文凭毕业.证/成绩单#薇信6956.40122办理美国UCD毕业.证成绩单;文,凭/留信网认.证/使馆认证公.证

$
0
0

美国加州大学戴维斯分校文凭毕业.证/成绩单#薇信6956.40122办理美国UCD毕业.证成绩单;文,凭/留信网认.证/使馆认证公.证

美国加州大学欧文分校文凭毕业.证/成绩单#薇信6956.40122办理美国UCI毕业.证成绩单;文,凭/留信网认.证/使馆认证公.证

$
0
0

美国加州大学欧文分校文凭毕业.证/成绩单#薇信6956.40122办理美国UCI毕业.证成绩单;文,凭/留信网认.证/使馆认证公.证

美国加州大学文凭毕业.证/成绩单#薇信6956.40122办理美国UCSB毕业.证成绩单;文,凭/留信网认.证/使馆认证公.证

$
0
0

美国加州大学文凭毕业.证/成绩单#薇信6956.40122办理美国UCSB毕业.证成绩单;文,凭/留信网认.证/使馆认证公.证

办理澳洲格里菲斯大学毕业证,Q微信695640122,GU毕业证|《格里菲斯大学毕业证Marquette学历认证》|格里菲斯大学文凭办理学位证办理GU留信网认证GU大学毕业证GU成绩单

$
0
0

办理澳洲格里菲斯大学毕业证,Q微信695640122,GU毕业证|《格里菲斯大学毕业证Marquette学历认证》|格里菲斯大学文凭办理学位证办理GU留信网认证GU大学毕业证GU成绩单

办理澳洲詹姆斯库克大学毕业证,Q微信695640122,JCU毕业证|《詹姆斯库克大学毕业证Marquette学历认证》|詹姆斯库克大学文凭办理学位证办理JCU留信网认证JCU大学毕业证JCU成绩单

$
0
0

办理澳洲詹姆斯库克大学毕业证,Q微信695640122,JCU毕业证|《詹姆斯库克大学毕业证Marquette学历认证》|詹姆斯库克大学文凭办理学位证办理JCU留信网认证JCU大学毕业证JCU成绩单


办理澳洲詹姆斯库克大学毕业证,Q微信695640122,JCU毕业证|《詹姆斯库克大学毕业证Marquette学历认证》|詹姆斯库克大学文凭办理学位证办理JCU留信网认证JCU大学毕业证JCU成绩单

$
0
0

办理澳洲詹姆斯库克大学毕业证,Q微信695640122,JCU毕业证|《詹姆斯库克大学毕业证Marquette学历认证》|詹姆斯库克大学文凭办理学位证办理JCU留信网认证JCU大学毕业证JCU成绩单

办理澳洲莫道克大学毕业证,Q微信695640122,Murdoch毕业证|《莫道克大学毕业证Marquette学历认证》|莫道克大学文凭办理学位证办理Murdoch留信网认证Murdoch大学毕业证M

$
0
0

办理澳洲莫道克大学毕业证,Q微信695640122,Murdoch毕业证|《莫道克大学毕业证Marquette学历认证》|莫道克大学文凭办理学位证办理Murdoch留信网认证Murdoch大学毕业证M

办理澳洲昆士兰科技大学毕业证,Q微信695640122,QUT毕业证|《昆士兰科技大学毕业证Marquette学历认证》|昆士兰科技大学文凭办理学位证办理QUT留信网认证QUT大学毕业证QUT成绩单

$
0
0

办理澳洲昆士兰科技大学毕业证,Q微信695640122,QUT毕业证|《昆士兰科技大学毕业证Marquette学历认证》|昆士兰科技大学文凭办理学位证办理QUT留信网认证QUT大学毕业证QUT成绩单

办理澳洲阿德莱德大学毕业证,Q微信695640122,Adelaide毕业证|《阿德莱德大学毕业证Marquette学历认证》|阿德莱德大学文凭办理学位证办理Adelaide留信网认证Adelaide

$
0
0

办理澳洲阿德莱德大学毕业证,Q微信695640122,Adelaide毕业证|《阿德莱德大学毕业证Marquette学历认证》|阿德莱德大学文凭办理学位证办理Adelaide留信网认证Adelaide

办理澳洲墨尔本大学毕业证,Q微信695640122,Melbourne毕业证|《墨尔本大学毕业证Marquette学历认证》|墨尔本大学文凭办理学位证办理Melbourne留信网认证Melbourne

$
0
0

办理澳洲墨尔本大学毕业证,Q微信695640122,Melbourne毕业证|《墨尔本大学毕业证Marquette学历认证》|墨尔本大学文凭办理学位证办理Melbourne留信网认证Melbourne

Viewing all 91519 articles
Browse latest View live


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