Skip to content
This repository has been archived by the owner on Feb 4, 2023. It is now read-only.

Download firebase SDK, the Unity project has problems #21

Open
akira32 opened this issue Jan 31, 2021 · 3 comments
Open

Download firebase SDK, the Unity project has problems #21

akira32 opened this issue Jan 31, 2021 · 3 comments

Comments

@akira32
Copy link

akira32 commented Jan 31, 2021

I download firebase sdk and mechahamster-master.zip and import them to Unity . But Unity appears some errors as below:

Severity Code Description Project File Line Suppression State Error CS0117 'FirebaseApp' does not contain a definition for 'CheckDependencies' Assembly-CSharpC:\Unity\test\FirebaseTest\Assets\Hamster\Scripts\MainGame.cs 203 Active Error CS0117 'FirebaseApp' does not contain a definition for 'CheckDependencies' Assembly-CSharpC:\Unity\test\FirebaseTest\Assets\Hamster\Scripts\MainGame.cs 207 Active Error CS1061 'FirebaseApp' does not contain a definition for 'SetEditorDatabaseUrl' and no accessible extension method 'SetEditorDatabaseUrl' accepting a first argument of type 'FirebaseApp' could be found (are you missing a using directive or an assembly reference?) Assembly-CSharpC:\Unity\test\FirebaseTest\Assets\Hamster\Scripts\MainGame.cs 247 Active Error CS1061 'LeaderboardController' does not contain a definition for 'AddScore' and no accessible extension method 'AddScore' accepting a first argument of type 'LeaderboardController' could be found (are you missing a using directive or an assembly reference?) Assembly-CSharpC:\Unity\test\FirebaseTest\Assets\Hamster\Scripts\States\UploadTime.cs 50 Active Error CS1061 'LeaderboardController' does not contain a definition for 'AllScoreDataPath' and no accessible extension method 'AllScoreDataPath' accepting a first argument of type 'LeaderboardController' could be found (are you missing a using directive or an assembly reference?) Assembly-CSharpC:\Unity\test\FirebaseTest\Assets\Hamster\Scripts\States\UploadTime.cs 36 Active Error CS1061 'LeaderboardController' does not contain a definition for 'enabled' and no accessible extension method 'enabled' accepting a first argument of type 'LeaderboardController' could be found (are you missing a using directive or an assembly reference?) Assembly-CSharpC:\Unity\test\FirebaseTest\Assets\Hamster\Scripts\States\UploadTime.cs 35 Active Error CS0234 The type or namespace name 'Editor' does not exist in the namespace 'Firebase.Unity' (are you missing an assembly reference?) Assembly-CSharpC:\Unity\test\FirebaseTest\Assets\Hamster\Scripts\MainGame.cs 20 Active Error CS0234 The type or namespace name 'Editor' does not exist in the namespace 'Firebase.Unity' (are you missing an assembly reference?) Assembly-CSharpC:\Unity\test\FirebaseTest\Assets\Hamster\Scripts\MainGame.cs 20 Active Error CS0234 The type or namespace name 'Leaderboard' does not exist in the namespace 'Firebase' (are you missing an assembly reference?) Assembly-CSharpC:\Unity\test\FirebaseTest\Assets\Hamster\Scripts\States\UploadTime.cs 18 Active Error CS0234 The type or namespace name 'Leaderboard' does not exist in the namespace 'Firebase' (are you missing an assembly reference?) Assembly-CSharpC:\Unity\test\FirebaseTest\Assets\Hamster\Scripts\States\UploadTime.cs 18 Active Error CS0246 The type or namespace name 'LeaderboardController' could not be found (are you missing a using directive or an assembly reference?) Assembly-CSharpC:\Unity\test\FirebaseTest\Assets\Hamster\Scripts\States\UploadTime.cs 30 Active Error CS0246 The type or namespace name 'LeaderboardController' could not be found (are you missing a using directive or an assembly reference?) Assembly-CSharpC:\Unity\test\FirebaseTest\Assets\Hamster\Scripts\States\UploadTime.cs 32 Active Error CS0246 The type or namespace name 'UserScore' could not be found (are you missing a using directive or an assembly reference?) Assembly-CSharpC:\Unity\test\FirebaseTest\Assets\Hamster\Scripts\States\UploadTime.cs 73 Active Error CS0246 The type or namespace name 'UserScore' could not be found (are you missing a using directive or an assembly reference?) Assembly-CSharpC:\Unity\test\FirebaseTest\Assets\Hamster\Scripts\States\UploadTime.cs 74 Active

@JasonHoku
Copy link

Same exact issue here, can't get this project running at all.

@ghost
Copy link

ghost commented Mar 24, 2021

Are you running the correct Unity version?

@emstuart
Copy link

emstuart commented May 13, 2022

The LeaderboardController script is missing from the prefab. Also wasn't sure about the missing Firebase.Leaderboard namespace. Turns out they're here ...
https://github.com/FirebaseExtended/unity-solutions/tree/master/Firebase_Leaderboard
I copied the script content over to get passed those issues but now have problems with missing Unity.Tasks. I had to remove that included dll because of a conflicted with a default Unity package (I'm trying to open it in Unity 2021 but this project references Unity 2017 which probably wasn't an issue back then).

"Library\PackageCache\[email protected]\Runtime\Core\IUnityServices.cs(11,9): error CS0433: The type 'Task' exists in both 'Unity.Tasks, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' and 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants