// Called when leaving the activity
public override fun onPause() {
ad_view.pause()
super.onPause()
}
// Called when returning to the activity
public override fun onResume() {
super.onResume()
ad_view.resume()
}
// Called before the activity is destroyed
public override fun onDestroy() {
ad_view.destroy()
super.onDestroy()
}
公式サンプルの中に以下を見つけた。
if (adView.getParent() != null) {
((ViewGroup) adView.getParent()).removeView(adView);
}
buildscript {
ext {
play_version = '15.0.0'
}
}
dependencies {
// DON'T DO THIS!!
// The following use of the above buildscript property is no longer valid.
implementation "com.google.android.gms:play-services-auth:${play_version}"
implementation "com.google.firebase:firebase-auth:${play_version}"
implementation "com.google.firebase:firebase-firestore:${play_version}"
}
The library com.google.android.gms:play-services-measurement-base
is being requested by various other libraries at [[15.0.0,15.0.0], [15.0.2,15.0.2]],
but resolves to 15.0.2. Disable the plugin and check your dependencies tree
using ./gradlew :app:dependencies.
Description
Newer Library Versions Available This detector checks with a central repository to see if there are newer versions available for the dependencies used by this project. This is similar to the GradleDependency check, which checks for newer versions available in the Android SDK tools and libraries, but this works with any MavenCentral dependency, and connects to the library every time, which makes it more flexible but also much slower.