Search Issue Tracker

Fixed in 2020.1

Fixed in 2019.2, 2019.3

Votes

17

Found in

2019.2

2019.2.14f1

2019.3

2020.1

Issue ID

1204028

Regression

No

[Android]AndroidJavaClass fails to load classes from aars with AndroidJavaException

Android

-

How to reproduce:
1. Open the attached IIIIIAAAAABBBBB.zip project
2. Go to the Project window-> BUG_REPORT_FILES-> BugScene
3. Build and Run on Android device

Expected: Android class from an aar are loaded via AndroidJavaClass

Actual: AndroidJavaClass fails to load classes from aars with
AndroidJavaException: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.Class.getName()' on a null object reference

Reproducible with: 2019.2.16f1, 2019.3.0f2, 2020.1.0a16

Reproducible with:
VLNQA00125 Google Pixel 2 8.1.0 Snapdragon 835 MSM8998 Adreno (TM) 540 OpenGL ES 3.2 FA7BB1A08116
VLNQA00012 Samsung Galaxy S6 7.0 Exynos 7 Octa 7420 Mali-T760 OpenGL ES 3.2 04157df40db4bd2c

Notes:
- Seems like regression, but I can't test earlier versions because of the thrown package errors
- See the logacat Terminal Saved Output.txt attached

  1. Response avatar

    Resolution Note (fix version 2019.3):

    Android: Fix calling static method in base class through derived using AndroidJavaClass.

  2. Response avatar

    Resolution Note (fix version 2019.2):

    Fixed in 2019.2.22f1

Comments (6)

  1. 624eb24d6ae467a9abb49b25c8df7b98?d=mm

    fp-unity

    Mar 30, 2020 15:19

    where is Unity 2019.2.22f1?

  2. B42e062a207461e3c0d1a13c5c4f963c?d=mm

    xGeorgeV

    Feb 09, 2020 12:36

    I need that fix for 2019.2.x, because 2019.3 does not contain the very fast (old) GUI Layer and I should write again the game UI.

  3. 7f3d79343104f2e14aa8c36cffe36b7c?d=mm

    R-Castro

    Jan 25, 2020 03:09

    Waiting for the fix 2019.2.x

  4. 5dc2228bd75d7241537012fca6fec885?d=mm

    joepeijkemans

    Jan 16, 2020 14:07

    Is there a workaround? or do I just have to install the latest unity?

  5. 9d0ae276bd9c48a50d8f4672e3f81da3?d=mm

    AlekseyLaz

    Jan 16, 2020 10:03

    I agree. Please provide that fix for 2019.2.x too.

  6. 53bac73f6961e58d1e951eaeb226052e?d=mm

    yakandco

    Jan 16, 2020 02:01

    When is this fix to arrive in a production version? between this bug and OpenGL shader bugs (this has since been fixed) we've been unable to compile a working build for Android since Sep 2019 (v2019.2.4), every version since has had show stopper issues. It'd be great if this could be stepped up and back ported to a 2019.2.x version as I'm quite concerned that 2019.3 is going to bring a fresh round of issues with it. Will the fix at least be shipped with the first production ready version of 2019.3? Sorry but having to wait 4 months to 'maybe' be able to compile a working android app is quite frustrating.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.