Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors on install from Package Manager (missing .meta files) #3302

Open
JVimes opened this issue May 29, 2024 · 4 comments
Open

Errors on install from Package Manager (missing .meta files) #3302

JVimes opened this issue May 29, 2024 · 4 comments
Labels

Comments

@JVimes
Copy link

JVimes commented May 29, 2024

Describe the bug

When installed via Package Manager (OpenUPM repo), there are errors from the plugin because some .meta files are missing from the package.

To Reproduce
Steps to reproduce the behavior:

  1. Open package manager settings (Edit > Project Settings > Package Manager).
  2. Add an entry for the OpenUPM registry:
    • Name: OpenUPM
    • URL: https://package.openupm.com
    • Scopes: com.google
  3. Open package manager (Window > Package Manager).
  4. Select My Registries:
    image
  5. Select "Google Play Games" and install it.
    image

Expected behavior
No errors.

Observed behavior
There errors:

Asset Packages/com.google.play.games/Proguard has no meta file, but it's in an immutable folder. The asset will be ignored.
Asset Packages/com.google.play.games/Proguard/games.txt has no meta file, but it's in an immutable folder. The asset will be ignored.
Asset Packages/com.google.play.games/Runtime has no meta file, but it's in an immutable folder. The asset will be ignored.
Asset Packages/com.google.play.games/Runtime/Scripts has no meta file, but it's in an immutable folder. The asset will be ignored.
Asset Packages/com.google.play.games/Runtime/Scripts/BasicApi/Player.cs has no meta file, but it's in an immutable folder. The asset will be ignored.
Asset Packages/com.google.play.games/Runtime/Scripts/BasicApi/PlayerProfile.cs has no meta file, but it's in an immutable folder. The asset will be ignored.
Library\PackageCache\[email protected]\Runtime\Scripts\Platforms\Android\AndroidJavaConverter.cs(78,25): error CS0246: The type or namespace name 'Player' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\[email protected]\Runtime\Scripts\Platforms\Android\AndroidJavaConverter.cs(91,25): error CS0246: The type or namespace name 'PlayerProfile' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\[email protected]\Runtime\Scripts\Platforms\Android\AndroidClient.cs(45,26): error CS0246: The type or namespace name 'Player' could not be found (are you missing a using directive or an assembly reference?)
Asset Packages/com.google.play.games/Proguard has no meta file, but it's in an immutable folder. The asset will be ignored.
Asset Packages/com.google.play.games/Proguard/games.txt has no meta file, but it's in an immutable folder. The asset will be ignored.
Asset Packages/com.google.play.games/Runtime has no meta file, but it's in an immutable folder. The asset will be ignored.
Asset Packages/com.google.play.games/Runtime/Scripts has no meta file, but it's in an immutable folder. The asset will be ignored.
Asset Packages/com.google.play.games/Runtime/Scripts/BasicApi/Player.cs has no meta file, but it's in an immutable folder. The asset will be ignored.
Asset Packages/com.google.play.games/Runtime/Scripts/BasicApi/PlayerProfile.cs has no meta file, but it's in an immutable folder. The asset will be ignored.

Versions

  • Unity version: 2022.3.12
  • Google Play Games Plugin for Unity version: 0.11.1

Additional context
I see in Library\PackageCache\[email protected]\ that some files/folders have .meta files, but the ones mentioned in the error messages don't.
image

@JVimes JVimes added the bug label May 29, 2024
@Thaina
Copy link

Thaina commented Jun 14, 2024

This repo has been neglected. It actually not compatible with UPM

I have forked and do all upgrading https://github.com/Thaina/play-games-plugin-for-unity/tree/master

You can compare the change here #3304

@JVimes
Copy link
Author

JVimes commented Jun 14, 2024

@Thaina Thank you. The package in OpenUPM links to this repo. Should it link to your fork?

@Thaina
Copy link

Thaina commented Jun 14, 2024

I don't know if my fork really compatible with OpenUPM, and also who and how to publish this package into openUPM in the first place. Maybe that person can verify if my package should be in OpenUPM or not

I see the name ltmx but I don't know should I contact that person

@Thaina
Copy link

Thaina commented Jun 14, 2024

Instead I would like to recommend you using git dependency instead of openUPM

https://github.com/Thaina/play-games-plugin-for-unity/tree/master?tab=readme-ov-file#fork-for-upgrade-package-and-making-upm-compatiable

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

No branches or pull requests

2 participants