question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Flutter 2.8 Issue kotlin_module

See original GitHub issue

Plugin Version

lastest

Steps to Reproduce (Flutter 2.8)

  1. Run flutter create bug.
logs
Launching lib\main.dart on Android SDK built for x86 in debug mode...
e: C:/Users/bharg/.gradle/caches/transforms-2/files-2.1/683fded33b117c0eb9bb9deabca1a71e/work-runtime-2.7.0-api.jar!/META-INF/work-runtime_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileDebugKotlin'.
> Compilation error. See log for more details

* 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 16s
[!] Your project requires a newer version of the Kotlin Gradle plugin.
    Find the latest version on https://kotlinlang.org/docs/gradle.html#plugin-and-versions, then update C:\flutter-project\flutter-quotes\android\build.gradle:
    ext.kotlin_version = '<latest-version>'
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11

github_iconTop GitHub Comments

1reaction
bhargavraviyacommented, Dec 25, 2021

My Issue solved thank for support @bhanuka96 @maheshmnj @elkhalifte

0reactions
bhanuka96commented, Dec 25, 2021

Got the same error and this is the error log

2021-12-25 07:06:09.708 5156-5156/com.currency.prod.currency E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.currency.prod.currency, PID: 5156
    java.lang.RuntimeException: Unable to get provider com.google.android.gms.ads.MobileAdsInitProvider: java.lang.IllegalStateException: 
    
    ******************************************************************************
    * The Google Mobile Ads SDK was initialized incorrectly. AdMob publishers    *
    * should follow the instructions here:                                       *
    * https://googlemobileadssdk.page.link/admob-android-update-manifest         *
    * to add a valid App ID inside the AndroidManifest.                          *
    * Google Ad Manager publishers should follow instructions here:              *
    * https://googlemobileadssdk.page.link/ad-manager-android-update-manifest.   *
    ******************************************************************************
    
    
        at android.app.ActivityThread.installProvider(ActivityThread.java:7215)
        at android.app.ActivityThread.installContentProviders(ActivityThread.java:6699)
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6600)
        at android.app.ActivityThread.-wrap2(Unknown Source:0)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066)
        at android.os.Handler.dispatchMessage(Handler.java:108)
        at android.os.Looper.loop(Looper.java:166)
        at android.app.ActivityThread.main(ActivityThread.java:7529)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)
     Caused by: java.lang.IllegalStateException: 
    
    ******************************************************************************
    * The Google Mobile Ads SDK was initialized incorrectly. AdMob publishers    *
    * should follow the instructions here:                                       *
    * https://googlemobileadssdk.page.link/admob-android-update-manifest         *
    * to add a valid App ID inside the AndroidManifest.                          *
    * Google Ad Manager publishers should follow instructions here:              *
    * https://googlemobileadssdk.page.link/ad-manager-android-update-manifest.   *
    ******************************************************************************
    
    
        at com.google.android.gms.internal.ads.zzbhk.attachInfo(com.google.android.gms:play-services-ads-lite@@20.4.0:20)
        at com.google.android.gms.ads.MobileAdsInitProvider.attachInfo(com.google.android.gms:play-services-ads-lite@@20.4.0:1)
        at android.app.ActivityThread.installProvider(ActivityThread.java:7212)
        	... 10 more
2021-12-25 07:06:09.799 5156-5156/com.currency.prod.currency I/Process: Sending signal. PID: 5156 SIG: 9

SOLUTION

Follow this instruction and make sure add a valid application id

https://googlemobileadssdk.page.link/ad-manager-android-update-manifest

Read more comments on GitHub >

github_iconTop Results From Across the Web

Upgraded to Flutter 3.0 from 2.8.1, getting: Warning: Operand ...
For the ones that have the same issue: changing my Kotlin version (manually), did the trick. Now, in build.gradle:
Read more >
Flutter 2.8.0 release notes
This page has release notes for 2.8.0. For information about subsequent bug-fix releases, see Hotfixes to the Stable Channel.
Read more >
What's New in Flutter 2.10. Windows stable, performance…
In the Flutter 2.8 release, we landed our own internal picture recording format. ... the Flutter tool now suggests resolution steps to common...
Read more >
webview_flutter 2.8.0 | Flutter Package - Pub.dev
Add section to the wiki explaining how to use Material components. Update integration test to workaround an iOS 14 issue with evaluateJavascript ....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found