I am having trouble getting to firebase assistant in android studio 3.1.3. Whenever I launch firebase from studio it shows an IDE error. I have tried everything. Applied plugin into gradle file but even then I am having trouble getting to firebase inside the android studio. You know what I mean. Any helpful suggestions will be appreciated.
Related
So I'm building an application with android studio and I am having problems connecting to Firebase. This means that Firebase assistant is not in Tools. Now, all my firebase plugins are enabled, I have logged into android studio with my Google account. And I saw a suggestion that enabling Google Repository in SDK-> Tools will work.
Now, 'Google repository' is missing in the Tools section. I tried updating SDK Tools/Platform tools (as advised by someone on this forum) I still couldn't find the Google Repo.
System info: Linux
I am using Visual Studio 2019 on Windows, developing an App using Xamarin Forms, for Android and iOS. Everything is the latest version.
I am trying to use Firebase to add Push Notification functionality. I have been able to get this functioning for the Android App, but whatever I do seems to fail / not work for iOS.
I have tried using both Xamarin.Firebase.iOS.CloudMessaging and Plugin.FirebasePushNotification with the same result. Starting from a basic app created in Visual Studio, as soon as I add the basic code for the iOS project, the app stops working and just times out after 17 seconds with running any of the project code (no breakpoints are hit).
I also tried downloading this demo app https://github.com/jfversluis/XFFCMPushNotificationsSample. I created my versions of google-services.json (Android) and GoogleService-Info.plist (iOS). The Android app runs but the iOS app does not (times out after 17 seconds).
Having tried so many different samples, examples, options, etc - I am at a complete loss as to what the issue might be. The situation is not helped by me being new to App development & Xamarin Forms!
I appreciate that I haven't added any "I tried this" code, but I'm hoping someone can help me with debugging this. Visual Studio doesn't appear to show anything, can I get more helpful info from the iPhone?
Edit:
For iOS,
I have created a Key and enabled Apple Push Notifications.
I have uploaded the key to the iOS project in Firebase (Cloud Messaging).
I have downloaded the GoogleService-Info.plist file and added it to the iOS project in Visual Studio, and set it to BundleResource
I have enabled Push Notifications in Entitlements.plist
I have enabled Background Modes & Remote Notifications in Info.plist
I am using Automatic Provisioning
I have checked that Bundle Identifier is correct
I have added FirebaseAppDelegateProxyEnabled to info.plist
EDIT 2:
I have manged to get an error message, which happens during the call to
FirebasePushNotificationManager.Initialize(options, true);
{System.NullReferenceException: Object reference not set to an instance of an object.
at Plugin.FirebasePushNotification.FirebasePushNotificationManager.Initialize (Foundation.NSDictionary options, System.Boolean autoRegistration) [0x00029] in /Users/runner/runners/2.169.1/work/1/s/Plugin.FirebasePushNotification/FirebasePushNotificationManager.ios.cs:141
at MyApp.iOS.AppDelegate.FinishedLaunching (UIKit.UIApplication app, Foundation.NSDictionary options) [0x00014] in \MyKRing.iOS\AppDelegate.cs:34 }
Edit: This question refers to Flutter apps.
When adding Firebase to my Android app, the instructions say: "Finally, press "Sync now" in the bar that appears in the IDE"
However, no bar appears in Android Studio.
It seems that there used to be a button in the tool bar: Where is a "Sync project with gradle files" button in Android Studio 3?
And that more recently it could be found at "File > Sync Project with Gradle Files": Syncing Android Studio project with Gradle files
But neither of those options exist in Android Studio as of April 4, 2020. The closest thing I can find is an item in the dropdown menu that says "Sync with File System."
I thought maybe it was the same thing, but they are not:
What is the difference between Sync project with gradle files and Sync with File System?
Any ideas how I can sync project with gradle files in Android Studio in April 2020?
Thank you!
According to your picture, it looks like you are using flutter and not native android development. If you want to add firebase analytics to your flutter app then you need to go to the pubspec.yaml file, and you can add the dependency:
dependencies:
firebase_analytics: ^5.0.11
After adding it a top bar will appear to that will automatically execute pub get
https://pub.dev/packages/firebase_analytics#-installing-tab-
what I do is open the android folder of our Flutter project as a new project,
** Archivo> Abrir> Proyect-android **
in this way the IDE recognizes it, and enables the Gradle synchronization button ( only enabled in native android projects)
Image Example
once synced, you can close the native Android project, and it would be synced to your Flutter project
I'm trying to integrate Firebase Analytics to my xamarin forms application. For Xamarin.IOS I'm using Xamarin.Firebase.iOS.Analytics version 5.0.1
And getting the below error while building.
./iOS/MTOUCH: Error MT3001: Could not AOT the assembly '/iOS/obj/iPhone/Debug/mtouch-cache/Build/Firebase.Analytics.dll' (MT3001)
Not able to understand what could go wrong. Is there any configuration changed I have to do.?
Firstly ,make sure that your VS and Xcode are up-to-date. If the issue continue, you can right
click your project ->options->iOS build ->Linker Behavior
set the value as Don’t Link. In addition, delete the folder obj and bin and rebuild your project again.
I have VS2015 and VS2013 installed side-by-side. In VS2013 I have a list of emulators to start my app and it works awesome.
But VS2015 only has device in the list. How do I add the phone emulators to Visual Studio 2015?
UPDATE:
After playing around some more I've dug up some new findings.
Creating a new universal JavaScript project has the same issue
Creating a new universal C# project DOES show a list of emulators.
This worked for me!
Although I had CoreCon\12 and vs2015.3 instead of CoreCon\11 and vs2012
Maybe you could fix this issue by deleting this folder
C:\Users\\AppData\Local\Microsoft\Phone Tools\CoreCon\11.0
Then open VS2012 again.
If not repairing is always recommended
original post : no-emulator-lists-to-deploy-windows-phone-app
Rerun the installer. Make sure that the desired options are checked (probably either Windows Phone 8.1 Emulator or Microsoft Visual Studio Emulator for Android, you don't say which emulator you are interested in). If in doubt, just check everything.
If you had unloaded your start project, it may not be your start project anymore after reloading. So do a right click -> Set as Startup Project and then hopefully the emulators will reappear.