Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

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


    Nov 7, 2016
    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:, 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
    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 '' appears in /data/app/
    17.        at com.unity.udp.huawei.IapHelper.handleActivityResult(
    18.        at com.unity.udp.sdk.provider.huawei.HuaweiLoginActivity.onActivityResult(
    19.        at
    20.        at
    21.        at
    22.        at
    23.        at$H.handleMessage(
    24.        at android.os.Handler.dispatchMessage(
    25.        at android.os.Looper.loop(
    26.        at
    27.        at java.lang.reflect.Method.invoke(Native Method)
    28.        at$
    29.        at
    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

    Last edited: Nov 10, 2020
    GlotovArtem likes this.