I have a Xamarin Android application with Xamarin Forms. After the update from Xamarin Forms 3.4.0.1029999 I have entries in my Resource.Designer like this:
// aapt resource value: 0x7F030220
public const int bottomtab.navarea = 2130903584;
// aapt resource value: 0x7F030221
public const int bottomtab.tabbar = 2130903585;
With these I get a lot of errors like this:
I assume that this is because of the point. Funny enough the build is successful nonethless. How can I solve this errors?
Edit: the Link to the project: https://github.com/MoneyFox/MoneyFox
Follow these steps every time you update Xamarin Forms
This appears to be a bug that was introduced recently with a change to the BottomTabLayout.axml file, ultimately causing the generated design file to use
.
characters instead of_
characters. More details here: https://github.com/xamarin/xamarin-android/issues/3007#issuecomment-486622711The Xamarin engineers are aware of the problem and have a fix lined up that should be released soon, but in the meantime, you can fix this problem by falling back to the old
aapt
generator by following these steps:Unload Project
. If the project disappears from the IDE, make sure that the solution is showing all files and not just files in the project.Edit Project
to open the .csproj file.PropertyGroup
tag, add in the following:Reload Project
.If all goes well, the errors should correct themselves now. You may have to clean and build, but in my experience, the correction was immediate once the Android project was reloaded. Note that according to the bug report, the
aapt
generator will be slower, which might be noticeable if changes are made toaxml
files and the Design Time Build is running.