Giter Site home page Giter Site logo

flutter_admob_app_open's People

Contributors

hsangtini avatar rockyleee avatar tinistudio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

flutter_admob_app_open's Issues

What google_mobile_ads purpose on this plugin?

I can see you using google_mobile_ads, but can't find any usage on this, can you explain why google_mobile_ads included on pubspec?

dependencies:
  flutter:
    sdk: flutter
  google_mobile_ads: ^0.13.3

I'm asking this because i want to update "com.google.android.gms:play-services-ads" from native side, thanks in advance

Error when building app

CODE

Future main() async {
WidgetsFlutterBinding.ensureInitialized();

//Admob.initialize();

/// Replace your admob app ID
final admobAppId = FlutterAdmobAppOpen.testAppId;

/// Replace your admob app open ad unit id
final appAppOpenAdUnitId = FlutterAdmobAppOpen.testAppOpenAdId;

AdRequestAppOpen targetingInfo = AdRequestAppOpen(
keywords: ['flutterio', 'beautiful apps'],
contentUrl: 'https://flutter.io',
testDevices: [], // Android emulators are considered test devices
nonPersonalizedAds: true,
);

await FlutterAdmobAppOpen.instance.initialize(
appId: admobAppId,
appAppOpenAdUnitId: appAppOpenAdUnitId,
targetingInfo: targetingInfo,
);

runApp(MyApp());
}


ERROR

Launching lib\main.dart on Redmi 8A in debug mode...
Running Gradle task 'assembleDebug'...

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:checkDebugDuplicateClasses'.

1 exception was raised by workers:
java.lang.RuntimeException: Duplicate class com.google.android.gms.internal.measurement.zzbj found in modules play-services-measurement-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement:17.2.2) and play-services-measurement-sdk-api-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-sdk-api:17.5.0)
Duplicate class com.google.android.gms.internal.measurement.zzbk found in modules play-services-measurement-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement:17.2.2) and play-services-measurement-sdk-api-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-sdk-api:17.5.0)
Duplicate class com.google.android.gms.internal.measurement.zzbl found in modules play-services-measurement-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement:17.2.2) and play-services-measurement-sdk-api-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-sdk-api:17.5.0)
Duplicate class com.google.android.gms.internal.measurement.zzbm found in modules play-services-measurement-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement:17.2.2) and play-services-measurement-sdk-api-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-sdk-api:17.5.0)
Duplicate class com.google.android.gms.internal.measurement.zzbn found in modules play-services-measurement-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement:17.2.2) and play-services-measurement-sdk-api-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-sdk-api:17.5.0)
Duplicate class com.google.android.gms.internal.measurement.zzbo found in modules play-services-measurement-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement:17.2.2) and play-services-measurement-sdk-api-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-sdk-api:17.5.0)
Duplicate class com.google.android.gms.internal.measurement.zzbp found in modules play-services-measurement-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement:17.2.2) and play-services-measurement-sdk-api-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-sdk-api:17.5.0)
Duplicate class com.google.android.gms.internal.measurement.zzbq found in modules play-services-measurement-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement:17.2.2) and play-services-measurement-sdk-api-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-sdk-api:17.5.0)
Duplicate class com.google.android.gms.internal.measurement.zzbr found in modules play-services-measurement-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement:17.2.2) and play-services-measurement-sdk-api-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-sdk-api:17.5.0)
Duplicate class com.google.android.gms.internal.measurement.zzbs found in modules play-services-measurement-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement:17.2.2) and play-services-measurement-sdk-api-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-sdk-api:17.5.0)
Duplicate class com.google.android.gms.internal.measurement.zzbt found in modules play-services-measurement-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement:17.2.2) and play-services-measurement-sdk-api-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-sdk-api:17.5.0)
Duplicate class com.google.android.gms.internal.measurement.zzbu found in modules play-services-measurement-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement:17.2.2) and play-services-measurement-sdk-api-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-sdk-api:17.5.0)
Duplicate class com.google.android.gms.internal.measurement.zzi found in modules play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2) and play-services-measurement-sdk-api-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-sdk-api:17.5.0)
Duplicate class com.google.android.gms.internal.measurement.zzis found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzit found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zziu found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zziv found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zziw found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzix found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zziy found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zziz found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzj found in modules play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2) and play-services-measurement-sdk-api-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-sdk-api:17.5.0)
Duplicate class com.google.android.gms.internal.measurement.zzja found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzjb found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzjc found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzjd found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzje found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzjf found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzjg found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzjh found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzji found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzjj found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzjk found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzjl found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzjm found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzjn found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzjo found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzjp found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzjq found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzjr found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzjs found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzjt found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzju found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzjv found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzjw found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzjx found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzjy found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzjz found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzka found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzkb found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzkc found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzkd found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzke found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzkf found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzkg found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzkh found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzki found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzkj found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzkk found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzkl found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzkm found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzkn found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzko found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzkp found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzkq found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzkr found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzks found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzkt found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzku found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzkv found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzkw found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzkx found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzky found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzkz found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzla found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzlb found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzlc found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzld found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzle found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzlf found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzlg found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzlh found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzli found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.internal.measurement.zzlk found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.measurement.internal.zzgy found in modules play-services-measurement-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement:17.2.2) and play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0)
Duplicate class com.google.android.gms.measurement.internal.zzgz found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.measurement.internal.zzha found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.measurement.internal.zzhc found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)
Duplicate class com.google.android.gms.measurement.internal.zzik found in modules play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and play-services-measurement-impl-17.2.2-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.2.2)

Go to the documentation to learn how to Fix dependency resolution errors.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 31s
Exception: Gradle task assembleDebug failed with exit code 1

Not working in iOS 14.2

I have tried this package in personal project as well as this package example in my iphone. They were all crashed in first launch. Please check again.

Flutter 1.22.3 • channel stable •
https://github.com/flutter/flutter.git
Framework • revision 8874f21e79 (12 days ago) • 2020-10-29 14:14:35
-0700
Engine • revision a1440ca392
Tools • Dart 2.10.3

ads shows only when i resume the app not at the launching

this's my main function

void main() async{
  WidgetsFlutterBinding.ensureInitialized();
  MobileAds.instance.initialize();
  /// Replace your admob app ID
  final admobAppId =  FlutterAdmobAppOpen.testAppId;

  /// Replace your admob app open ad unit id
  final appAppOpenAdUnitId =FlutterAdmobAppOpen.testAppOpenAdId;

   AdRequestAppOpen targetingInfo = AdRequestAppOpen(
      keywords: <String>['flutterio', 'beautiful apps'],
      contentUrl: 'https://flutter.io',
      //testDevices: <String>[], // Android emulators are considered test devices
      nonPersonalizedAds: true,
    );

  await FlutterAdmobAppOpen.instance.initialize(
    appId: admobAppId,
    appAppOpenAdUnitId: appAppOpenAdUnitId,
    targetingInfo: targetingInfo,

  );
  runApp(myApp());
}

the ads only show when I pause the app and the resume but the I launch the app its not showing Is in my code or this is how this package is works ??
I will be glad to add any required information if any is need

Do not work on IOS 14.2 and android

Hi, i am try to use your library and have some exceptions, maybe you know how to fix it.
Ios log
Lost connection to device. Failed to send request: {"jsonrpc":"2.0","id":"20","method":"getObject","params":{"isolateId":"isolates/3678897934303463","objectId":"libraries/@1041171358"}}
Android app opens ok, but on splash screen ad do not displayed

Add cooling off period

add cooling off period to display app open ads. Useful when users are toggling the app.

example : user will only show 1 time app open ads in the period of x minutes.

Error: Can not show ad on Android

When I try to use your package I get this error and the ad doesn't show:

D/AppOpenManager(16059): Can not show ad.
D/AppOpenManager(): onStart.

targetSDK: 29
minSDK: 21
Tested: Android 5.0

I only tested with Test App ID and and Test App Open Ad Unit.

Unable to run on debug mode

I got this issue as screenshot when trying to run application up.
Screen Shot 2021-03-15 at 12 04 15
google_mobile_ads: ^0.11.0+3
flutter_admob_app_open: ^1.0.0

Crashing at appstart

Screenshot 2021-04-19 at 10 51 10

WidgetsFlutterBinding.ensureInitialized();
final admobAppId = "I hide my id";
final appAppOpenAdUnitId = "I hide my id";
AdRequestAppOpen targetingInfo = AdRequestAppOpen(
keywords: ['flutterio', 'beautiful apps'],
contentUrl: 'https://flutter.io',
testDevices: [], // Android emulators are considered test devices
nonPersonalizedAds: true,
);
await FlutterAdmobAppOpen.instance.initialize(
appId: admobAppId,
appAppOpenAdUnitId: appAppOpenAdUnitId,
targetingInfo: targetingInfo,
);

AndroidManifest

Screenshot 2021-04-19 at 10 54 23

flutter doctor -v

[✓] Flutter (Channel master, 2.2.0-11.0.pre.127, on macOS 11.2.1 20D74 darwin-x64, locale en-ES)
• Flutter version 2.2.0-11.0.pre.127 at /Users/jesus/Developer/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision eb73516739 (4 days ago), 2021-04-15 01:42:49 -0700
• Engine revision dcdc42b715
• Dart version 2.14.0 (build 2.14.0-4.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at /Users/jesus/Library/Android/sdk
• Platform android-30, build-tools 29.0.2
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.4, Build version 12D4e
• CocoaPods version 1.10.0

[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

[✓] VS Code (version 1.55.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.21.0

[✓] Connected device (3 available)
• SM G973F (mobile) • R58N53BE4HW • android-arm64 • Android 11 (API 30)
• macOS (desktop) • macos • darwin-x64 • macOS 11.2.1 20D74 darwin-x64
• Chrome (web) • chrome • web-javascript • Google Chrome 89.0.4389.128

deprecated API

Note: /Users/user/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_admob_app_open-1.0.5/android/src/main/java/io/ivoca/flutter_admob_app_open/FlutterAdmobAppOpenPlugin.java uses or overrides a deprecated API.

Note: Recompile with -Xlint:deprecation for details.

Do you have any plans to update?

app open ad is shown when moving to image picker screen

in my app when i click a button to go to image picker and come back to app after selecting, the open ad is shown first.

expected behavior: No app open add should be shown when moving to image picker and return back to app

version: flutter_admob_app_open: ^1.1.1
device: both in Android 11 and 10

Android: Can not show ad. unable to connect to service: com.google.android.gms.leibniz.events.service.START on com.google.android.gms

The ads don't show up and only blank when the app is opened. AndroidManifest.xml is configured, google_mobile_ads's banner is working fine.

compileSdkVersion 30
minSdkVersion 19
targetSdkVersion 30

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  MobileAds.instance.initialize();

  final admobAppId = FlutterAdmobAppOpen.testAppId;
  final appAppOpenAdUnitId = FlutterAdmobAppOpen.testAppOpenAdId;

  await FlutterAdmobAppOpen.instance.initialize(
    appId: admobAppId,
    appAppOpenAdUnitId: appAppOpenAdUnitId,
    targetingInfo: AdRequestAppOpen(
      keywords: <String>['flutterio', 'beautiful apps'],
      contentUrl: 'https://flutter.io',
      nonPersonalizedAds: true,
      testDevices: [
        "37CCxxxxxxxxxxxxxxxxxxxxxxxxxxx188747",
        "BF5DxxxxxxxxxxxxxxxxxxxxxxxxxxxFFEC76"
      ],
    ),
  );

  runApp(MaterialApp(
    home: HomePage(),
  ));
}

Log:

Syncing files to device Mi 10...
W/ch.just_a_cloc(21425): ClassLoaderContext classpath size mismatch. expected=1, found=0 (PCL[/system/framework/miui.services.jar*2958366392] | PCL[])
I/DynamiteModule(21425): Considering local module com.google.android.gms.ads.dynamite:0 and remote module com.google.android.gms.ads.dynamite:211512000
I/DynamiteModule(21425): Selected remote version of com.google.android.gms.ads.dynamite, version >= 211512000
D/DynamitePackage(21425): Instantiated singleton DynamitePackage.
D/DynamitePackage(21425): Instantiating com.google.android.gms.ads.ChimeraMobileAdsSettingManagerCreatorImpl
I/Ads     (21425): Updating ad debug logging enablement.
W/ConnectionStatusConfig(21425): Dynamic lookup for intent failed for action: com.google.android.gms.leibniz.events.service.START
E/GmsClient(21425): unable to connect to service: com.google.android.gms.leibniz.events.service.START on com.google.android.gms
I/WebViewFactory(21425): Loading com.google.android.webview version 91.0.4472.164 (code 447216434)
I/ch.just_a_cloc(21425): Waiting for a blocking GC ClassLinker
I/ch.just_a_cloc(21425): WaitForGcToComplete blocked ClassLinker on ClassLinker for 10.123ms
W/ch.just_a_cloc(21425): Accessing hidden method Landroid/os/Trace;->isTagEnabled(J)Z (greylist, reflection, allowed)
W/ch.just_a_cloc(21425): Accessing hidden method Landroid/os/Trace;->traceBegin(JLjava/lang/String;)V (greylist, reflection, allowed)
W/ch.just_a_cloc(21425): Accessing hidden method Landroid/os/Trace;->traceEnd(J)V (greylist, reflection, allowed)
W/ch.just_a_cloc(21425): Accessing hidden method Landroid/os/Trace;->asyncTraceBegin(JLjava/lang/String;I)V (greylist, reflection, allowed)
W/ch.just_a_cloc(21425): Accessing hidden method Landroid/os/Trace;->asyncTraceEnd(JLjava/lang/String;I)V (greylist, reflection, allowed)
I/cr_LibraryLoader(21425): Loaded native library version number "91.0.4472.164"
I/cr_CachingUmaRecorder(21425): Flushed 6 samples from 6 histograms.
D/EgretLoader(21425): EgretLoader(Context context)
D/EgretLoader(21425): The context is not activity
W/ch.just_a_cloc(21425): Accessing hidden method Landroid/media/AudioManager;->getOutputLatency(I)I (greylist, reflection, allowed)
W/cr_media(21425): Requires BLUETOOTH permission
D/AppOpenManager(21425): Can not show ad.
D/DynamitePackage(21425): Instantiating com.google.android.gms.ads.ChimeraAdManagerCreatorImpl
I/Ads     (21425): Use RequestConfiguration.Builder().setTestDeviceIds(Arrays.asList("37CC27321AE696E132EA58DAF7188747")) to get test ads on this device.
I/DynamiteModule(21425): Considering local module com.google.android.gms.ads.dynamite:0 and remote module com.google.android.gms.ads.dynamite:211512000
I/DynamiteModule(21425): Selected remote version of com.google.android.gms.ads.dynamite, version >= 211512000
W/Parcel  (21425): **** enforceInterface() expected 'com.google.android.gms.ads.clearcut.IClearcut' but read 'com.google.android.gms.gass.internal.clearcut.IClearcut'
I/DynamiteModule(21425): Considering local module com.google.android.gms.ads.dynamite:0 and remote module com.google.android.gms.ads.dynamite:211512000
I/DynamiteModule(21425): Selected remote version of com.google.android.gms.ads.dynamite, version >= 211512000
E/libc    (21425): Access denied finding property "ro.vendor.df.effect.conflict"
E/libc    (21425): Access denied finding property "ro.vendor.knock.type"
W/Parcel  (21425): **** enforceInterface() expected 'com.google.android.gms.ads.clearcut.IClearcut' but read 'com.google.android.gms.gass.internal.clearcut.IClearcut'
W/AdWorker(Defaul(21425): type=1400 audit(0.0:2277789): avc: denied { read } for name="u:object_r:vendor_displayfeature_prop:s0" dev="tmpfs" ino=31907 scontext=u:r:untrusted_app:s0:c220,c257,c512,c768 tcontext=u:object_r:vendor_displayfeature_prop:s0 tclass=file permissive=0 app=com.xzhshch.just_a_clock
I/AudioManager(21425): In isSpeakerphoneOn(), calling application: com.xzhshch.just_a_clock
D/AppOpenManager(21425): onStart
W/AdWorker(Defaul(21425): type=1400 audit(0.0:2277790): avc: granted { execute } for path="/data/data/com.xzhshch.just_a_clock/app_pccache/5/A818FB639F0CB415048C3077CE3FC3A16D46E20D/pcam.jar" dev="dm-10" ino=1600248 scontext=u:r:untrusted_app:s0:c220,c257,c512,c768 tcontext=u:object_r:app_data_file:s0:c220,c257,c512,c768 tclass=file app=com.xzhshch.just_a_clock
W/Ads     (21425): Update ad debug logging enablement as false
W/Ads     (21425): Not retrying to fetch app settings
D/DecorView[](21425): getWindowModeFromSystem  windowmode is 1
D/DecorView(21425):  old windowMode:1 new windowMode: 1 isNeedToChangeCaptionView false
D/DecorView[](21425): updateDecorCaptionStatus displayWindowDecor is false
D/EgretLoader(21425): EgretLoader(Context context)
D/EgretLoader(21425): The context is not activity
D/EgretLoader(21425): EgretLoader(Context context)
D/EgretLoader(21425): The context is not activity
I/ch.just_a_cloc(21425): ProcessProfilingInfo new_methods=1459 is saved saved_to_disk=1 resolve_classes_delay=8000
I/DynamiteModule(21425): Considering local module com.google.android.gms.ads.dynamite:0 and remote module com.google.android.gms.ads.dynamite:211512000
I/DynamiteModule(21425): Selected remote version of com.google.android.gms.ads.dynamite, version >= 211512000

Not support last version

In Podfile:
firebase_analytics (from .symlinks/plugins/firebase_analytics/ios) was resolved to 8.1.0, which depends on
Firebase/Analytics (= 8.0.0) was resolved to 8.0.0, which depends on
Firebase/Core (= 8.0.0) was resolved to 8.0.0, which depends on
FirebaseAnalytics (~> 8.0.0) was resolved to 8.0.0, which depends on
FirebaseAnalytics/AdIdSupport (= 8.0.0) was resolved to 8.0.0, which depends on
GoogleAppMeasurement (= 8.0.0)

flutter_admob_app_open (from `.symlinks/plugins/flutter_admob_app_open/ios`) was resolved to 0.0.1, which depends on
  Google-Mobile-Ads-SDK (= 7.69.0) was resolved to 7.69.0, which depends on
    GoogleAppMeasurement (~> 7.0)

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.