R8 null pointer exception while making release build

8 views
Skip to first unread message

Kartik Agarwal

unread,
Oct 17, 2024, 11:27:15 AMOct 17
to Interactive Media Ads SDK
I am getting below exception while making release build

> Task :app:minifyDevReleaseWithR8
AGPBI: {"kind":"error","text":"java.lang.NullPointerException: Cannot read field \"e\" because the return value of \"com.android.tools.r8.graph.m.c(com.android.tools.r8.graph.q2)\" is null","sources":[{}],"tool":"R8"}
java.lang.NullPointerException: Cannot read field "e" because the return value of "com.android.tools.r8.graph.m.c(com.android.tools.r8.graph.q2)" is null

 

But if i commented GoogleIMA class then i can able to make release build.


IMA SDK

unread,
Oct 17, 2024, 5:00:04 PMOct 17
to kartikaga...@gmail.com, ima...@googlegroups.com
Hi Kartik,

Thank you for contacting IMA SDK Support Team.

I've checked Google Sample Code and able to generate release apk without any issue.
Could you try to replicate the issue by using Google Sample Code or update AGP version(8.3.2), JAVA 17 and other settings as per Google Sample Code.

In case you still facing issue then provide your Sample Project with us by using below link.

If the file(s) you are looking to share are less than 25mb in total you can attach them to this case on your next reply. If you are having trouble attaching your file to this case or if your file(s) are larger than 25mb, you can share your files with me by performing the following steps:

1. Navigate to

https://docs.google.com/forms/d/e/1FAIpQLSfkAiXMeYP-fw1W3Z-tT9uwmATEKO5X6S-th0gR2ezdKaaqfg/viewform?usp=pp_url&entry.400550049=IMA+SDK&entry.460850823=5004Q00002vGf1lQAC&entry.80707362=00272095

2. Fill out all fields, and attach your file(s).

3. Please reply back on this thread when you have uploaded your file(s). Please do not share this link. 

This message is in relation to case "ref:!00D1U01174p.!5004Q02vGf1l:ref" (ADR-00272095)

Thanks,
 
Google Logo IMA SDK Team


Reply all
Reply to author
Forward
0 new messages