Ramin JAN
Ramin JAN

Reputation: 1

Problem Building APK with Flutter and Gradle (New Project)

I’m working on a Flutter project using VS Code. I created the project with the flutter create command, so it uses Gradle Kotlin DSL (build.gradle.kts) by default.

The main issue is that when I run flutter build apk, I get the following error:

Plugin [id: 'com.android.application'] was not found in any of the following sources:
- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Plugin Repositories (plugin dependency must include a version number for this source)

🔧 Setup Details:

I’ve updated all dependencies and properly configured the keystore file, but the issue persists.

My Question:
Has anyone else faced this issue? Or does anyone know a solution for this error in new Flutter projects using Gradle Kotlin DSL?

Gist link: gist_link

Thanks in advance for any help!

Upvotes: 0

Views: 49

Answers (0)

Related Questions