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.

Question Huawei from UPD missing DRM SDK, HUAWEI Account API and crashing after start

Discussion in 'Unity Distribution Portal (UDP)' started by starmindfr, Nov 10, 2020.

  1. starmindfr

    starmindfr

    Joined:
    Nov 7, 2016
    Posts:
    38
    Hello All

    I am trying to integrate a game on HUAWEI portal using UDP

    All is fine by now with same game on google play

    When i test game on Sandbox , unity editor, and phone before repacking in UDP all is fine

    When i repack it in UDP portal, the new APK load fine and just close when running HUAWEI check.

    When sending the new APK provided by UDP i still get missing SDK :
    - DRM SDK
    - HUAWEI Account API

    It's more or less what i have without using UDP (but at least it will not crash if i dont use the UDP repack feature)

    So i end up with 2 big issues :
    - "Repack" from UDP brake it
    - As it's a "paid" app i need to enable DRM SDK and UDP seems not adding it, neither adding Account API

    So any way to get it working from UDP ?

    Code (CSharp):
    1. 2020-11-10 17:12:21.936 12939-13018/? I/UnityDistPlatform: [HUAWEI] appRuntimeAppRunning
    2. 2020-11-10 17:12:21.938 12939-13018/? I/UnityDistPlatform: [HUAWEI] {"c...,"event_type":"runtime","platform":"Android","system_info":"samsung SM-G973F","sdk_dist":"assetstore","target_store":"Huawei","vr":false,"ts":111,"source":"sdk","duration":1627}
    3. 2020-11-10 17:12:22.021 12939-12939/? I/UnityDistPlatform: [HUAWEI] onUpdateInfo result, huawei status: 3, rtnCode: 0
    4. 2020-11-10 17:12:22.098 12939-13092/? E/UnityDistPlatform: [HUAWEI] [CDP]Succeeded.
    5. 2020-11-10 17:12:23.461 12939-12939/? E/AndroidRuntime: FATAL EXCEPTION: main
    6.    Process: com.xxx.huawei, PID: 12939
    7.    java.lang.Error: FATAL EXCEPTION [main]
    8.    Unity version     : 2020.1.7f1
    9.    Device model      : samsung SM-G973F
    10.    Device fingerprint: samsung/beyond1ltexx/beyond1:7.1.2/PPR1.180610.011/G973FXXU3ASIG:user/release-keys
    11.    Build Type        : Release
    12.    Scripting Backend : IL2CPP
    13.    ABI               : armeabi-v7a
    14.    Strip Engine Code : true
    15.  
    16.    Caused by: java.lang.NoSuchMethodError: No static method parseAuthResultFromIntent(Landroid/content/Intent;)Lcom/huawei/hmf/tasks/Task; in class Lcom/huawei/hms/support/hwid/HuaweiIdAuthManager; or its super classes (declaration of 'com.huawei.hms.support.hwid.HuaweiIdAuthManager' appears in /data/app/com.xxx.huawei-2/base.apk)
    17.        at com.unity.udp.huawei.IapHelper.handleActivityResult(IapHelper.java:201)
    18.        at com.unity.udp.sdk.provider.huawei.HuaweiLoginActivity.onActivityResult(HuaweiLoginActivity.java:18)
    19.        at android.app.Activity.dispatchActivityResult(Activity.java:7194)
    20.        at android.app.ActivityThread.deliverResults(ActivityThread.java:4088)
    21.        at android.app.ActivityThread.handleSendResult(ActivityThread.java:4135)
    22.        at android.app.ActivityThread.-wrap20(ActivityThread.java)
    23.        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1536)
    24.        at android.os.Handler.dispatchMessage(Handler.java:102)
    25.        at android.os.Looper.loop(Looper.java:154)
    26.        at android.app.ActivityThread.main(ActivityThread.java:6138)
    27.        at java.lang.reflect.Method.invoke(Native Method)
    28.        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:893)
    29.        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:783)
    Using :
    unity 2020.1.7f1
    IAP / UDP up to date
    Unity HMS from unity package store

    edit : could be linked to "proguard" minify as without it seems not crashing, but will still miss the SDK / auth

    Thanks
     
    Last edited: Nov 10, 2020
    GlotovArtem likes this.