Updated billing library, get Attempt to load writeable dex file error in logcat

436 views
Skip to first unread message

Zonersplace

unread,
Nov 9, 2023, 8:41:30 PM11/9/23
to Google Mobile Ads SDK Developers
I am getting this error when I run my app on a physical device Pixel 6a :


It's only when I run an activity with a banner ad. It only happened after I updated billing library version 5. 

How do I fix this?

Thank you in advance

Mobile Ads SDK Forum Advisor

unread,
Nov 10, 2023, 12:08:22 AM11/10/23
to zoner...@gmail.com, google-adm...@googlegroups.com

Hi, 

Thank you for contacting the Mobile Ads SDK support team.

By reviewing your concern, I understand that you are facing issues with banner ads. Can you please confirm whether you are able to reproduce the same error in Google sample project. If you are able to reproduce the same error, Can you Kindly provide the below information for further investigation:

  • app ID
  • ad unit ID
  • Mobile Ads SDK Version
  • Sample project reproducing the issue (or) Charles logs 
This message is in relation to case "ref:!00D1U01174p.!5004Q02qBayE:ref"

Thanks,
 
Google Logo Mobile Ads SDK Team


Message has been deleted
Message has been deleted

Mobile Ads SDK Forum Advisor

unread,
Nov 10, 2023, 4:42:58 AM11/10/23
to rahul...@rooter.io, zoner...@gmail.com, google-adm...@googlegroups.com
Hi, 

Thank you for getting back to us.

Please be informed that I have removed your response from the forums as it contains the PII information.

Based on the provided app IDs and ad unit ID we found that you are using AdMob app ID and AdManager ad unit ID. Please note that the above combination doesn’t work. Use AdMob app ID and AdMob ad unit ID with AdMob sample project .

If you want to implement your application with AdManager ad unit ID then use Ad manager app ID and AdManager ad unit ID with AdManager sample project .

Kindly note that this is applicable for your second application also.

Please reach out to us, if you need any further assistance.



Please find below your previous response with redacted information.
—--Hi, 

I am using iOS Sample project not android one iOS SampleProject
app ID = **************************************
ad unit ID = "/6499/example/native"
Mobile Ads SDK Version:- 10.13.0
Sample project reproducing the issue (or) Charles logs :- Yes it's returning the same issue with my appId error logs are below.
Error: Failed to read publisher's account configuration; this could be caused by a transient error, an invalid app ID, or lack of configured form(s). Verify that your app ID is correct and that you have configured one or more forms for this application, then try again later. Received app ID: `*************************************

second app id is:- ***********************************

For both it's showing same error

Zonersplace

unread,
Nov 12, 2023, 1:32:15 AM11/12/23
to Google Mobile Ads SDK Developers
Thank you for your reply. I have found a way to fix that Dex file error that comes up when I have a banner ad. I just put this in the activity that has the Admob:

package com.example;

import android.app.Application;

import java.io.File;

public class BaseApp extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        File dexOutputDir = getCodeCacheDir();
        dexOutputDir.setReadOnly();
    }
}
Reply all
Reply to author
Forward
0 new messages