-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
System.MissingMethodException: Method 'Android.App.Notification/Builder.SetChannelId' not found. #155
Comments
@jelkevdh - This is not enough information to solve this issue. Please mention which API version you are building and using, and which device this occurs on. Does it occur on all devices/APIs? Please load up the Toasts project source code and try to figure out the error as well. Then you could submit a PR with the actual bug fix. Otherwise this error likely won't be solved, because I can not duplicate it. |
I have the exact same bug, with a (almost) blank project (.NET Standard), with all component up-to-date, using the simple example in readme of this repo. |
What is interesting is this commit from Jan 2018: a466278#diff-eb4edc0732b64df8b7078b5537ddb7f5R223 This actually adds a comment about a runtime version of this exception, but now something else has changed and it won't link anymore. I have been using 3.3.0 since December, and suddenly I can't build anymore as the linker isn't happy. I haven't changed any versions of Android support libraries, so it might even be a change to the Xamarin linker which is now stricter in a later patch version of VS. |
As an aside, I have lifted my minimum supported Android version to 6.0 (API Level 23 - Marshmellow) and it links fine now. I was using Android 5.0 (Level 21) previously. |
I'm getting the above error and I tried @mgoodfellow suggestion but still no avail on Android. |
@tidusjar Some other things I did - I built using Android 8 Oreo SDK, and I also forced the Target Android version to Android 8. I also removed the bin/obj folders by hand rather than cleaning the solution! Also building on latest VS2017 15.6.5 + tools I'm using Xamarin.Android.Support.v7.AppCompat 25.4.0.2 as well - might have some relevance as that is its dependency? |
I dropped down to 3.2.1 |
Same error here. Same version of @mgoodfellow, did his suggestion but did not work. Version 3.2.1 also did not work. |
Same error here, are there any solutions? |
@cassionandi I would write a dependency service that creates toasts. This is what I've started doing when I run out of options. I did this recently when I found that the xam.plugins.messaging plugin was forcing my xamarin ios project to want to install .netstandard 1.6 and a bunch of other packages. HERE is a stack overflow showing you how to create toasts using a dependency service in iOS (look at Alex Chengalan's solution). iOS is always the most difficult for me so that is where I start. If I can find an easy solution for iOS it's normally even easier in Android so then I proceed. |
@helzgate I am using this kind of solution for a while. For iOS the Toast.iOS did the Toast-like Android to me without any effort. Recommended. |
Version 3.2.1 works fine, but versions 3.3.0 and higher have the following exception:
The text was updated successfully, but these errors were encountered: