Comments (5)
Hi @TobiasBuchholz , I would like to debug my app with a direct reference to your project, but I'm still not able to build it
Done building target "_UpdateAndroidResgen" in project "Plugin.Firebase.csproj" -- FAILED.
I'm building the app on VS For Mac, so I wonder if that's something related to file encoding...
Do you have any thoughts on this ?
Here is the exact error I have when building Plugin.Firebase.csproj :
Target _UpdateAndroidResgen:
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1245,2): error : Root element is missing.
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1245,2): error : at System.Xml.XmlTextReaderImpl.Throw (System.Exception e) [0x00027] in /Users/builder/jenkins/workspace/build-package-osx-mono/2020-02/external/bockbuild/builds/mono-x64/mcs/class/referencesource/System.Xml/System/Xml/Core/XmlTextReaderImpl.cs:2503
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1245,2): error : at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo (System.String res) [0x00000] in /Users/builder/jenkins/workspace/build-package-osx-mono/2020-02/external/bockbuild/builds/mono-x64/mcs/class/referencesource/System.Xml/System/Xml/Core/XmlTextReaderImpl.cs:2511
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1245,2): error : at System.Xml.XmlTextReaderImpl.ParseDocumentContent () [0x0035d] in /Users/builder/jenkins/workspace/build-package-osx-mono/2020-02/external/bockbuild/builds/mono-x64/mcs/class/referencesource/System.Xml/System/Xml/Core/XmlTextReaderImpl.cs:3742
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1245,2): error : at System.Xml.XmlTextReaderImpl.Read () [0x0008c] in /Users/builder/jenkins/workspace/build-package-osx-mono/2020-02/external/bockbuild/builds/mono-x64/mcs/class/referencesource/System.Xml/System/Xml/Core/XmlTextReaderImpl.cs:1168
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1245,2): error : at System.Xml.Linq.XDocument.Load (System.Xml.XmlReader reader, System.Xml.Linq.LoadOptions options) [0x00016] in /Users/builder/jenkins/workspace/build-package-osx-mono/2020-02/external/bockbuild/builds/mono-x64/external/corefx/src/System.Private.Xml.Linq/src/System/Xml/Linq/XDocument.cs:427
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1245,2): error : at System.Xml.Linq.XDocument.Load (System.String uri, System.Xml.Linq.LoadOptions options) [0x0000f] in /Users/builder/jenkins/workspace/build-package-osx-mono/2020-02/external/bockbuild/builds/mono-x64/external/corefx/src/System.Private.Xml.Linq/src/System/Xml/Linq/XDocument.cs:222
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1245,2): error : at System.Xml.Linq.XDocument.Load (System.String uri) [0x00000] in /Users/builder/jenkins/workspace/build-package-osx-mono/2020-02/external/bockbuild/builds/mono-x64/external/corefx/src/System.Private.Xml.Linq/src/System/Xml/Linq/XDocument.cs:190
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1245,2): error : at Xamarin.Android.Tools.AndroidAppManifest.Load (System.String filename, Xamarin.Android.Tools.AndroidVersions versions) [0x0001c] in /Users/runner/work/1/s/xamarin-android/external/xamarin-android-tools/src/Xamarin.Android.Tools.AndroidSdk/AndroidAppManifest.cs:86
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1245,2): error : at Xamarin.Android.Tasks.GenerateLibraryResources.RunTaskAsync () [0x00120] in <7a79b94231674f8abef431c7441b514f>:0
Done building target "_UpdateAndroidResgen" in project "Plugin.Firebase.csproj" -- FAILED.
There is a similar issue here but I was not able to find anything to fix :/
from plugin.firebase.
Well, finally I have replaced the target framework "MonoAndroid90" to "MonoAndroid10.0" in your Plugin.Firebase.csproj and it fixed the issue...
As I guess it's related to my setup, I will close the ticket !
from plugin.firebase.
That was probably a piece of luck... workaround is finally false positive !
I have open a ticket in Xamarin.Android repo to get their expertise on this, but same, they are not able to reproduce the issue with your library...
However, I'm finally now able to isolate the issue !
It happens as soon as I reference the following android package: Xamarin.GooglePlayServices.Auth
v119.2.0.3
I will try to see if updating one of the references does help
from plugin.firebase.
After I spent 10 hours on this mystical issue, I finally spotted it !
It is difficult to accept that only one library was causing the whole failure of MSBuild Task for Android, without any hint, even with diagnostic verbosity...
Anyway, I have tested the solution and it solved it, @TobiasBuchholz could you please update the Xamarin.GooglePlayServices.Auth
library to v120.2.0.2 ?
Can't believe I'm finally able to run your sample project xD
from plugin.firebase.
Actually, I've been able to fix it by reverting Xamarin.GooglePlayServices.Auth
to 119.0.0
This avoids you to support MonoAndroid12.0 instead of MonoAndroid90
from plugin.firebase.
Related Issues (20)
- FirebaseAnalytics null exception on Android .NET8 HOT 9
- Firestore, issue when reading an Integer Dictionary field HOT 1
- Plugin not building with Visual Studio 17.10.4 HOT 5
- Show an image on iOS notifications HOT 2
- Error : clang++ exited with code 1 on Maui .Net8 HOT 1
- null
- Persistent Invalid Cloud Messaging Token Returned on iOS HOT 4
- Build Process Hanging at File Extraction GAppM-10.24.0.tgz HOT 2
- Crash when use different plist file
- Enable smartphone vibrate on Android on fcm retrieval
- FCM update 2.0.4 -> 3.0.0
- Error loading partial Info.plist template file on version 3.0.0
- Plugin.Firebase is not available in .net8-ios HOT 1
- Firebase.Crashlytics: Java.Lang.IllegalStateException + System.Reflection.TargetInvocationException HOT 1
- Enabling and Disabling Firebase Performance Monitoring
- CloudMessaging Android notification sound HOT 1
- Exception - Couldn't retrieve FCM token HOT 2
- Making push notifications work after device reboot when using Plugin.Firebase HOT 4
- Token generated on iOS is similar to Android token. Cannot received push notification. HOT 3
- [Installation Issue]: Firebase.Analytics, Privacy Policy not found in .NET 8.0 Maui Project HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plugin.firebase.