TobiasBuchholz / Plugin.Firebase

Wrapper around the native Android and iOS Firebase Xamarin SDKs
MIT License
211 stars 49 forks source link

Failed to build Android Release thrown BuildConfig error. #225

Closed sakarind closed 10 months ago

sakarind commented 10 months ago

Hi, I developped an Android application based on MAUI .Net 7 which use FCM and Crashlytic. This application works properly in Debug mode. I can send the notification message from Firebase Console website and receieve it on my emulator(Pixel 5-android v33). But I have tried to built in release mode but this error shown. Does any one has any suggestion? Here is the error message I got in release mode(build -c release). Error message Here is my dependencies in App.csproj. Dependencies Here is my App.csproj setting. AppSetting Here is my AndroidManifest setting. AndroidManifest Here is my initalize Firebase Service in MauiProgram. MauiProgram I have added "google-service.json" in this project.

sakarind commented 10 months ago

FIxed by removed all dependencies which related to Firebase Messaging. And remove all files in obj/release folder. Then add Plugin.Firebase again. Build Debug -> Build release -> Done..