Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Monday, October 7, 2019 3:43 PM
Hello, I got an unpredictable error when i build the android project in xamarin forms. error is looks like,
All replies (10)
Tuesday, October 8, 2019 12:00 PM
@DiptejThakkar you can add the color in the colors.xml
like following code.
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="statusBarBackground">@color/statusbarcolor</item>
</style>
Then, use it in the item of style.
<item name="statusBarBackground">@color/statusbarcolor</item>
Friday, October 11, 2019 2:04 PM
@LeonLu Thanks for your reply, I found the solutions related to monoversion conflict. i replace the monoversion81 to monoversion90. then its work perfectly. Thanks once again.
Friday, October 11, 2019 2:09 PM
@DipakPatil You are welcome, please mark your reply as answer, it will help others who have similar issue. But i recommand you to set the color in the colors.xml file, it more compliance with specifications
Tuesday, October 22, 2019 1:10 PM
We are experiencing the same issue but setting the target framework doesn't appear to be helping:
error APT0000: expected reference but got (raw string) #000000. error APT0000: failed linking references.
We've set the target framework to monandroid90 for everything in the packages.config , but no luck.
Tuesday, October 22, 2019 1:50 PM
Make sure you replace all references in BOTH the packages.config and the .csproj then delete Bin, Obj, .VS folders, clean and rebuild.
Tuesday, December 3, 2019 2:13 PM
In your res/values/styles.xml you can add <style name="Widget.Support.CoordinatorLayout" parent="android:Widget"> <item name="statusBarBackground">@null</item> </style>
Wednesday, December 18, 2019 1:57 PM
When installing xamarin.forms 4.4 that error happened in my solution
My solution was: - Migrate packages.config to PackageReference... - Restart VS2019 - Clean solution and rebuild
Sunday, January 5, 2020 4:51 PM
I got this after updating from Xamarin.Forms 4.3 to 4.4 and @rmonfort solution worked for me also.
Tuesday, January 28, 2020 12:59 PM
I managed to solve the problem with the suggestion of @rmonfort , Thank you very much
Monday, February 3, 2020 5:40 AM
@rmonfort s answer fixed this for me. Thanks!