Giter Club home page Giter Club logo

Comments (5)

 avatar commented on August 15, 2024

Hi, which version of firebase-ads are you using in your app's build.gradle file? Which version of Android and which device?

Try using the latest version:
compile 'com.google.firebase:firebase-ads:9.8.0'

from googleads-mobile-android-examples.

figengungor avatar figengungor commented on August 15, 2024

Hi @temrich,

I was using latest version com.google.firebase:firebase-ads:10.0.0 when I opened the issue. Now, the latest version is 10.0.1 and I tested with that one, too. However, it still leaks.

My Android version is 6.0.1 and my device is LG G5.

Thanks for caring.

from googleads-mobile-android-examples.

 avatar commented on August 15, 2024

Are you able to reproduce this leak with any of our sample apps?
What steps are you taking to reproduce the leak?

from googleads-mobile-android-examples.

figengungor avatar figengungor commented on August 15, 2024
  1. Cloned your BannerExample.
  2. Added LeakCanary as dependency:
    debugCompile 'com.squareup.leakcanary:leakcanary-android:1.5'
    releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5'
    testCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5'
  1. Added a CustomApp class to the sample to use LeakCanary:
public class CustomApp extends Application {

    @Override
    public void onCreate() {
        super.onCreate();
        LeakCanary.install(this);
    }
}

  1. Changed app name in AndroidManifest:
<application
       android:allowBackup="true"
       android:icon="@drawable/ic_launcher"
       android:label="@string/app_name"
       android:theme="@style/AppTheme"
       android:name=".CustomApp">
  1. Run the sample app and then exit with back key. (If you can't see at first, please try to open and exit once more)

LeakCanary finds a memory leak like in the screen shot.

from googleads-mobile-android-examples.

 avatar commented on August 15, 2024

Hi,
Thank you for the steps. Do you still see a leak if you add a banner ad to your own app?
If you do, then it could potentially be an SDK issue and I would recommend reporting it on our Mobile Ads Developer forum (https://groups.google.com/forum/#!categories/google-admob-ads-sdk/android).

from googleads-mobile-android-examples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.