xamarin.android

Xamarin Android build just hangs when linker is enabled

試著忘記壹切 提交于 2020-03-19 17:48:45
问题 I have a Xamarin.Android project that hangs when attempting to build the solution in Release configuration. I've narrowed it down to an issue with the linker - if the linker is switched off, it all builds fine. I've done the build with higher verbosity and even using msbuild from the command line (which suggests it's not an IDE problem), the result is the same. The build output just up to the point where it hangs reads: Target _LinkAssembliesShrink: Building target "_LinkAssembliesShrink"

The type initializer for 'SQLite.SQLiteConnection' threw an exception

浪子不回头ぞ 提交于 2020-03-18 11:36:53
问题 I'm trying to implement an incredibly basic use of SQLite. I have a Button and an EditText . I want to store the contents of the EditText OnClick . I'm following this: https://developer.xamarin.com/guides/android/application_fundamentals/data/part_3_using_sqlite_orm/ and https://developer.xamarin.com/guides/xamarin-forms/application-fundamentals/databases/ I cannot get passed the following starting code without getting the subsequent errors: var db = new SQLiteConnection (dbPath); Error: The

Android BottomNavigationView One tab with different unselected/selected colors

纵饮孤独 提交于 2020-03-18 04:33:48
问题 I am attempting to match a design like this.. Notice that the "selected tab color tint" is a blue, but the center tab's icon should always be the green circle with the white clock in the middle. I've tried a number of things. First trying to do it programmatically by using a layer-list XML resource that had the green circle and clock PNG resource, which didn't work at all. Then I just got the designer to give me the full icon(clock and green circle), but now I'm running into this issue..

Android BottomNavigationView One tab with different unselected/selected colors

别说谁变了你拦得住时间么 提交于 2020-03-18 04:32:24
问题 I am attempting to match a design like this.. Notice that the "selected tab color tint" is a blue, but the center tab's icon should always be the green circle with the white clock in the middle. I've tried a number of things. First trying to do it programmatically by using a layer-list XML resource that had the green circle and clock PNG resource, which didn't work at all. Then I just got the designer to give me the full icon(clock and green circle), but now I'm running into this issue..

Invalid value 'armeabi' in $(AndroidSupportedAbis). This ABI is no longer supported. Xamarin.Forms - VS2019

删除回忆录丶 提交于 2020-03-18 04:21:11
问题 I have a Mobile App built with Xamarin.Forms when I am trying to upgrade my project from VS2017 to VS2019 I get this error in Android Project Invalid value 'armeabi' in $(AndroidSupportedAbis). This ABI is no longer supported. Please update your project properties I tried to delete bin and obj folders to force the project to rebuild everything, but the error still appears Can I get an explanation about the error above and how to solve it? Note: the error doesn't appear in VS2017 回答1: armeabi

Invalid value 'armeabi' in $(AndroidSupportedAbis). This ABI is no longer supported. Xamarin.Forms - VS2019

放肆的年华 提交于 2020-03-18 04:20:27
问题 I have a Mobile App built with Xamarin.Forms when I am trying to upgrade my project from VS2017 to VS2019 I get this error in Android Project Invalid value 'armeabi' in $(AndroidSupportedAbis). This ABI is no longer supported. Please update your project properties I tried to delete bin and obj folders to force the project to rebuild everything, but the error still appears Can I get an explanation about the error above and how to solve it? Note: the error doesn't appear in VS2017 回答1: armeabi

Xamarin.Android编译提示找不到mscorlib.dll.so文件

被刻印的时光 ゝ 提交于 2020-03-16 15:18:08
某厂面试归来,发现自己落伍了!>>> Xamarin.Android编译提示找不到mscorlib.dll.so文件 错误信息:AOT module ‘mscorlib.dll.so’ not found: Cannot load library 出现这个错误,需要在Android项目属性窗口的Android Options选项页中,不要勾选 Use fast Deployment选项。 来源: oschina 链接: https://my.oschina.net/u/1585857/blog/750021

Xamarin.Android提示找不到mono.Android.Support.v4

瘦欲@ 提交于 2020-03-16 15:06:52
某厂面试归来,发现自己落伍了!>>> Xamarin.Android提示找不到mono.Android.Support.v4 错误信息:Error: Exception while loading assemblies: System.IO.FileNotFoundException: Could not load assembly ‘Mono.Android.Support.v4, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065’. Perhaps it doesn’t exist in the Mono for Android profile 从Xamarin.Android 5.1开始,已经没有mono.Android.Support.v4了,使用Xamarin.Android.Support.v4替代。所以,需要使用NuGet安装该组件。 来源: oschina 链接: https://my.oschina.net/u/1585857/blog/738311

Cant get mediaplayer sound on Android 9,10 Xamarin

假如想象 提交于 2020-03-16 07:11:01
问题 Im using this code on the android 8 and below but on Android version 9+ its not working. MediaPlayer player3; player3 = new MediaPlayer(); player3.SetDataSource(url); player3.SetAudioStreamType(Stream.Music); player3.Completion += mediaPlayer_Completion; player3.PrepareAsync(); player3.Start(); EDIT: Im trying to reproduce a audio stream link. The player doesn't do anything. The same code it works fine on another android versions. 回答1: After Android 9 (API level 28), cleartext support is

Cant get mediaplayer sound on Android 9,10 Xamarin

拜拜、爱过 提交于 2020-03-16 07:10:07
问题 Im using this code on the android 8 and below but on Android version 9+ its not working. MediaPlayer player3; player3 = new MediaPlayer(); player3.SetDataSource(url); player3.SetAudioStreamType(Stream.Music); player3.Completion += mediaPlayer_Completion; player3.PrepareAsync(); player3.Start(); EDIT: Im trying to reproduce a audio stream link. The player doesn't do anything. The same code it works fine on another android versions. 回答1: After Android 9 (API level 28), cleartext support is