Skip to content

Snappy1

  • Home
  • Android
  • What
  • How
  • Is
  • Can
  • Does
  • Do
  • Why
  • Are
  • Who
  • Toggle search form

[FIXED] android – Job failed with exception: System.Reflection.TargetInvocationException Unity Error

Posted on November 11, 2022 By

Solution 1 :

I just fixed this problem. It turned out to be in my code where I forgot to use Firebase.FirebaseApp.Create(). I hope this helps someone who gets this same problem.

Problem :

I recently got this error:
Job failed with exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. —> System.InvalidOperationException: Insecure connection not allowed
and this warning with it:
Non-secure network connections disabled in Player Settings

This happens anytime I run the game build to android, force resolve, etc..

I am using Unity 2022.1.0b2 and have never gotten this error before.

I have been stuck on this problem for days now and cant find this fix, before that I got a message saying too many error when i build to android but i luckily found a fix by deleting the Plugins folder because it will be created again.

I use firebase database and authentication which when i build to android and put on google play the firebase just doesn’t work and shows nothing (no leader-board and no sign-in/sign-up).
In the unity editor the firebase stuff works and is fine just not in the build.

I also use Unity ADS and Unity IAP, both work after build and in editor.

Comments

Comment posted by olucube.com

I have same error but not using firebase at all

READ  [FIXED] java - How to get closest double values from ArrayList in Android
Powered by Inline Related Posts
Android Tags:android, firebase, unity3d

Post navigation

Previous Post: [FIXED] android developer api – there is a ‘Late Initialization Error’ during flutter development
Next Post: [FIXED] android – How to set SSL pinning using retrofit for Firebase Realtime Database Url?

Related Posts

[FIXED] android – launchFragmentinHiltContainer throws Method addObserver must be called on the main thread Android
[FIXED] android – How to login to web app from native mobile app on firebase Android
[FIXED] Not receiving Firebase cloud push notifications in Android app Android
[FIXED] java.lang.ClassCastException: androidx.appcompat.widget.AppCompatImageButton cannot be cast to android.widget.Button Android
[FIXED] kotlin – Room returns java.lang.Object for all my suspended Dao functions Android
[FIXED] javascript – Not able to pass Multiple image to Server Nodejs Android

Archives

  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022

Categories

  • ¿Cómo
  • ¿Cuál
  • ¿Cuándo
  • ¿Cuántas
  • ¿Cuánto
  • ¿Qué
  • Android
  • Are
  • At
  • C'est
  • Can
  • Comment
  • Did
  • Do
  • Does
  • Est-ce
  • Est-il
  • For
  • Has
  • Hat
  • How
  • In
  • Is
  • Ist
  • Kann
  • Où
  • Pourquoi
  • Quand
  • Quel
  • Quelle
  • Quelles
  • Quels
  • Qui
  • Should
  • Sind
  • Sollte
  • Uncategorized
  • Wann
  • Warum
  • Was
  • Welche
  • Welchen
  • Welcher
  • Welches
  • Were
  • What
  • What's
  • When
  • Where
  • Which
  • Who
  • Who's
  • Why
  • Wie
  • Will
  • Wird
  • Wo
  • Woher
  • you can create a selvedge edge: You can make the edges of garter stitch more smooth by slipping the first stitch of every row.2022-02-04
  • you really only need to know two patterns: garter stitch

Recent Posts

  • What are the main features of Islamic education?
  • Is the Jeep 4xe worth it?
  • How does the ringer work on cast iron?
  • What is the biggest size interior door?
  • Is blue raspberry an original Jolly Rancher flavor?

Recent Comments

No comments to show.

Copyright © 2023 Snappy1.

Powered by PressBook Grid Dark theme