-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Android] Java.Lang.ClassNotFoundException when using ToolbarPlacement="Bottom" #5742
Comments
Could you please attach a zipped reproduction? Thanks! |
For what it's worth, the problem does not occur when building with VS2017. |
Great, we'll keep an eye out for the sample project. Thanks!! |
I think similar like you need add |
@PureWeen thoughts? |
@cornem Have you tried on the latest stable VS 2019? Do you have multidex enabled on release? If so can you try proguard and uncheck multidex to see if that works? What's the API version of the device you are running on? If you target API 28 and update to support 28 do you still see the same issue? |
In my case I got this error after turning on ProGuard when I have ToolbarPlacement="Bottom". As @bill2004158 mentions, adding following lines to proguard config fixed it for me: |
I just got hit by the same problem. Bottom Tabbar plus Proguard resulted in the exception mentioned above. A word of caution to all who would add the proguard.cfg from Visual Studio: the IDE will add a BOM character by default and the java process will exit with code 1. |
Man, I thought I had general Linker problems for so long and kept putting off linking the app. (Could never reproduce in debug mode.) Who knew it was this class and the bottom tabbar. |
This is also happening in VS for mac 8.1.4 |
I'm also facing this exact same problem, I have tried using the facebook proguard version(found in a nuget package), adding proguard.cfg. Multidex is also disabled on all configurations. |
Description
I want to change my Xamarin Forms application to show the
TabbedPage
toolbar at the bottom. As per the instructions, I have added the following:Debug builds work fine and the toolbar is now at the bottom of the screen (nice). However, when I make a release build, my application crashes as soon as I open the
TabbedPage
. I get this crash report in App Center:I have tried to add a method to my MainActivity, like so:
It makes no difference. The app crashes with the same error. Cleaning, removing
bin
andobj
folders makes no difference either.Steps to Reproduce
ToolbarPlacement
toBottom
TabbedPage
.Expected Behavior
The page loads correctly showing the toolbar at the bottom of the screen.
Actual Behavior
The app crashes.
Basic Information
The text was updated successfully, but these errors were encountered: