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. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Unity Project - Android Studio build crash on google sign in

Discussion in 'Android' started by ramioooz, Nov 12, 2017.

  1. ramioooz

    ramioooz

    Joined:
    Feb 15, 2015
    Posts:
    29
    Hello Everyone,

    My game has playgames for unity plugin integrated.
    I can build a signed apk using unity without any problem. and the game is working just fine. you can find the link here :
    https://play.google.com/store/apps/details?id=play.TheEgg

    but Now I wanted to use Android Studio to make some changes in the game before building.

    * I managed to export my game to Android Studio
    * I managed to build back a signed apk using Android Studio

    but the generated apk crashes everytime I try to signinto google.
    here is the Android Studio logcat just before and after the crash :
    Code (CSharp):
    1. 11-12 15:07:20.659 826-1686/? W/ActivityManager:   Force finishing activity play.TheEgg/com.google.firebase.MessagingUnityPlayerActivity
    2. 11-12 15:07:20.999 826-913/? D/ISSUE_DEBUG: InputChannelName : 46e299d Application Error: play.TheEgg
    3. 11-12 15:07:21.209 826-913/? D/StatusBarManagerService: manageDisableList userId=0 what=0x0 pkg=Window{46e299d u0 d0 Application Error: play.TheEgg}
    4. 11-12 15:07:21.289 826-912/? W/ActivityManager: Activity pause timeout for ActivityRecord{8491214 u0 play.TheEgg/com.google.firebase.MessagingUnityPlayerActivity t540 f}
    5. 11-12 15:07:21.299 826-913/? V/WindowStateAnimator: Finishing drawing window Window{46e299d u0 d0 Application Error: play.TheEgg}: mDrawState=DRAW_PENDING
    6. 11-12 15:07:21.449 826-913/? V/WindowStateAnimator: Finishing drawing window Window{46e299d u0 d0 Application Error: play.TheEgg}: mDrawState=HAS_DRAWN
    7. 11-12 15:07:21.569 826-912/? V/MARsPolicyManager: CurrentImportantPackage play.TheEgg -in latest protected packageslist for SPCM!
    8. 11-12 15:07:22.399 1464-1464/? W/ResourcesManager: getTopLevelResources: /data/app/play.TheEgg-1/base.apk / 1.0 running in com.android.systemui rsrc of package null
    9. 11-12 15:07:28.479 826-1690/? I/WindowState: WIN DEATH: Window{1ff2a74 u0 d0 play.TheEgg/com.google.firebase.MessagingUnityPlayerActivity}
    10. 11-12 15:07:28.479 826-1690/? W/WindowManager: Force-removing child win Window{51e79e0 u0 d0 SurfaceView} from container Window{1ff2a74 u0 d0 play.TheEgg/com.google.firebase.MessagingUnityPlayerActivity}
    11. 11-12 15:07:28.479 826-2194/? I/ActivityManager: Process play.TheEgg (pid 3945)(adj 11) has died(228,167)
    12. 11-12 15:07:28.489 826-2194/? D/ActivityManager: isAutoRunBlockedApp:: play.TheEgg, Auto Run ON
    my game also has the latest version of firebase sdk integrated.

    I hope I can find some help.
    Thank You
     
  2. ramioooz

    ramioooz

    Joined:
    Feb 15, 2015
    Posts:
    29
    am I the only one ever face this problem... ?
    this is strange o_O