Innim / flutter_login_vk

Flutter Plugin to login via VK.com
BSD 3-Clause "New" or "Revised" License
17 stars 24 forks source link

Проблема после обновленения андроид студио #45

Open fed9i opened 8 months ago

fed9i commented 8 months ago

Обновил Flutter и android Studio на чистой версии вот такая вот проблемка

FAILURE: Build failed with an exception.

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

fed9i commented 7 months ago

Есть решение какое нить по этому поводу?

greymag commented 7 months ago

Добрый день. Укажите, пожалуйста, версии:

fed9i commented 7 months ago

Flutter doctor [✓] Flutter (Channel stable, 3.19.5, on macOS 13.0 22A380 darwin-x64, locale ru-RU) • Flutter version 3.19.5 on channel stable at /Users/Developer/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 300451adae (4 недели назад), 2024-03-27 21:54:07 -0500 • Engine revision e76c956498 • Dart version 3.3.3 • DevTools version 2.31.1

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) • Android SDK at /Users/Library/Android/sdk • Platform android-34, build-tools 34.0.0 • ANDROID_HOME = /Users/Library/Android/sdk • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874) • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.3.1) • Xcode at /Applications/Xcode.app/Contents/Developer • Build 14E300c • CocoaPods version 1.14.3

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

[✓] Android Studio (version 2023.2) • 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 17.0.9+0-17.0.9b1087.7-11185874)

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

[✓] Connected device (2 available) • macOS (desktop) • macos • darwin-x64 • macOS 13.0 22A380 darwin-x64 • Chrome (web) • chrome • web-javascript • Google Chrome 124.0.6367.62

[✓] Network resources • All expected network resources are available.

settings.gradle pluginManagement { def flutterSdkPath = { def properties = new Properties() file("local.properties").withInputStream { properties.load(it) } def flutterSdkPath = properties.getProperty("flutter.sdk") assert flutterSdkPath != null, "flutter.sdk not set in local.properties" return flutterSdkPath } settings.ext.flutterSdkPath = flutterSdkPath()

includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle")

repositories {
    google()
    mavenCentral()
    gradlePluginPortal()
}

}

plugins { id "dev.flutter.flutter-plugin-loader" version "1.0.0" id "com.android.application" version "7.3.0" apply false id "org.jetbrains.kotlin.android" version "1.7.0" apply false }

include ":app"

fed9i commented 1 month ago

Здравствуйте

Появилась новая ошибка после обновления градла на 8 версию

AlexSeednov commented 3 weeks ago

Здравствуйте

Появилась новая ошибка после обновления градла на 8 версию

  • What went wrong: A problem occurred configuring project ':flutter_login_vk'.

Could not create an instance of type com.android.build.api.variant.impl.LibraryVariantBuilderImpl. Namespace not specified. Specify a namespace in the module's build file. See https://d.android.com/r/tools/upgrade-assistant/set-namespace for information about setting the namespace.

 If you've specified the package attribute in the source AndroidManifest.xml, you can use the AGP Upgrade Assistant to migrate to the namespace value in the build file. Refer to https://d.android.com/r/tools/upgrade-assistant/agp-upgrade-assistant for general information about using the AGP Upgrade Assistant.
  • 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.

Аналогично, пакет не работает после обновления градла. Есть решение?

fed9i commented 3 weeks ago

Здравствуйте Появилась новая ошибка после обновления градла на 8 версию

  • What went wrong: A problem occurred configuring project ':flutter_login_vk'.

Could not create an instance of type com.android.build.api.variant.impl.LibraryVariantBuilderImpl. Namespace not specified. Specify a namespace in the module's build file. See https://d.android.com/r/tools/upgrade-assistant/set-namespace for information about setting the namespace.

 If you've specified the package attribute in the source AndroidManifest.xml, you can use the AGP Upgrade Assistant to migrate to the namespace value in the build file. Refer to https://d.android.com/r/tools/upgrade-assistant/agp-upgrade-assistant for general information about using the AGP Upgrade Assistant.
  • 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.

Аналогично, пакет не работает после обновления градла. Есть решение?

Я посмотрел либу, и проблема в том что flutter_login_vk не поддерживает градл 8 +, нужно дождаться когда они обновят либу и тогда это заработает, но возможно что этот проект заброшен так как последнее обновление было почти 2 года назад