Search Issue Tracker

Fixed in 2020.1.X

Fixed in 2019.2.X, 2019.3.X

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. Resolution Note (fix version 2019.3):

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

  2. Resolution Note (fix version 2019.2):

    Fixed in 2019.2.22f1

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.