Skip to content

[Bug] Gradle Build Failed [cannot find Symbol mUnityPlayer.quit()] #842

@olimpsetz

Description

@olimpsetz

[REQUIRED] Please fill in the following fields:

  • Unity editor version: 2023.2.0b5
  • Firebase Unity SDK version: 11.4.0
  • Source you installed the SDK: .unitypackage
  • Problematic Firebase Component: Messaging
  • Other Firebase Components in use: Auth
  • Additional SDKs you are using: Facebook, Appodeal, Xsolla
  • Platform you are using the Unity editor on: Windows
  • Platform you are targeting: Windows & Android
  • Scripting Runtime: IL2CPP
  • Pre-built SDK from the website
  • Gradle v7.6

[REQUIRED] Please describe the issue here:

An exception occurs when building on Android:

(Please list the full steps to reproduce the issue. Include device logs, Unity logs, and stack traces if available.)

If you have a downloadable sample project that reproduces the bug you're reporting, you will
likely receive a faster response on your issue.

Relevant Code:

C:\Users\user\Documents\Projects\project\Library\Bee\Android\Prj\IL2CPP\Gradle\unityLibrary\src\main\java\com\google\firebase\MessagingUnityPlayerActivity.java:77: error: cannot find symbol
      mUnityPlayer.quit();
                  ^
  symbol:   method quit()
  location: variable mUnityPlayer of type UnityPlayerForActivityOrService
Note: C:\Users\user\Documents\Projects\project\Library\Bee\Android\Prj\IL2CPP\Gradle\unityLibrary\src\main\java\com\unity3d\player\UnityPlayerActivity.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error

photo_2023-08-19_17-16-09

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions