1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[Flutter] Could not build flutter project after upgrading android studio to ladybug

Discussão em 'Mobile' iniciado por Stack, Novembro 8, 2024 às 08:42.

  1. Stack

    Stack Membro Participativo

    getting this error : A problem occurred configuring project ':flutter_plugin_android_lifecycle'.


    Could not open proj generic class cache for build file 'C:\Users\DELL\AppData\Local\Pub\Cache\hosted\pub.dev\flutter_plugin_android_lifecycle-2.0.23\android\build.gradle' (C:\Users\DELL.gradle\caches\7.6\scripts\63bprwnkn9zt5gyu8l1lw245x). BUG! exception in phase 'semantic analysis' in source unit 'BuildScript' Unsupported class file major version 65 Failed to notify project evaluation listener. Could not get unknown property 'android' for project ':flutter_plugin_android_lifecycle' of type org.gradle.api.Project. Could not get unknown property 'android' for project ':flutter_plugin_android_lifecycle' of type org.gradle.api.Project.

    and above is output of flutter doctor -v

    [√] Android toolchain - develop for Android devices (Android SDK version 35.0.0) • Android SDK at C:\Users\DELL\AppData\Local\Android\sdk • Platform android-35, build-tools 35.0.0 • Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java • Java version OpenJDK Runtime Environment (build 21.0.3+-12282718-b509.11) • All Android licenses accepted.

    i have tried to update "distributionUrl=https://services.gradle.org/distributions/gradle-7.6-all.zip" gradle version in gradle-wrapper.properties file but didn't work

    Continue reading...

Compartilhe esta Página