-
-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GradlePluginKotlinEnabled (deprecated) and cordova-plugin-firebasex (Task :app:compileDebugKotlin FAILED) #646
Comments
Update: I have been able to make
Keep in mind that, with Kotlin 1.9, it gives me the following warnings now:
|
Thanks for the heads up. I guess you are using the beta-version of the Admob-plugin? The regular / stable version doesn't need this adjustments (I am using both for a couple of years know). As a reminder, for others, keep in mind the AndroidX "switch" when enabling similar problems; https://admob-plus.github.io/docs/cordova/installation AndroidX is out there for a long time, but not enabling or (or even enabling it) can cause issues. |
Describe the bug
In order to use admob-plus-cordova, you need to set Kotlin in the config.xml:
<preference name="GradlePluginKotlinEnabled" value="true" />
. It seems deprecated though:Now, since it's a warning, we could ignore it, admob on itself work great and it's awesome. But if you are also using cordova-plugin-firebasex and try to compile (cordova build android) things get messy:
To Reproduce
cordova plugin add admob-plus-cordova
cordova plugin cordova-plugin-firebasex
cordova build android
Task :app:compileDebugKotlin FAILED
Expected behavior
Both plugins should work without failing to compile. I guess that since "GradlePluginKotlinEnabled" is deprecated, it's admob-plus that should fix this issue, but I'm not a Kotlin expert.
Additional context
The
Task :app:compileDebugKotlin FAILED
only started to happen after cordova-plugin-firebasex@16.2.0 (I'm still using cordova-plugin-firebasex@16.1.0 and it compiles).The text was updated successfully, but these errors were encountered: