Writable dex error on Android 14

3,019 views
Skip to first unread message

Alain-Daniel Bourdages

unread,
Sep 26, 2023, 11:22:14 PM9/26/23
to Google Mobile Ads SDK Developers
Hello,

I updated to the latest admob package (8.5.2) in order to solve a crash on Android 14 beta. But I think there is another issue lurking around: every time the app starts up, it give the following error.

2023-09-26 20:15:57.694 10939-11253/? E/app: Attempt to load writable dex file: /data/user/0/com.blahblah.blah/app_pccache/5/511C3D5E8CF094117D12974C14AED0FB5DE75066/pcam.jar

Note that it doesn't crash the app at all but I don't know what the ramifications might be. I verified it was coming from AdMob by creating a build that doesn't call the Initialization of the library and the error went away.

Any guidance on this?
 

Mobile Ads SDK Forum Advisor

unread,
Sep 28, 2023, 7:28:53 AM9/28/23
to adbou...@gmail.com, google-adm...@googlegroups.com

Hi,

Thank you for contacting the Mobile Ads SDK Support team.

Upon reviewing your concern, I understand that you are facing an issue with Admob.

Kindly provide the below information for further investigation:

  • app ID 
  • ad unit ID
  • Mobile Ads SDK Version
  • Platform being used
  • Sample project reproducing the issue

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, kindly provide requested information to us via reply privately to author option or using the steps below:

1. Navigate to
https://docs.google.com/forms/d/e/1FAIpQLSfkAiXMeYP-fw1W3Z-tT9uwmATEKO5X6S-th0gR2ezdKaaqfg/viewform?usp=pp_url&entry.400550049=Mobile+Ads+SDK&entry.460850823=5004Q00002p1fJQQAY&entry.80707362=00200246

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

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

This message is in relation to case "ref:_00D1U1174p._5004Q2p1fJQ:ref"

Thanks,
 
Google Logo Mobile Ads SDK Team


Alain-Daniel Bourdages

unread,
Sep 28, 2023, 9:44:27 AM9/28/23
to Mobile Ads SDK Forum Advisor, google-adm...@googlegroups.com
  • app ID: ca-app-pub-8295113206508302~6448698331
  • ad unit ID: not applicable
  • Mobile Ads SDK Version: 8.5.2
  • Platform being used: Unity on Android
  • Sample project reproducing the issue: I don't have time to try to replicate in the sample project sorry
Cheers,
Alain-Daniel

Mobile Ads SDK Forum Advisor

unread,
Oct 3, 2023, 11:30:37 AM10/3/23
to adbou...@gmail.com, google-adm...@googlegroups.com
Hello Alain,

Thanks for reaching out.

Can you provide the full stack trace that shows the dex error? This will help us to understand if it's caused by the Google Mobile Ads SDK.

A sample project and reproducing steps will be helpful as well.


Regards,
Joshua 

ref:_00D1U1174p._5004Q2p1fJQ:ref

Alain-Daniel Bourdages

unread,
Oct 3, 2023, 12:51:16 PM10/3/23
to Google Mobile Ads SDK Developers
Surprisingly the only line showing in the logs is:

2023-09-26 20:15:57.694 10939-11253/? E/app: Attempt to load writable dex file: /data/user/0/com.blahblah.blah/app_pccache/5/511C3D5E8CF094117D12974C14AED0FB5DE75066/pcam.jar

There is nothing else. The exception is probably caught, an error message logged and otherwise handles gracefully?!

kiwa...@gmail.com

unread,
Dec 15, 2023, 7:58:29 AM12/15/23
to Google Mobile Ads SDK Developers
Having same issue here.

dalvik.system.DexFile.openDexFileNative (DexFile.java)
dalvik.system.DexFile.openDexFile (DexFile.java:406)
dalvik.system.DexFile.<init> (DexFile.java:128)
dalvik.system.DexFile.<init> (DexFile.java:101)
dalvik.system.DexPathList.loadDexFile (DexPathList.java:438)
dalvik.system.DexPathList.makeDexElements (DexPathList.java:397)
dalvik.system.DexPathList.<init> (DexPathList.java:166)
dalvik.system.BaseDexClassLoader.<init> (BaseDexClassLoader.java:160)
dalvik.system.BaseDexClassLoader.<init> (BaseDexClassLoader.java:105)
dalvik.system.DexClassLoader.<init> (DexClassLoader.java:55)
com.google.ads.interactivemedia.v3.internal.amh.t (IMASDK:28)
com.google.ads.interactivemedia.v3.internal.aln.t (IMASDK:1)
com.google.ads.interactivemedia.v3.internal.aln.v (IMASDK:2)
com.google.ads.interactivemedia.v3.internal.alo.j (IMASDK:1)
com.google.ads.interactivemedia.v3.internal.alm.j (IMASDK:2)
com.google.ads.interactivemedia.v3.internal.alm.run (IMASDK:13)
java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1145)
java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:644)
java.lang.Thread.run (Thread.java:1012)




Ian

unread,
Jan 15, 2024, 10:23:15 PM1/15/24
to Google Mobile Ads SDK Developers
Having same issue here 

Fatal Exception: java.lang. SecurityException

Writable dex file /data/user/0/com.ihad.ptt/cache/1633031840514.jar' is not allowed

dalvik.system.DexFile.openDexFileNative (DexFile.java)

dalvik.system.DexFile.openDexFile (DexFile.java:406)

dalvik.system.DexFile.<init> (DexFile.java:128)

dalvik.system.DexFile.<init> (DexFile.java:101)

dalvik.system.DexPathList.loadDexFile (DexPathList.java:438)

dalvik.system.DexPathList.makeDexElements (DexPathList.java:397)

dalvik.system.DexPathList.<init> (DexPathList.java:166)

dalvik.system.BaseDexClassLoader.<init> (BaseDexClassLoader.java:160)

dalvik.system.BaseDexClassLoader.<init> (BaseDexClassLoader.java:105)

dalvik.system.DexClassLoader.<init> (DexClassLoader.java:55)

com.google.ads.interactivemedia.v3.internal.amh.t (IMASDK:28)

com.google.ads.interactivemedia.v3.internal.aln.t (IMASDK:1)

com.google.ads.interactivemedia.v3.internal.aln.v (IMASDK:2)

com.google.ads.interactivemedia.v3.internal.alo.j (IMASDK:1)

com.google.ads.interactivemedia.v3.internal.alm.j (IMASDK:2)

com.google.ads.interactivemedia.v3.internal.alm.run (IMASDK:13)

java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1145)

java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:644)


Mobile Ads SDK Forum Advisor

unread,
Jan 17, 2024, 2:50:01 PM1/17/24
to ian....@aotter.net, google-adm...@googlegroups.com
Hello Ian,

Looking at the stack trace provided, the error comes from the IMA SDK instead of the Google Mobile Ads SDK.

I would suggest reaching out to the IMA SDK support team for the issue instead.


Regards,
Joshua 

ref:!00D1U01174p.!5004Q02p1fJQ:ref
Reply all
Reply to author
Forward
0 new messages