Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more..
    Dismiss Notice
  3. Dismiss Notice

Question build the apk error notifications

Discussion in 'Android' started by dorisdabao, Aug 4, 2022.

  1. dorisdabao

    dorisdabao

    Joined:
    Jan 5, 2022
    Posts:
    49
    When I build the apk with "com.unity.mobile.notifications": "2.0.0", everything works fine.

    But when I build the apk after upgrading to "com.unity.mobile.notifications": "2.0.2" I get the following error

    Note: G:\CR_Online\Temp\gradleOut\unityLibrary\src\main\java\com\unity3d\player\UnityPlayerActivity.java uses or overrides obsolete APIs. Note: For details, recompile with -Xlint:deprecation. Note: G:\CR_Online\Temp\gradleOut\unityLibrary\src\main\java\com\unity\androidnotifications\UnityNotificationManager.java uses unchecked or unsafe operations. Note: For details, recompile with -Xlint:unchecked.
     
    pandolfini likes this.
  2. davidajr1

    davidajr1

    Joined:
    Aug 17, 2022
    Posts:
    2
    this error if you read through it is because your key manager key is not the proper format for unity graple. you need to go into the build settings - player settings navigate to the android publish settings select custom keystore and build a key for your app and then build. you can also do this through edit - project settings - player. none of the video's i have watched on building an oculus app explains this. but having been an adroid developer since 2010 and having built many android apps i realized i had this type of problem before.