I have updated Unity from 2019 to 2020 LTS and at the same time Firebase SDK to 10.3 from 8.10. Now I have an issue with the following lines:
FirebaseApp.DefaultInstance.Options.DatabaseUrl = new Uri ("https://my-app-name.firebaseio.com/");
reference = FirebaseDatabase.DefaultInstance.RootReference;
Anything after either of these lines does not execute on the Android build. There was no issue before the update, and this is an app that has been using Firebase Realtime Database with no issues until now. Also weirdly there is no such issue on Unity Editor. The lines are executed there.
I don't see any crash on Android Logcat or Crashlytics. What could be the problem here?
The issue was solved by doing a new clean install of firebase. I was able to remove it completely via external dependancy manager -> version handler.
Related
On Android Studio's suggestion, I am trying to install the Kotlin 1.3.70-realease-Studio3.6-1 , after Downloading it says "plugin update was not installed. See log..." and the log is lengthy and i cant understand it.
Anyone knows the fix?
I had the same error message. There is also nothing in the logs. All you need to do is to restart Android Studio, Release 1.3.70 is very likely already installed, that's why you are getting the error.
After restarting, open the Tools menu, Kotlin, Configure Kotlin Plugin Updates and you will see that Release 1.3.70 is installed and that there are no updates available.
I am new to firebase. I tried to integrate firebase SDK 5.0.0 and firebase SDK 4.5.0 with Unity 2017.4.0f1 and Unity 5.5.3p4 it shows some error "Gradle failed to fetch dependencies". It is working fine on Unity Editor. I tried the quick samples and it successfully added data to database and auth is working fine on Unity editor but when I build an apk and run on actuall android device it doesn't work. It shows that "one or more firebase dependencies are not present". It have spent a lot of time googling the issue but haven't find any useful solution.
I solved this issue. In case if someone having this problem.
Please do the following:
1- Update Play service resolver
2- Delete the file located on "C:\Users{username}.gradle\wrapper\dists\gradle-4.2.1-bin\dajvke9o8kmaxbu0kc5gcgeju\gradle-4.2.1-bin.zip
3- Asset->Play Service Resolver->Android -> Force resolve
this will resolve the issue hopefully. worked for me.
I'm using Fabric with both Android Studio and Eclipse, and the plugin was really an easy tool, From a couple of weeks the Plugin for Android Studio is not working any more, I have tried to install/uninstall several times with no success, this mainly happened after the plugin is moved into Repositories.
Every time on the start up of Android Studio there is a floating message says
"Fabric for Android Studio threw an uncaught NullPointerException.
Disable Plugin"
, And in Event Log a message appears every 5 seconds
"NullPointerException: update failed for AnAction with
ID=Actions.Crashlytics.CrashlyticsAction"
I already read this Question with no success
Exception in plugin Fabric for Android Studio
I have posted a question too here in there Forums
https://twittercommunity.com/t/fabric-for-android-studio-threw-an-unchaught-nullpointerexcpetion/58893
I hope i can find a way to install it again without problems
Thanks.
I have contacted Fabric support and that was their reply
Hmm seems like something odd's going on here! This error is usually
due to an out of date plugin or a caching issue with Android studio.
I'd like to have you try deleting the cache, removing the plugin and
reinstalling it.
To clear the cache, delete com.crashlytics here:
~/Library/Caches/com.crashlytics
Can you then uninstall and reinstall the plugin and try it again?
After trying this, the plugin was installed successfully.
When I attempt to Sign in in Google Plugin in Android Studio for login services it is throwing the error:
IllegalArgumentException: Argument for #NotNull parameter 'userEmail' of com/google/gct/login/CredentialedUserRoster.setActiveUser must not be null
I have tried the following steps:
Restarting Android Studio
Restarting my Mac machine.
Disabling and enabling plugin for Google Login
Clearing cache and preferences along with logs of Android Studio in ~/Library/
I have been trying to fix this from last two days now. None of the above worked. I am using Android Studio v1.3.2 latest build on 19 August.
I think this issue is not related to code. I had the same problem and that log is shown by Google Login plugin.
My recommendation is to uninstall and install the last version.
Other options here.
I am facing an issue with the facebook sdk v4.2.4 with unity4.3.
I am developing this in Android.
What I did : I followed the steps that were told in the tutorial.
The app key was added correctly and the keyhash was also correctly generated from the cmd console.
When I tap log in, A blank screen comes, asks for permissions, I tap on yes and then returns back to the main menu (Interactive console scene). What I see is that the filed isLoggedIn is FALSE. I did it many times and found the same result on UNITY4.3.
On going through the forums I found that there is an issue with Unity4.3, so I downgraded it to Unity4.2 and tested the SAME PACKAGE (4.2.4) and it worked fine with me as i can log in and isLoggedIn returns true. (Unity 4.2.x)
As a result to get this PLUGIN WORKING, I had to downgrade it from 4.3.0 (please note that i had tested it in unity4.3.0,.1,.2,.3 and still the same result) to 4.2.2 to get the Facebook sdk working.
The real problem ?
I WANT THE PLUGIN to work correctly in unity4.3.x and not in unity4.2.x. The funny part is that there are no error logs or warning logs being generated when trying this on unity4.3.x.
Most Important : During my first attempt, I downloaded the Facebook SDK v4.3.6 and tried making a build BUT I got an
Win32 Exception which pointed at javac.exe
. So I had to go with v4.2.4 as i found this one stable (better than the upgraded one and bad for unity4.3.x).
So If any of you guys (are facing/have faced) this issue, help me out of it and let me know how you guys resolved it for Unity4.3 (Android) with the latest sdk. Any help would highly be appreciated.
To be specific I'm using jdk1.7 and android tools revision r22. Please don't advise me to downgrade any of them.
Thanks in Advance.
Well It seems oddly strange that I'm about to answer my own question but I have no choice.
Anyways, The problem was with my jdk 1.6 that I had first installed 2 years ago, which i deleted it(with out uninstalling). And after that i had installed jdk7. Strange, right?
So according to the new sdk it was seeming as if java6 was installed on my machine as it had the entry stored in it but the files were missing, and Hence the build error for android. [Please note that the previous fd sdk versions 4.2.x and below, were not following this rule or whatever.]
So I got the missing dll's for jdk6(All entries of the updates related to it and base installation entry) and the chunk data was removed from my system.
So here's the link which I followed.
After that I integrated the newest sdk with with unity4.3.3 and everything worked fine(Though i had some issues with the keyhash generation on the editor, which resulted into me to edit the cs script a bit).
All in all, it works well. I've fixed a bug with the package v 4.3.6. So if you have any queries or if you want the package, You can ask me for the help anytime.