ratson / cordova-plugin-admob-free

New development has been moved to "admob-plus-cordova", https://github.com/admob-plus/admob-plus/tree/master/packages/cordova
https://github.com/admob-plus/admob-plus
MIT License
498 stars 212 forks source link

Firebase + AdmobFree plugin causes failed task :app:transformClassesWithDesugarForDebug #259

Open baron554 opened 5 years ago

baron554 commented 5 years ago

https://github.com/ratson/cordova-plugin-admob-free https://github.com/arnesson/cordova-plugin-firebase/

When both of these plugins are used together the app:transformClassesWithDesugarForDebug task will fail. I have not found a way to fix this. The error log is provided below in the stack overflow link.

I have documented the issue at: https://stackoverflow.com/questions/51179005/execution-failed-for-task-apptransformclasseswithdesugarfordebug-cordova-gra

baron554 commented 5 years ago

@ratson would you be able to take a look at this? I have already been using your plugin for a month now and really like it but if I cannot resolve this I will have to switch to a new plugin. Yours is especially nice as it provides a means to use rewarded ad videos.

ratson commented 5 years ago

@baron554 If you could setup a example repo showing the problem, I would look into it.

baron554 commented 5 years ago

I was able to resolve the issue, it was a dependency issue between the plugins. Thanks @ratson.

AliGencsoy commented 5 years ago

https://stackoverflow.com/questions/51179005/execution-failed-for-task-apptransformclasseswithdesugarfordebug-cordova-gra

I think @baron554 opened that question and he gave solution.

Just adding one line on [cordova project base] > platforms > android > app > build.gradle file:

android {
    defaultConfig {
        multiDexEnabled true
    }
}
merbin2012 commented 5 years ago

Did you find the solution? I have tried both

1) android { defaultConfig { multiDexEnabled true } }

2) ` compile "com.google.firebase:firebase-core:+" compile "com.google.firebase:firebase-messaging:+" compile "com.google.firebase:firebase-config:+" compile "com.google.firebase:firebase-perf:+"

compile "com.google.android.gms:play-services-ads:+"
compile "com.google.android.gms:play-services-tagmanager:+"`

But these two methods are not working.

AliGencsoy commented 5 years ago

@merbin2012

Be kind, read carefully and try to be professional. However.

https://github.com/arnesson/cordova-plugin-firebase/#google-play-services "Your build may fail if you are installing multiple plugins that use Google Play Services..."

If you could setup a example repo showing the problem, someone would look into it.