Hi Pinto,
My proguard-rules.pro file has only comments.
minSdkVersion 28
targetSdkVersion 29
I'm using Android Studio 4.1.1 with android gradle plugin version 4.0.2 and gradle version 4.6.1
These versions work with sample code too.
I have not been able to use plugin 4.1.1 and 6.5 respectively because it fails to build with navigation.json merge error for both samples and my code.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
LeiaDisplayManager displayManager = LeiaSDK.getDisplayManager(getApplicationContext());
displayManager.requestBacklightMode(LeiaDisplayManager.BacklightMode.MODE_2D);
displayManager is null.
2020-11-28 08:48:03.996 4704-4704/? I/dymodla.r3dree: Late-enabling -Xcheck:jni
2020-11-28 08:48:04.011 4704-4704/? E/dymodla.r3dree: Unknown bits set in runtime_flags: 0x8000
2020-11-28 08:48:04.345 4704-4704/com.andymodla.r3dreel I/Perf: Connecting to perf service.
2020-11-28 08:48:04.395 4704-4704/com.andymodla.r3dreel I/LeiaSDK: Display SDK 7.0.20
2020-11-28 08:48:04.395 4704-4704/com.andymodla.r3dreel I/LeiaSDK: V6 platform APIs not available.
2020-11-28 08:48:04.395 4704-4704/com.andymodla.r3dreel I/LeiaSDK: V6 platform APIs not available.
2020-11-28 08:48:04.395 4704-4704/com.andymodla.r3dreel I/LeiaSDK: V5 platform APIs not available.
2020-11-28 08:48:04.396 4704-4704/com.andymodla.r3dreel I/LeiaSDK: V4 platform APIs not available.
2020-11-28 08:48:04.396 4704-4704/com.andymodla.r3dreel I/LeiaSDK: V3 platform APIs not available.
2020-11-28 08:48:04.396 4704-4704/com.andymodla.r3dreel I/LeiaSDK: V2 platform APIs not available.
2020-11-28 08:48:04.396 4704-4704/com.andymodla.r3dreel I/LeiaSDK: We were unable to load the Leia Platform. This error is normally caused by running on a non-Leia device, or running with old (EVT0) firmware. If you feel this message is in error, please contact Leia for support
2020-11-28 08:48:04.396 4704-4704/com.andymodla.r3dreel D/AndroidRuntime: Shutting down VM
2020-11-28 08:48:04.397 4704-4704/com.andymodla.r3dreel E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.andymodla.r3dreel, PID: 4704
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.andymodla.r3dreel/com.andymodla.r3dreel.MainActivity}: java.lang.NullPointerException: Attempt to invoke interface method 'void com.leiainc.androidsdk.display.LeiaDisplayManager.requestBacklightMode(com.leiainc.androidsdk.display.LeiaDisplayManager$BacklightMode)' on a null object reference
My code only runs when I comment out these last two lines in onCreate, of course it does not try to use Leia Media SDK then.
Do I need any developer out of ordinary USB debugging settings?